Kaynağa Gözat

登录失败提醒 关闭

shish 3 yıl önce
ebeveyn
işleme
c33cfd0911
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      app-hd/controllers/AuthController.php

+ 3 - 3
app-hd/controllers/AuthController.php

@@ -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]);