|
|
@@ -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'] : '';
|