上传者: thy77
|
上传时间: 2021-04-15 18:01:53
|
文件大小: 6KB
|
文件类型: CS
微信公众号获取signature(签名),noncestr(随机字符串)和timestamp(时间戳),以便分享使用。
使用方法:
var appId = Config.GetValue("AppID");
var appSecret = Config.GetValue("AppSecret");
string url = Config.GetValue("WxShareUrl");
var wxmp = WxJSSDK.GetWxmp(appId, appSecret, url);
return Ok(new
{
code = "200",
res = new
{
data = new
{
appId = wxmp.ToJObject()["appId"],
nonceStr = wxmp.ToJObject()["nonceStr"],
timestamp = wxmp.ToJObject()["timestamp"],
signature = wxmp.ToJObject()["signature"]
}
}
});