微信小程序 > 微信公开课 > 获取openidfile_get_contents超时curl空白
微信小程序,微信公开课,获取openidfile_get_contents超时curl空白

获取openidfile_get_contents超时curl空白

2019-03-15 18:14:06

微信公开课小程序热门讨论关于「获取openidfile_get_contents超时curl空白」的小程序开发问题
补充:获取openidfile_get_contents超时curl空白
展开:小程序一直在使用中,突然用户反映无法登录结果检查程序,发现无法获取openid经过反复测试和重新建立测试的程序js_code得到是没有问题wxrequest到服务器的PHP程序处理时,都指向同一个问题PHP里原来是使用file_get_contents获取openid,$url=https:apiweixinqqcomsnsjscode2session?appid=$appid&secret=$appsecret&js_code=$code&grant_type=authorization_code;$userjosn=file_get_contents($url);每次都要执行很久,然后返回:request:failtimeout把上面的$url直接输出,都会正常返回数据放进file_get_contents就是超时,通不上file_get_contents放其他的网址,都是可以正常快速返回数据就是小程序的这个网址超时出错提示:换成curl来获取返回的内容是空白的如下图:这是什么原因呢
更多有关「获取openidfile_get_contents超时curl空白」的讨论可以前往微信公开课小程序参与互动哦!
标签:微信公开课,小程序
微信小程序,微信公开课,获取openidfile_get_contents超时curl空白

「获取openidfile_get_contents超时curl空白」热门讨论订阅

方法1:微信扫描微信公开课小程序码即可订阅热门讨论「获取openidfile_get_contents超时curl空白」

方法2:微信搜索微信公开课小程序名称进入,即可订阅热门讨论「获取openidfile_get_contents超时curl空白」

方法3:微信网页访问即速商店,长按识别微信公开课小程序码即可订阅热门讨论「获取openidfile_get_contents超时curl空白」

微信公开课小程序热门讨论「获取openidfile_get_contents超时curl空白」由微信公开课原创摘录于微信小程序商店shop.jisuapp.cn,转载请注明出处。

微信公开课热门讨论「获取openidfile_get_contents超时curl空白」由微信公开课开发者向微信用户提供,并对本服务内容、数据资料及其运营行为等真实性、合法性及有效性承担全部责任。