shish 5 년 전
부모
커밋
b56f8fa043
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      app-hd/controllers/ProductController.php
  2. 1 1
      biz-ghs/custom/classes/CustomClass.php

+ 1 - 0
app-hd/controllers/ProductController.php

@@ -128,6 +128,7 @@ class ProductController extends BaseController
             } else {
                 $ghs = GhsClass::getGhsInfo($id);
                 $sjId = $ghs['sjId'] ?? 0;
+                $shopId = $ghs['shopId'] ?? 0;
             }
             $transaction->commit();
 

+ 1 - 1
biz-ghs/custom/classes/CustomClass.php

@@ -146,7 +146,7 @@ class CustomClass extends BaseClass
             return $list;
         }
         //获取客户信息
-        $customSjIdList = array_unique(array_filter(array_column($list, 'customSjId')));
+        $customSjIdList = array_unique(array_filter(array_column($list, 'sjId')));
         $sjInfo = MerchantClass::getByIds($customSjIdList, null, 'id');
         foreach ($list as $key => $val) {
             $customSjId = $val['customSjId'];