Sfoglia il codice sorgente

更新微信授权

刘忠健 2 anni fa
parent
commit
7eb5bfd645
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      api/app/api/controller/WechatMpAuth.php

+ 1 - 1
api/app/api/controller/WechatMpAuth.php

@@ -45,7 +45,7 @@ class WechatMpAuth extends Base
         ];
         $this->autoValid($rules, $param);
         $callback = trim(urldecode2(input("callback")));//回调地址
-        $scope = input("scope", "snsapi_userinfo");
+        $scope = input("scope", "snsapi_base");//snsapi_userinfo
         $remark = trim(urldecode2(input("remark", "")));//input("remark", "");//备注
         $method = input("method", "post");//回调方式
         $wechatcode = input("wechatcode");