chenhao 4 年之前
父节点
当前提交
0805e3c2f2
共有 1 个文件被更改,包括 1 次插入0 次删除
  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