shish 8 ماه پیش
والد
کامیت
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();