shish 5 лет назад
Родитель
Сommit
d277f4b5a5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      biz-hd/purchase/classes/PurchaseClass.php

+ 2 - 2
biz-hd/purchase/classes/PurchaseClass.php

@@ -117,8 +117,8 @@ class PurchaseClass extends BaseClass
         }
         $ghs = GhsClass::getGhsInfo($ghsId);
         $ghsSjId = $ghs['sjId'] ?? 0;
-        $ghsShopId = $ghs['shopId'];
-        $getType = $data['getType'];
+        $ghsShopId = $ghs['shopId'] ?? 0;
+        $getType = $data['getType'] ?? 0;
         $hdOrderId = $respond['id'] ?? 0;
 
         $custom = CustomClass::getByCondition(['ownSjId' => $ghsSjId, 'sjId' => $hdSjId, 'shopId' => $hdShopId]);