cqp 3 月之前
父节点
当前提交
cd7b5f3249
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 1 0
      app/Service/ImportService.php
  2. 4 0
      config/excel/productTable.php

+ 1 - 0
app/Service/ImportService.php

@@ -786,6 +786,7 @@ class ImportService extends Service
             $tmp['product_attribute'] = $value['8'] ?? 0;
             $tmp['build_fee'] = $value['9'] ?? 0;
             $tmp['item_code'] = $value['10'] ?? "";
+            $tmp['warranty_time'] = $value['11'] ?? 0;
             foreach ($map as $m => $v){
                 if($value[$v['col']]){
                     if(! is_numeric($value[$v['col']])) return [false,$v['name'] . ': 请输入数字且最多两位小数'];

+ 4 - 0
config/excel/productTable.php

@@ -43,5 +43,9 @@ return [
     [
         'key' => 'item_code',
         'value' => '商品编号',
+    ],
+    [
+        'key' => 'warranty_time',
+        'value' => '质保时长(月)',
     ]
 ];