Browse Source

最近访问

shish 5 years ago
parent
commit
0cf4304aab
2 changed files with 2 additions and 3 deletions
  1. 1 2
      app-mall/controllers/UserController.php
  2. 1 1
      app-pt/controllers/ApplyController.php

+ 1 - 2
app-mall/controllers/UserController.php

@@ -23,8 +23,7 @@ class UserController extends BaseController
     public function actionRecentShop()
     {
         $list = UserClass::getRecentShop($this->user);
-        //1 显示最近访问的店铺 0不显示
-        util::success(['list' => $list, 'showIndex' => 0]);
+        util::success(['list' => $list, 'showIndex' => 1]);
     }
 
     //获取登陆客户的资产 ssh 2019.11.22

+ 1 - 1
app-pt/controllers/ApplyController.php

@@ -35,7 +35,7 @@ class ApplyController extends BaseController
         if (empty($apply)) {
             util::fail('找不到申请记录');
         }
-        if ($apply['status'] == 2) {
+        if (isset($apply['status']) && $apply['status'] == 2) {
             util::fail('已经审过了');
         }
         $connection = Yii::$app->db;