1. 调试erp

This commit is contained in:
李琦
2026-07-30 13:36:55 +08:00
parent fca11a4efd
commit 488adc1289

View File

@@ -120,12 +120,12 @@ class ErpController extends Controller
// 如果是商城处方订单
// 暂时默认使用11007诊所
$erpData[$k]['userId'] = $defaultUserId;
// if ($v['is_online'] == 3) {
// $erpData[$k]['userId'] = $defaultUserId;
// } else {
// $erpData[$k]['userId'] = $v['store']['erp_id'];
// }
if ($v['is_online'] == 3 || $v['is_online'] == 2) {
$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'];