Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
d0ef7fa1
Commit
d0ef7fa1
authored
Sep 10, 2025
by
hj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新提交00
parent
fb15d799
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
server/app/Services/Api/BhuaOrdersService.php
server/app/Services/Api/BhuaOrdersService.php
+12
-12
server/app/Services/Api/RhawnOrdersService.php
server/app/Services/Api/RhawnOrdersService.php
+12
-12
No files found.
server/app/Services/Api/BhuaOrdersService.php
View file @
d0ef7fa1
...
@@ -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'
];
...
...
server/app/Services/Api/RhawnOrdersService.php
View file @
d0ef7fa1
...
@@ -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'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment