易票联拉取西药的供货价修复,lj传腾留坑
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user