Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
scm_server
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
bec4cb04
authored
May 16, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复
parent
c593249e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
cmd/queue/sync_out_store/main.go
cmd/queue/sync_out_store/main.go
View file @
bec4cb04
...
...
@@ -130,13 +130,11 @@ func SyncOutStoreData(operate string, message OutStoreMessage) (err error) {
billId
:=
message
.
Data
.
FSourceBillID
if
operate
==
"insert"
{
resp
,
err
=
req
.
Post
(
url
,
param
)
err
=
errors
.
New
(
fmt
.
Sprintf
(
"%s"
,
resp
))
return
err
if
err
!=
nil
{
return
return
err
}
if
err
=
resp
.
ToJSON
(
&
respData
);
err
!=
nil
{
return
return
err
}
if
respData
.
Errcode
!=
0
{
paramJson
,
_
:=
json
.
Marshal
(
params
)
...
...
@@ -144,7 +142,7 @@ func SyncOutStoreData(operate string, message OutStoreMessage) (err error) {
}
//都没问题,代表后端那边已经成功修改,修改同步表的状态
if
err
=
logic
.
SyncOutStoreSuccess
(
billId
,
false
);
err
!=
nil
{
return
return
err
}
}
return
...
...
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