|
|
@@ -67,6 +67,9 @@ class ShopAdminController extends BaseController
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$id = isset($get['id']) && is_numeric($get['id']) ? $get['id'] : 0;
|
|
|
+ if ($id == $this->shopAdminId) {
|
|
|
+ util::fail('不能禁用自己');
|
|
|
+ }
|
|
|
$status = isset($get['status']) ? $get['status'] : 0;
|
|
|
$shopAdmin = ShopAdminService::getById($id);
|
|
|
ShopAdminService::valid($shopAdmin, $this->shopId);
|