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