shish преди 2 години
родител
ревизия
5fa2dd74a0
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      app-ghs/controllers/ShopAdminController.php

+ 4 - 1
app-ghs/controllers/ShopAdminController.php

@@ -71,6 +71,7 @@ class ShopAdminController extends BaseController
             $mobile = $post['mobile'] ?? '';
             $name = $post['name'] ?? '';
             $finance = $post['finance'] ?? 0;
+            $identity = $post['identity']??0;
             $switchShop = $post['switchShop'] ?? 0;
             $ptSuperAdminId = AdminClass::getPtSuperAdminId();
             if ($shop->adminId != $adminId && $adminId != $ptSuperAdminId) {
@@ -102,7 +103,7 @@ class ShopAdminController extends BaseController
             }
 
             $ptStyle = Yii::$app->params['ptStyle'];
-            $adminInfo = ['name' => $name, 'mobile' => $mobile, 'style' => $ptStyle, 'currentGhsShopId' => $this->shopId];
+            $adminInfo = ['name' => $name, 'mobile' => $mobile, 'style' => $ptStyle, 'currentGhsShopId' => $this->shopId,'identity'=>$identity];
             $fromApp = dict::getDict('userSourceGetId', 'app', 'id');
             $admin = \bizGhs\admin\classes\AdminClass::replaceAdmin($adminInfo, $fromApp);
             $post['shopId'] = $this->shopId;
@@ -248,6 +249,7 @@ class ShopAdminController extends BaseController
         $name = $post['name'] ?? '';
         $finance = $post['finance'] ?? 0;
         $switchShop = $post['switchShop'] ?? 0;
+        $identity = $post['identity'] ?? 0;
         $founder = $relation->founder ?? 1;
         $ptSuperAdminId = AdminClass::getPtSuperAdminId();
         if ($shop->adminId != $adminId && $adminId != $ptSuperAdminId) {
@@ -272,6 +274,7 @@ class ShopAdminController extends BaseController
         $relation->super = $super;
         $relation->finance = $finance;
         $relation->switchShop = $switchShop;
+        $relation->identity = $identity;
         $relation->save();
         util::complete('修改成功');
     }