浏览代码

申请开店

shish 4 年之前
父节点
当前提交
533ed2b951
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      app-ghs/controllers/ApplyController.php

+ 2 - 3
app-ghs/controllers/ApplyController.php

@@ -20,7 +20,7 @@ use bizHd\saas\services\RegionService;
 class ApplyController extends BaseController
 {
 
-    public $guestAccess = ['register'];
+    public $guestAccess = ['register', 'get-auth-code'];
 
     //获取验证码 shish 20210117
     public function actionGetAuthCode()
@@ -112,12 +112,11 @@ class ApplyController extends BaseController
         $adminId = $admin['id'] ?? 0;
 
         $post['adminId'] = $adminId;
-        $admin = $this->admin->attributes;
         if (isset($admin['currentShopId']) && !empty($admin['currentShopId'])) {
             util::fail('您有店铺了');
         }
         if (isset($admin['openShop']) && $admin['openShop'] != 1) {
-            util::fail('您已经申请,请等待审核');
+            util::fail('店铺待审核中,无需重复申请');
         }
         $post['long'] = isset($post['longitude']) ? $post['longitude'] : '';
         $post['lat'] = isset($post['latitude']) ? $post['latitude'] : '';