1
rootx OP 已经解决。
|
3
rootx OP @chekun
调用微信开发者工具的识别接口,核心: 1.开发者账号列表,signature 大概一个月失效一次 需要重新获取: array("openid"=>"xxxx","signature"=>"xxxx","appid"=>"xxxx"); 2.获取或刷新凭证 $data['openid'] = self::$acount[$acount_number]['openid']; $data['signature'] = self::$acount[$acount_number]['signature']; self::post('https://mp.weixin.qq.com/debug/cgi-bin/webdebugger/refreshticket?os=win&clientversion=1052111300',$data,'json',true); 3.获取识别后的值: self::post('https://servicewechat.com/wxa-dev-logic/decode_qrcode?os=win&clientversion=xxxx&appid='.self::$acount[0]['appid'].'&newticket='.$servicewechat_ticket,$image_url,'file'); |