shish 5 жил өмнө
parent
commit
bfe89626f3

+ 1 - 1
app-mall/controllers/BaseController.php

@@ -49,7 +49,7 @@ class BaseController extends PublicController
         if (httpUtil::isMiniProgram()) {
         if (httpUtil::isMiniProgram()) {
             $userId = jwt::getLoginId();
             $userId = jwt::getLoginId();
             if (empty($userId)) {
             if (empty($userId)) {
-                util::fail('您还没有登陆');
+                util::notLogin('您还没有登陆');
             }
             }
             $this->userId = $userId;
             $this->userId = $userId;
             $user = UserClass::getById($userId, true);
             $user = UserClass::getById($userId, true);