Commit d0ef7fa1 authored by hj's avatar hj

更新提交00

parent fb15d799
...@@ -82,28 +82,28 @@ class BhuaOrdersService ...@@ -82,28 +82,28 @@ class BhuaOrdersService
} }
//得到收票地址 //得到收票地址
$cusiaddrs_arr = $this->bhuaCustomerService->customerRepository->getCustomerAddressByCusCode($customer['cus_no']); //$cusiaddrs_arr = $this->bhuaCustomerService->customerRepository->getCustomerAddressByCusCode($customer['cus_no']);
$cusinvoice_arr = $this->bhuaCustomerService->customerRepository->getCustomerInvoiceByCusCode($customer['cus_no']); $cusinvoice_arr = $this->bhuaCustomerService->customerRepository->getCustomerInvoiceByCusCode($customer['cus_no']);
if(!$cusiaddrs_arr){ /*if(!$cusiaddrs_arr){
throw new \Exception('请至会员中心设置收票地址',500); throw new \Exception('请至会员中心设置收票地址',500);
} }*/
if(!$cusinvoice_arr){ if(!$cusinvoice_arr){
throw new \Exception('请至会员中心设置发票信息',500); throw new \Exception('请至会员中心设置发票信息',500);
} }
$cusiaddrs_arr = current($cusiaddrs_arr); //$cusiaddrs_arr = current($cusiaddrs_arr);
$cusinvoice_arr = current($cusinvoice_arr); $cusinvoice_arr = current($cusinvoice_arr);
$data['sorders']['so_cia_name'] = $cusiaddrs_arr['cia_name']; $data['sorders']['so_cia_name'] = '';//$cusiaddrs_arr['cia_name'];
$data['sorders']['so_cia_mobile'] = $cusiaddrs_arr['cia_mobile']; $data['sorders']['so_cia_mobile'] = '';//$cusiaddrs_arr['cia_mobile'];
$data['sorders']['so_cia_phone'] = $cusiaddrs_arr['cia_phone']; $data['sorders']['so_cia_phone'] = '';//$cusiaddrs_arr['cia_phone'];
$data['sorders']['so_cia_province'] = $cusiaddrs_arr['cia_province']; $data['sorders']['so_cia_province'] = '';//$cusiaddrs_arr['cia_province'];
$data['sorders']['so_cia_city'] = $cusiaddrs_arr['cia_city']; $data['sorders']['so_cia_city'] = '';//$cusiaddrs_arr['cia_city'];
$data['sorders']['so_cia_county'] = $cusiaddrs_arr['cia_county']; $data['sorders']['so_cia_county'] = '';//$cusiaddrs_arr['cia_county'];
$data['sorders']['so_cia_street'] = $cusiaddrs_arr['cia_street']; $data['sorders']['so_cia_street'] = '';//$cusiaddrs_arr['cia_street'];
$data['sorders']['so_cia_name'] = $cusiaddrs_arr['cia_name']; $data['sorders']['so_cia_name'] = '';//$cusiaddrs_arr['cia_name'];
$data['sorders']['so_ci_type'] = $cusinvoice_arr['ci_type']; $data['sorders']['so_ci_type'] = $cusinvoice_arr['ci_type'];
$data['sorders']['so_ci_title'] = $cusinvoice_arr['ci_title']; $data['sorders']['so_ci_title'] = $cusinvoice_arr['ci_title'];
$data['sorders']['so_ci_vatno'] = $cusinvoice_arr['ci_vatno']; $data['sorders']['so_ci_vatno'] = $cusinvoice_arr['ci_vatno'];
......
...@@ -158,28 +158,28 @@ class RhawnOrdersService ...@@ -158,28 +158,28 @@ class RhawnOrdersService
//得到收票地址 //得到收票地址
$rhawnCustomerRepository = app(RhawnCustomerRepositoryEloquent::class); $rhawnCustomerRepository = app(RhawnCustomerRepositoryEloquent::class);
$cusiaddrs_arr = $rhawnCustomerRepository->getCustomerAddressByCusCode($customer['cus_no']); //$cusiaddrs_arr = $rhawnCustomerRepository->getCustomerAddressByCusCode($customer['cus_no']);
$cusinvoice_arr = $rhawnCustomerRepository->getCustomerInvoiceByCusCode($customer['cus_no']); $cusinvoice_arr = $rhawnCustomerRepository->getCustomerInvoiceByCusCode($customer['cus_no']);
if(!$cusiaddrs_arr){ /*if(!$cusiaddrs_arr){
throw new \Exception('请至会员中心设置收票地址',500); throw new \Exception('请至会员中心设置收票地址',500);
} }*/
if(!$cusinvoice_arr){ if(!$cusinvoice_arr){
throw new \Exception('请至会员中心设置发票信息',500); throw new \Exception('请至会员中心设置发票信息',500);
} }
$cusiaddrs_arr = current($cusiaddrs_arr); //$cusiaddrs_arr = current($cusiaddrs_arr);
$cusinvoice_arr = current($cusinvoice_arr); $cusinvoice_arr = current($cusinvoice_arr);
$data['sorders']['so_cia_name'] = $cusiaddrs_arr['cia_name']; $data['sorders']['so_cia_name'] = '';//$cusiaddrs_arr['cia_name'];
$data['sorders']['so_cia_mobile'] = $cusiaddrs_arr['cia_mobile']; $data['sorders']['so_cia_mobile'] = '';//$cusiaddrs_arr['cia_mobile'];
$data['sorders']['so_cia_phone'] = $cusiaddrs_arr['cia_phone']; $data['sorders']['so_cia_phone'] = '';//$cusiaddrs_arr['cia_phone'];
$data['sorders']['so_cia_province'] = $cusiaddrs_arr['cia_province']; $data['sorders']['so_cia_province'] = '';//$cusiaddrs_arr['cia_province'];
$data['sorders']['so_cia_city'] = $cusiaddrs_arr['cia_city']; $data['sorders']['so_cia_city'] = '';//$cusiaddrs_arr['cia_city'];
$data['sorders']['so_cia_county'] = $cusiaddrs_arr['cia_county']; $data['sorders']['so_cia_county'] = '';//$cusiaddrs_arr['cia_county'];
$data['sorders']['so_cia_street'] = $cusiaddrs_arr['cia_street']; $data['sorders']['so_cia_street'] = '';//$cusiaddrs_arr['cia_street'];
$data['sorders']['so_cia_name'] = $cusiaddrs_arr['cia_name']; $data['sorders']['so_cia_name'] = '';//$cusiaddrs_arr['cia_name'];
$data['sorders']['so_ci_type'] = $cusinvoice_arr['ci_type']; $data['sorders']['so_ci_type'] = $cusinvoice_arr['ci_type'];
$data['sorders']['so_ci_title'] = $cusinvoice_arr['ci_title']; $data['sorders']['so_ci_title'] = $cusinvoice_arr['ci_title'];
$data['sorders']['so_ci_vatno'] = $cusinvoice_arr['ci_vatno']; $data['sorders']['so_ci_vatno'] = $cusinvoice_arr['ci_vatno'];
......
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