|
@@ -193,6 +193,7 @@ class FilesManager extends Model
|
|
|
// 产品名称每行必填
|
|
|
if( !$order['product_name'] ) return ['error' => ($row + 1).' 行未识别到商品名称'];
|
|
|
if( !$order['buy_num'] ) return ['error' => ($row + 1).' 行未识别到商品数量'];
|
|
|
+ if( !$order['pay_total'] ) return ['error' => ($row + 1).' 行未识别到商品金额'];
|
|
|
// 替换一下产品名称中的数据,避免数据超长
|
|
|
$order['product_name'] = str_ireplace(['()','()','(','('],'',str_ireplace($order['sku_attr_names'],'',$order['product_name']));
|
|
|
$order['insert_time'] = $order['insert_time'] ? intval(strtotime($order['insert_time'])) : '';
|
|
@@ -201,7 +202,7 @@ class FilesManager extends Model
|
|
|
// 如果没有订单ID 使用上一条的信息(兼容合并单元格)
|
|
|
if( !$order['weizan_orderid'] ) $order['weizan_orderid'] = $sheetList[$row-1]['weizan_orderid'];
|
|
|
if( !$order['insert_time'] ) $order['insert_time'] = $sheetList[$row-1]['insert_time'];
|
|
|
- if( !$order['buyer_nick'] ) $order['buyer_nick'] = $sheetList[$row-1]['buyer_nick'];
|
|
|
+ if( !$order['buyer_nick'] ) $order['buyer_nick'] = $sheetList[$row-1]['buyer_nick'];
|
|
|
if( !$order['status'] ) $order['status'] = $sheetList[$row-1]['status'];
|
|
|
if( !$order['contact_phone'] ) $order['contact_phone'] = $sheetList[$row-1]['contact_phone'];
|
|
|
if( !$order['contact_name'] ) $order['contact_name'] = $sheetList[$row-1]['contact_name'];
|