Ver código fonte

默认方式改为GET

刘忠健 2 anos atrás
pai
commit
562dcb7e4c
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      api/app/api/controller/WechatMpAuth.php

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

@@ -47,7 +47,7 @@ class WechatMpAuth extends Base
         $callback = trim(urldecode2(input("callback")));//回调地址
         $scope = input("scope", "snsapi_userinfo");//snsapi_userinfo   snsapi_base
         $remark = trim(urldecode2(input("remark", "")));//input("remark", "");//备注
-        $method = input("method", "post");//回调方式
+        $method = input("method", "get");//回调方式
         $wechatcode = input("wechatcode");
         $wechatConfig = WechatConfig::getEasyWechatConfig($wechatcode);
         Log::record("wechatConfig:".json_encode($wechatConfig,JSON_UNESCAPED_UNICODE),"debug");
@@ -70,7 +70,7 @@ class WechatMpAuth extends Base
     {
         $param = request()->param();
         $callback = trim(urldecode2(input("callback")));
-        $method = input("method", "post");
+        $method = input("method", "get");
         $remark = input("remark", "");
         View::assign("method", $method);
         View::assign("callback", $callback);