Ver código fonte

门店修改

shish 2 anos atrás
pai
commit
4187718544
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      app-ghs/controllers/ShopAdminController.php

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

@@ -227,6 +227,8 @@ class ShopAdminController extends BaseController
         $status = $post['status'] ?? 1;
         $super = $post['super'] ?? 0;
         $name = $post['name'] ?? '';
+        $finance = $post['finance'] ?? 0;
+        $switchShop = $post['switchShop'] ?? 0;
         $founder = $relation->founder ?? 1;
         if ($founder == 2 && $super == 0) {
             util::fail('不能关闭超管权限');
@@ -238,6 +240,8 @@ class ShopAdminController extends BaseController
         $relation->remind = $remind;
         $relation->status = $status;
         $relation->super = $super;
+        $relation->finance = $finance;
+        $relation->switchShop = $switchShop;
         $relation->save();
         util::complete('修改成功');
     }