|
|
@@ -276,7 +276,8 @@ class AuthController extends PublicController
|
|
|
$appId = $wxMiniBase['miniAppId'];
|
|
|
$appSecret = $wxMiniBase['miniAppSecret'];
|
|
|
if (empty($appSecret)) {
|
|
|
- util::fail('没有找到小程序的密钥');
|
|
|
+ //没有管理店铺不允许登录
|
|
|
+ util::success(['token' => '']);
|
|
|
}
|
|
|
$url = "https://api.weixin.qq.com/sns/jscode2session?appid={$appId}&secret={$appSecret}&js_code={$code}&grant_type=authorization_code";
|
|
|
$curl = new curl\Curl();
|