|
|
@@ -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('修改成功');
|
|
|
}
|