瀏覽代碼

更新微信授权

刘忠健 2 年之前
父節點
當前提交
7eb5bfd645
共有 1 個文件被更改,包括 1 次插入1 次删除
  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");