|
|
@@ -46,7 +46,7 @@ class AuthController extends PublicController
|
|
|
$sessionKey = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
|
|
|
if (empty($sessionKey)) {
|
|
|
Yii::$app->redis->executeCommand('DEL', [$cacheKey]);
|
|
|
- noticeUtil::push($cacheKey . " 登录失败!!sessionKey空的", '15280215347');
|
|
|
+ //noticeUtil::push($cacheKey . " 登录失败!!sessionKey空的", '15280215347');
|
|
|
util::success(['hasNoOpenId' => 1], '登录失败!');
|
|
|
}
|
|
|
$wxMiniSecret = Yii::getAlias("@vendor/weixinMiniSecret");
|
|
|
@@ -55,14 +55,14 @@ class AuthController extends PublicController
|
|
|
$errCode = $pc->decryptData($encryptedData, $iv, $result);
|
|
|
if ($errCode != 0) {
|
|
|
Yii::$app->redis->executeCommand('DEL', [$cacheKey]);
|
|
|
- noticeUtil::push($cacheKey . " 登录失败!!!!sessionKey异常", '15280215347');
|
|
|
+ //noticeUtil::push($cacheKey . " 登录失败!!!!sessionKey异常", '15280215347');
|
|
|
util::success(['hasNoOpenId' => 1], '登录失败...');
|
|
|
}
|
|
|
$arr = Json::decode($result);
|
|
|
$phoneNumber = isset($arr['purePhoneNumber']) ? $arr['purePhoneNumber'] : '';
|
|
|
if (empty($phoneNumber)) {
|
|
|
Yii::$app->redis->executeCommand('DEL', [$cacheKey]);
|
|
|
- noticeUtil::push($cacheKey . " 登录失败了!获取手机号失败", '15280215347');
|
|
|
+ //noticeUtil::push($cacheKey . " 登录失败了!获取手机号失败", '15280215347');
|
|
|
util::success(['hasNoOpenId' => 1], '登录失败了哦');
|
|
|
}
|
|
|
$admin = AdminService::getByCondition(['mobile' => $phoneNumber]);
|