shish vor 3 Jahren
Ursprung
Commit
33027f7486
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      app-hd/controllers/AuthController.php

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

@@ -40,14 +40,14 @@ class AuthController extends PublicController
         $appId = $merchant['miniAppId'];
         $miniOpenId = $post['miniOpenId'] ?? '';
         if (empty($miniOpenId)) {
-            util::success(['hasNoOpenId' => 1], '登录失败');
+            util::success(['hasNoOpenId' => 1], '登录失败');
         }
         $cacheKey = 'SHOP_MINI_SESSION_KEY_' . $miniOpenId;
         $sessionKey = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
         if (empty($sessionKey)) {
             Yii::$app->redis->executeCommand('DEL', [$cacheKey]);
             noticeUtil::push($cacheKey . " 登录失败!!sessionKey空的", '15280215347');
-            util::success(['hasNoOpenId' => 1], '登录失败');
+            util::success(['hasNoOpenId' => 1], '登录失败');
         }
         $wxMiniSecret = Yii::getAlias("@vendor/weixinMiniSecret");
         require_once($wxMiniSecret . '/wxBizDataCrypt.php');
@@ -56,14 +56,14 @@ class AuthController extends PublicController
         if ($errCode != 0) {
             Yii::$app->redis->executeCommand('DEL', [$cacheKey]);
             noticeUtil::push($cacheKey . " 登录失败!!!!sessionKey异常", '15280215347');
-            util::success(['hasNoOpenId' => 1], '登录失败');
+            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');
-            util::success(['hasNoOpenId' => 1], '登录失败');
+            util::success(['hasNoOpenId' => 1], '登录失败了哦');
         }
         $admin = AdminService::getByCondition(['mobile' => $phoneNumber]);
         if (empty($admin)) {