Jelajahi Sumber

Merge branch 'shizhongqi-createShop' into dev

shish 1 tahun lalu
induk
melakukan
ab6bae822b
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      biz-hd/staff/classes/StaffClass.php

+ 2 - 0
biz-hd/staff/classes/StaffClass.php

@@ -159,10 +159,12 @@ class StaffClass extends BaseClass
                     if ($shop->ptStyle == 2) {
                     if ($shop->ptStyle == 2) {
                         $ghsMainId = $shop->mainId;
                         $ghsMainId = $shop->mainId;
                         $admin->currentGhsShopId = $shop->id;
                         $admin->currentGhsShopId = $shop->id;
+                        $admin->save();
                     }
                     }
                     if ($shop->ptStyle == 1) {
                     if ($shop->ptStyle == 1) {
                         $hdMainId = $shop->mainId;
                         $hdMainId = $shop->mainId;
                         $admin->currentShopId = $shop->id;
                         $admin->currentShopId = $shop->id;
+                        $admin->save();
                     }
                     }
                 }
                 }
                 if ($ghsMainId != $hdMainId) {
                 if ($ghsMainId != $hdMainId) {