Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-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
0815ac0f
authored
Nov 27, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
库存对比
parent
609b1e3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
order/goods_remind/main.go
order/goods_remind/main.go
View file @
0815ac0f
...
@@ -101,6 +101,7 @@ func main() {
...
@@ -101,6 +101,7 @@ func main() {
goodsId
:=
data
.
Get
(
"goods_id"
)
.
Int
()
goodsId
:=
data
.
Get
(
"goods_id"
)
.
Int
()
goodsIdStr
:=
data
.
Get
(
"goods_id"
)
.
String
()
goodsIdStr
:=
data
.
Get
(
"goods_id"
)
.
String
()
stock
:=
data
.
Get
(
"stock"
)
.
Int
()
stock
:=
data
.
Get
(
"stock"
)
.
Int
()
moq
:=
data
.
Get
(
"moq"
)
.
Int
()
//联营
//联营
var
goodsUrl
string
var
goodsUrl
string
mainUrl
:=
"https://www.ichunt.com"
mainUrl
:=
"https://www.ichunt.com"
...
@@ -110,7 +111,7 @@ func main() {
...
@@ -110,7 +111,7 @@ func main() {
goodsUrl
=
mainUrl
+
"/item/"
+
goodsIdStr
+
".html"
goodsUrl
=
mainUrl
+
"/item/"
+
goodsIdStr
+
".html"
}
}
//如果库存大于0,就去通知用户
//如果库存大于0,就去通知用户
if
stock
>
0
{
if
stock
>
0
&&
stock
>
moq
{
//通知完成以后就修改这条记录
//通知完成以后就修改这条记录
goodsName
:=
data
.
Get
(
"goods_name"
)
.
String
()
goodsName
:=
data
.
Get
(
"goods_name"
)
.
String
()
content
:=
"您关注的商品型号"
+
goodsName
+
"已经到货,快去购买吧。链接 : "
+
goodsUrl
content
:=
"您关注的商品型号"
+
goodsName
+
"已经到货,快去购买吧。链接 : "
+
goodsUrl
...
...
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