shish 4 лет назад
Родитель
Сommit
a1740ab7a7
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      biz-hd/cg/services/CgRefundService.php

+ 2 - 1
biz-hd/cg/services/CgRefundService.php

@@ -96,6 +96,7 @@ class CgRefundService extends BaseService
                 $unitType = $info['unitType'] ?? 0;
                 $num = $info['num'] ?? 0;
                 $unitPrice = $info['unitPrice'] ?? 0;
+                $unitName = $info['unitName'] ?? '';
 
                 $refundData = [];
                 $productId = $info['productId'] ?? 0;
@@ -111,7 +112,7 @@ class CgRefundService extends BaseService
                 $refundData['shopId'] = $shopId;
                 $refundData['sjId'] = $sjId;
                 $refundData['xhNum'] = $num;
-                $refundData['xhUnitName'] = 0;
+                $refundData['xhUnitName'] = $unitName;
                 $refundData['xhUnitType'] = $unitType;
                 $refundData['xhUnitPrice'] = $unitPrice;
                 $refundData['xhPrice'] = 0;