|
@@ -65,12 +65,14 @@ class FxSyncMjOrderStatus extends Command {
|
65
|
65
|
|
66
|
66
|
// $order_sku_cost = $cost->outPrice * $quantity; //对应规格总成本
|
67
|
67
|
$data['cost'] += $cost->outPrice * $quantity; //对应规格总成本
|
|
68
|
+ Log::errorLog(4,[],"order/orderUpdate",1,'');
|
68
|
69
|
#更新order_sku
|
69
|
70
|
OrderGoodsSkus::where('order_id', $order['id'])->where('sku_id', $sku_id)->update(['send_num'=>$quantity, 'cost'=>$cost->outPrice]);
|
|
71
|
+ Log::errorLog(5,[],"order/orderUpdate",1,'');
|
70
|
72
|
}
|
71
|
73
|
$data['cost'] = round($data['cost'], 2);
|
72
|
74
|
}
|
73
|
|
-
|
|
75
|
+ Log::errorLog($data,[],"order/orderUpdate",1,'');
|
74
|
76
|
if(!empty($data)){
|
75
|
77
|
Log::errorLog($data,[],"order/orderUpdate",1,'');
|
76
|
78
|
|