-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IP白名单的问题 #2116
Comments
对的,遇到这个错误首先查看配置,然后查看白名单。 |
29 tasks
ip没有加入白名单时,在使用 工具箱-》异步方法测试-》的时候会进入死循环 |
@dashenxian 你用的是最新版本的代码?能够一直重现? |
你看一下是不是在异常发生的时候,触发了 Sample 中的异常模板消息(或者客服消息),其中又发生了什么异常,导致死循环了?这个属于 Sample 里面的一个演示,根据你自己的情况排除掉就行了。 |
JeffreySu
added a commit
that referenced
this issue
Oct 13, 2020
@dashenxian 这次 Sample 的更新加了一个判断,您可以再看一下。 |
JeffreySu
added a commit
that referenced
this issue
Oct 13, 2020
Sample v5.600.4 优化错误模板消息发送的验证,终止白名单异常继续发送 #2116
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`///
/// 获取凭证接口
///
/// 获取access_token填写client_credential
/// 第三方用户唯一凭证
/// 第三方用户唯一凭证密钥,既appsecret
///
[ApiBind(NeuChar.PlatformType.WeChat_OfficialAccount, "CommonApi.GetToken", true)]
public static AccessTokenResult GetToken(string appid, string secret, string grant_type = "client_credential")
{
//注意:此方法不能再使用ApiHandlerWapper.TryCommonApi(),否则会循环
var url = string.Format(Config.ApiMpHost + "/cgi-bin/token?grant_type={0}&appid={1}&secret={2}",
grant_type.AsUrlData(), appid.AsUrlData(), secret.AsUrlData());
因IP没在白名单内,调试了一下午一直报“尚无已经注册的AppId”,然后就不停的在注册环节找问题,最后才发现不是代码的问题,好大一坑啊,这个ip白名单的报错能不能单独做下判断的,笼统的抛出个“尚无已经注册的AppId”,还以为是代码的问题
The text was updated successfully, but these errors were encountered: