shish 4 năm trước cách đây
mục cha
commit
dad270c9c3

+ 3 - 3
biz/notice/classes/NoticeClass.php

@@ -55,9 +55,9 @@ class NoticeClass extends BaseClass
     //新客户通知 shish 20210115
     //新客户通知 shish 20210115
     public static function newCustomNotice($shop, $custom)
     public static function newCustomNotice($shop, $custom)
     {
     {
-        $shopId = $shop->id;
-        $ptStyle = $shop->ptStyle;
-        $name = $custom->name ?? '';
+        $shopId = $shop['id'] ?? 0;
+        $ptStyle = $shop['ptStyle'] ?? 1;
+        $name = $custom['name'] ?? '';
         Yii::$app->params['ptStyle'] = $ptStyle;
         Yii::$app->params['ptStyle'] = $ptStyle;
         $adminList = ShopAdminClass::getRemainAdmin($shopId);
         $adminList = ShopAdminClass::getRemainAdmin($shopId);
         if (empty($adminList)) {
         if (empty($adminList)) {