Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
photo_taking
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
016afbd4
authored
Oct 21, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加数据判断
parent
644d1345
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
internal/service/erp_client.go
internal/service/erp_client.go
View file @
016afbd4
...
...
@@ -111,6 +111,10 @@ func CheckOrderReturnData(res *gosoap.Response) (err error) {
err
=
json
.
Unmarshal
([]
byte
(
turnJson
.
String
()),
&
ErpReturnOrderData
)
if
len
(
ErpReturnOrderData
.
Xml
.
P
.
A
)
<=
1
{
return
errors
.
New
(
"未获取到订单数据"
)
}
ErpReturnOrderData
.
Xml
.
P
.
A
=
ErpReturnOrderData
.
Xml
.
P
.
A
[
:
len
(
ErpReturnOrderData
.
Xml
.
P
.
A
)
-
1
]
if
err
!=
nil
{
...
...
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