|
|
@@ -151,7 +151,7 @@ class WxOpenController extends PublicController
|
|
|
|
|
|
$miniData = [
|
|
|
'miniAppId' => $authorizeAppId,
|
|
|
- 'miniAuth' => 1,
|
|
|
+ 'auth' => 2,
|
|
|
'miniAccessToken' => $authorize_access_token,
|
|
|
'miniAccessTokenTime' => $accessTokenTime,
|
|
|
'miniRefreshToken' => $authorize_refresh_token,
|
|
|
@@ -189,7 +189,6 @@ class WxOpenController extends PublicController
|
|
|
} else {
|
|
|
|
|
|
//如果授权的公众号
|
|
|
-
|
|
|
if (isset($sjWxInfo['wxAppId']) && !empty($sjWxInfo['wxAppId'])) {
|
|
|
if ($sjWxInfo['wxAppId'] != $authorizeAppId) {
|
|
|
util::stop("授权的公众号与商家已绑定的公众号不一致,授权公众号appId:{$authorizeAppId} 商家公众号:{$sjWxInfo['wxAppId']}");
|
|
|
@@ -229,6 +228,7 @@ class WxOpenController extends PublicController
|
|
|
util::stop('没有公众号信息...');
|
|
|
}
|
|
|
WxBaseClass::updateById($wxBaseId, [
|
|
|
+ 'auth' => 2,
|
|
|
'wxAccessToken' => $authorize_access_token,
|
|
|
'wxRefreshToken' => $authorize_refresh_token,
|
|
|
'wxAccessTokenTime' => date("Y-m-d H:i:s", (time() + $expires_in - 100))
|