|
|
@@ -42,6 +42,9 @@ class ApplyController extends BaseController
|
|
|
$post = Yii::$app->request->post();
|
|
|
$post['adminId'] = $this->adminId;
|
|
|
$admin = $this->admin;
|
|
|
+ if (isset($admin['currentShopId']) && !empty($admin['currentShopId'])) {
|
|
|
+ util::fail('您已经是门店员工');
|
|
|
+ }
|
|
|
$post['adminName'] = $admin['name'] ?? '';
|
|
|
$post['long'] = isset($post['longitude']) ? $post['longitude'] : '';
|
|
|
$post['lat'] = isset($post['latitude']) ? $post['latitude'] : '';
|