chenhao %!s(int64=4) %!d(string=hai) anos
pai
achega
0805e3c2f2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      application/api/controller/User.php

+ 1 - 0
application/api/controller/User.php

@@ -156,6 +156,7 @@ class User extends Api
             "Accept:application/json"
         );
         $url = "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$secret&js_code=$js_code&grant_type=authorization_code";
+
         $ch = curl_init();                             //初始化
 //        curl_setopt($ch,CURLOPT_HTTPHEADER,$headerArray);
         curl_setopt($ch, CURLOPT_URL, $url);           //设置访问的URL