Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wang
/
golang-open-platform
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
bde285f0
authored
Mar 30, 2021
by
wang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
^
parent
90b216c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
JD/service.go
JD/service.go
View file @
bde285f0
...
...
@@ -15,10 +15,13 @@ func NewJdServer() *JdServer{
return
&
JdServer
{}
}
//推送数据到京东
/**
推送数据到京东
数据示例:
[{"goods_id":"1160551105263565205","ladder_price":[],"stock":1,"update_time":1605511052},{"goods_id":"1160551105280217407","ladder_price":[],"stock":1,"update_time":1605511052},{"goods_id":"1160551105657295093","ladder_price":[],"stock":1,"update_time":1605511056},{"goods_id":"1160551105664771955","ladder_price":[],"stock":1,"update_time":1605511056},{"goods_id":"1160551105727360314","ladder_price":[],"stock":1,"update_time":1605511057},{"goods_id":"1160551107420254201","ladder_price":[],"stock":1,"update_time":1605511074},{"goods_id":"1160551103393553911","ladder_price":[],"stock":32,"update_time":1605511033},{"goods_id":"1160551104739159301","ladder_price":[],"stock":1,"update_time":1605511047},{"goods_id":"1160551105513875543","ladder_price":[],"stock":1,"update_time":1605511055},{"goods_id":"1160551103993208968","ladder_price":[],"stock":28,"update_time":1605511039}]
*/
func
(
this
*
JdServer
)
PushData
(
pushType
string
,
data
interface
{})
{
token
:=
this
.
getKoken
()
return
header
:=
gout
.
H
{
"Authorization"
:
token
}
formData
:=
map
[
string
]
interface
{}{
"user_id"
:
"liexin_1"
,
...
...
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