shish 9 месяцев назад
Родитель
Сommit
2c9625e7dd
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app-ghs/controllers/ShopAdminController.php

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

@@ -63,7 +63,9 @@ class ShopAdminController extends BaseController
                     ShopAdminClass::updateByCondition(['mainId' => $mainId, 'adminId' => $adminId], ['founder' => 1]);
                 }
             }
-
+            $staff->super = 1;
+            $staff->finance = 1;
+            $staff->switchShop = 1;
             $staff->founder = 2;
             $staff->save();