小程序
小游戏
企业微信
微信支付
扫描小程序码分享
返回数据为:
{"errcode":40125,"errmsg":"invalid appsecret, view more at http:\/\/t.cn\/RAEkdVq hint: [auSZKa03651512]"}
反复对照过,没有空格,标点符号,也重置过多次,依然存在该问题,其他小程序没有该问题出现;请问能帮忙处理一下吗?
appId=wx93afa602acb01324
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
auth.getAccessToken 这个在本地写的web页面可以调用吗 我报404
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
麻烦补充下完整的请求和请求时间
public static string GetJson(string ApiUrl, Dictionary<string, string> parames)
{
Tuple<string, string> parameters = WebApiHelper.GetQueryString(parames);
return WebApiHelper.GetJson(ApiUrl, parameters.Item1, parameters.Item2,AppKey);
}
private static string GetJson(string ApiUrl, string query, string queryStr, string appKey, bool sign = true)
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(ApiUrl + "?" + queryStr);
request.Method = "GET";
request.ContentType = "application/json";
request.Timeout = 90000;
request.Headers.Set("Pragma", "no-cache");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream streamReceive = response.GetResponseStream();
StreamReader streamReader = new StreamReader(streamReceive, Encoding.UTF8);
string strResult = streamReader.ReadToEnd();
streamReader.Close();
streamReceive.Close();
request.Abort();
response.Close();
return strResult;
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
auth.getAccessToken 这个在本地写的web页面可以调用吗 我报404
麻烦补充下完整的请求和请求时间
{
string url = $"https://api.weixin.qq.com/cgi-bin/token?grant_type={grant_type}&appid={appid}&secret={secret}";
var jsonResult = WebApiHelper.GetJson(url, null);
var response = JsonConvert.DeserializeObject
return response;
}
public static string GetJson(string ApiUrl, Dictionary<string, string> parames)
{
Tuple<string, string> parameters = WebApiHelper.GetQueryString(parames);
return WebApiHelper.GetJson(ApiUrl, parameters.Item1, parameters.Item2,AppKey);
}
private static string GetJson(string ApiUrl, string query, string queryStr, string appKey, bool sign = true)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(ApiUrl + "?" + queryStr);
request.Method = "GET";
request.ContentType = "application/json";
request.Timeout = 90000;
request.Headers.Set("Pragma", "no-cache");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream streamReceive = response.GetResponseStream();
StreamReader streamReader = new StreamReader(streamReceive, Encoding.UTF8);
string strResult = streamReader.ReadToEnd();
streamReader.Close();
streamReceive.Close();
request.Abort();
response.Close();
return strResult;
}
{"errcode":40125,"errmsg":"invalid appsecret, view more at http:\/\/t.cn\/RAEkdVq hint: [i1tzoA03418162]"}