1. 调试erp
This commit is contained in:
@@ -60,6 +60,7 @@ class ErpController extends Controller
|
||||
$erpData = [];
|
||||
$ids = [];
|
||||
|
||||
// 暂时默认使用11007诊所
|
||||
$defaultUserId = '41677';
|
||||
foreach($productOrders as $k=>$v){
|
||||
// 如果是商城订单
|
||||
@@ -114,11 +115,14 @@ class ErpController extends Controller
|
||||
$erpData[$k]['orderId'] = $v['order_no'];
|
||||
$erpData[$k]['createTime'] = date('Y-m-d H:i:s', $v['created_at']);
|
||||
// 如果是商城处方订单
|
||||
if ($v['is_online'] == 3) {
|
||||
$erpData[$k]['userId'] = $defaultUserId;
|
||||
} else {
|
||||
$erpData[$k]['userId'] = $v['store']['erp_id'];
|
||||
}
|
||||
|
||||
// 暂时默认使用11007诊所
|
||||
$erpData[$k]['userId'] = $defaultUserId;
|
||||
// if ($v['is_online'] == 3) {
|
||||
// $erpData[$k]['userId'] = $defaultUserId;
|
||||
// } else {
|
||||
// $erpData[$k]['userId'] = $v['store']['erp_id'];
|
||||
// }
|
||||
$erpData[$k]['orderStatus'] = $v['status'];
|
||||
$erpData[$k]['totalAmount'] = $v['total_pay_price'];
|
||||
// $erpData[$k]['deliveryAmount'] = $v['trans_expenses'];
|
||||
|
||||
Reference in New Issue
Block a user