diff --git a/platform/modules/v1/controllers/ErpController.php b/platform/modules/v1/controllers/ErpController.php index 79e2e5b..1a7b386 100644 --- a/platform/modules/v1/controllers/ErpController.php +++ b/platform/modules/v1/controllers/ErpController.php @@ -77,12 +77,11 @@ class ErpController extends Controller 'detailId' => $vv['id'], 'productSku' => $vv['drug_no'], 'quantity' => $vv['number'], - 'paymentPrice' => $vv['price'], + 'paymentPrice' => $vv['buy_price'], 'price' => round($vv['number'] * $vv['buy_price'], 2) ]; } - ProductOrderLog::saveLog(0,'江奥川ERP拉取西(中成)药订单异常:'. json_encode($orderItems[$vk])); $erpData[$k]['orderItems'] = $orderItems; $ids[]=$v['id']; } @@ -99,7 +98,8 @@ class ErpController extends Controller ProductOrderLog::saveLog(0,'江奥川ERP拉取西(中成)药订单异常:'.$e->getMessage()); throw new Exception('获取处方异常'.$e->getMessage()); } - + + ProductOrderLog::saveLog(0,'江奥川ERP拉取西(中成)药订单异常:'. json_encode($erpData)); return $erpData; }