- msg_sec_check 全部返回0,ok
- 当前 Bug 的表现([图片] ) $access_token = (new AccessToken())->access_token; $content = '铭感内容'; $url = 'https://api.weixin.qq.com/wxa/msg_sec_check?access_token='.$access_token; $json_result = chemla_curl($url, json_encode(['content'=>$content],JSON_UNESCAPED_UNICODE),true); $result = json_decode($json_result, true); fpc($result);api接口去过滤,但是实际上返回的信息都是ok /** * 请求接口返回内容 * @param string $url [请求的URL地址] * @param string $params [请求的参数] * @param bool $ipost [是否采用POST形式] * @return string */ function chemla_curl($url,$params=false,$isPost=false){ $httpInfo = array(); $ch = curl_init(); curl_setopt( $ch, CURLOPT_HTTP_VERSION , CURL_HTTP_VERSION_1_1 ); curl_setopt( $ch, CURLOPT_USERAGENT , 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22' ); curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT , 30 ); curl_setopt( $ch, CURLOPT_TIMEOUT , 30); curl_setopt( $ch, CURLOPT_RETURNTRANSFER , true ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); if( $isPost ) { curl_setopt( $ch , CURLOPT_POST , true ); curl_setopt( $ch , CURLOPT_POSTFIELDS , $params ); curl_setopt( $ch , CURLOPT_URL , $url ); } else { if($params){ curl_setopt( $ch , CURLOPT_URL , $url."?".$params); }else{ curl_setopt( $ch , CURLOPT_URL , $url); } } curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $response = curl_exec($ch); if ($response === FALSE) { return false; } $httpCode = curl_getinfo( $ch , CURLINFO_HTTP_CODE ); $httpInfo = array_merge( $httpInfo , curl_getinfo( $ch ) ); curl_close( $ch ); return $response; } 微信号:fpc123
2019-07-08 - 小程序微信支付成功后点击完成问题
[图片] 小程序微信支付的接口为 [代码]wx.requestPayment({ timeStamp: '', nonceStr: '', package: '', signType: 'MD5', paySign: '', success(res) { }, fail(res) { } })[代码]用户在支付成功后,在支付的页面下方,点击绿色的完成按钮,才能触发success方法,否则就取不到用户支付成功的数据,这个官方是怎么解决的?
2019-03-12