Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wang
/
go_upload_sync
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
ce76b3ae
authored
May 07, 2021
by
wang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
02367f3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
app/service/upload_sku_sync.go
app/service/upload_sku_sync.go
View file @
ce76b3ae
...
...
@@ -91,6 +91,7 @@ func (this *UploadSkuSync)Sync() error{
//开始处理
func
(
this
*
UploadSkuSync
)
handle
()
{
fmt
.
Printf
(
"加1"
)
dao
.
IncrSyncQueue
(
this
.
SkuRes
.
UpSn
)
//redis 完成同步+1
if
(
this
.
SkuRes
.
UpSn
==
""
||
this
.
SkuRes
.
UploadLogId
==
0
){
msg
:=
fmt
.
Sprintf
(
"回调的消息UploadLogId 和 UpSn 为空或者为0%s"
,
this
.
SkuReStr
)
...
...
@@ -193,7 +194,7 @@ func (this *UploadSkuSync) IshandleSucess() (bool,error) {
}
countSend
,
err
:=
dao
.
GetShouldSendQueueCount
(
this
.
SkuRes
.
UpSn
)
fmt
.
Printf
(
"up_sn:%s:应该发送的数量为:%d
\n
"
,
this
.
SkuRes
.
UpSn
,
countSend
)
if
(
countSync
=
=
countSend
){
if
(
countSync
>
=
countSend
){
return
true
,
nil
}
return
false
,
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