shish 7 miesięcy temu
rodzic
commit
0bce7bd952

+ 2 - 2
biz-hd/member/classes/MemberLevelClass.php

@@ -13,8 +13,8 @@ class MemberLevelClass extends BaseClass
 
     public static function initData($shop)
     {
-        $mainId = $shop->mainId;
-        $shopId = $shop->id;
+        $mainId = $shop['mainId'];
+        $shopId = $shop['id'];
         $has = self::getByCondition(['mainId' => $mainId], true);
         if (!empty($has)) {
             return true;

+ 2 - 2
biz-hd/recharge/classes/RechargeSqClass.php

@@ -12,8 +12,8 @@ class RechargeSqClass extends BaseClass
 
     public static function initData($shop)
     {
-        $mainId = $shop->mainId;
-        $shopId = $shop->id;
+        $mainId = $shop['mainId'];
+        $shopId = $shop['id'];
         $has = self::getByCondition(['mainId' => $mainId], true);
         if (!empty($has)) {
             return true;