Commit 0ccf8cdd authored by hangjun83's avatar hangjun83

zkh bug

parent e243164c
......@@ -115,53 +115,53 @@ class ZhenkhService
//获取订单发票信息
$dataEntries = app(\App\Services\ThirdPlatform\ZhenKhService::class)->apiService->getPlatformDataEntries('zkh_order_invoice','data_values');
$updateOrderArray = [];
$updateOrderArray['cus_id'] = $dataEntries['id'];
$updateOrderArray['so_no'] = 0;
$updateOrderArray['so_cus_po'] = $orderDetail['purchaseOrderId'];
$updateOrderArray['so_ca_name'] = $orderDetail['consigneeName'];
$updateOrderArray['so_ca_mobile'] = $orderDetail['consigneeTel'];
$updateOrderArray['so_ca_phone'] = '';
list(
$updateOrderArray['so_ca_province'],
$updateOrderArray['so_ca_city'],
$updateOrderArray['so_ca_county'],
$updateOrderArray['so_ca_street']
) = explode(' ', $orderDetail['address']);
$updateOrderArray['so_cia_name'] = $dataEntries['name'];
$updateOrderArray['so_cia_mobile'] = $dataEntries['mobile'];
$updateOrderArray['so_cia_phone'] = $dataEntries['phone'];
$updateOrderArray['so_cia_province'] = $dataEntries['province'];
$updateOrderArray['so_cia_city'] = $dataEntries['city'];
$updateOrderArray['so_cia_county'] = $dataEntries['county'];
$updateOrderArray['so_cia_street'] = $dataEntries['street'];
$updateOrderArray['so_ci_type'] = $dataEntries['type'];
$updateOrderArray['so_ci_title'] = $dataEntries['title'];
$updateOrderArray['so_ci_vatno'] = $dataEntries['vatno'];
$updateOrderArray['so_ci_bank'] = $dataEntries['bank'];
$updateOrderArray['so_ci_bknum'] = $dataEntries['banknum'];
$updateOrderArray['so_ci_addr'] = $dataEntries['address'];
$updateOrderArray['so_ci_phone'] = $dataEntries['company_phone'];
try{
$updateOrderArray = [];
$updateOrderArray['cus_id'] = $dataEntries['id'];
$updateOrderArray['so_no'] = 0;
$updateOrderArray['so_cus_po'] = $orderDetail['purchaseOrderId'];
$updateOrderArray['so_ca_name'] = $orderDetail['consigneeName'];
$updateOrderArray['so_ca_mobile'] = $orderDetail['consigneeTel'];
$updateOrderArray['so_ca_phone'] = '';
list(
$updateOrderArray['so_ca_province'],
$updateOrderArray['so_ca_city'],
$updateOrderArray['so_ca_county'],
$updateOrderArray['so_ca_street']
) = explode(' ', $orderDetail['address']);
$updateOrderArray['so_cia_name'] = $dataEntries['name'];
$updateOrderArray['so_cia_mobile'] = $dataEntries['mobile'];
$updateOrderArray['so_cia_phone'] = $dataEntries['phone'];
$updateOrderArray['so_cia_province'] = $dataEntries['province'];
$updateOrderArray['so_cia_city'] = $dataEntries['city'];
$updateOrderArray['so_cia_county'] = $dataEntries['county'];
$updateOrderArray['so_cia_street'] = $dataEntries['street'];
$updateOrderArray['so_ci_type'] = $dataEntries['type'];
$updateOrderArray['so_ci_title'] = $dataEntries['title'];
$updateOrderArray['so_ci_vatno'] = $dataEntries['vatno'];
$updateOrderArray['so_ci_bank'] = $dataEntries['bank'];
$updateOrderArray['so_ci_bknum'] = $dataEntries['banknum'];
$updateOrderArray['so_ci_addr'] = $dataEntries['address'];
$updateOrderArray['so_ci_phone'] = $dataEntries['company_phone'];
if($orderDetail['remark']){
$updateOrderArray['so_note'] = $orderDetail['remark'];
}else{
$updateOrderArray['so_note'] = '';
}
if($order['isDirect']){
$updateOrderArray['so_send_note'] = '发京东要求回单,发货单放箱子外面';
}else{
$updateOrderArray['so_send_note'] = '';
}
$updateOrderArray['so_standard'] = '';
$updateOrderArray['so_if_wx'] = 0;
$updateOrderArray['so_if_api'] = 0;
$updateOrderArray['so_ci_method'] = 1;
$updateOrderArray['so_total'] = $orderDetail['totalAmountFax'];
$updateOrderArray['so_ctime'] = time();
$updateOrderArray['so_creater'] = 29;
if($orderDetail['remark']){
$updateOrderArray['so_note'] = $orderDetail['remark'];
}else{
$updateOrderArray['so_note'] = '';
}
if($order['isDirect']){
$updateOrderArray['so_send_note'] = '发京东要求回单,发货单放箱子外面';
}else{
$updateOrderArray['so_send_note'] = '';
}
$updateOrderArray['so_standard'] = '';
$updateOrderArray['so_if_wx'] = 0;
$updateOrderArray['so_if_api'] = 0;
$updateOrderArray['so_ci_method'] = 1;
$updateOrderArray['so_total'] = $orderDetail['totalAmountFax'];
$updateOrderArray['so_ctime'] = time();
$updateOrderArray['so_creater'] = 29;
try{
$dbConnect->beginTransaction();
$orderId = $dbConnect->table('sorders')->insertGetId($updateOrderArray);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment