Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
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
bd1b6010
authored
Nov 15, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
vc.py
parent
90bba0cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
vc.py
vc.py
View file @
bd1b6010
...
...
@@ -455,10 +455,11 @@ def create_vc_promotion():
"activityBaseDTO"
:
{
"@type"
:
"com.jd.promo.activity.sdk.model.ActivityBaseDTO"
,
"name"
:
"内部促销活动测试"
,
"type"
:
26
,
"type"
:
1
,
"beginTime"
:
"2024-11-05 00:14:00"
,
"endTime"
:
"2024-11-15 1
0:42
:00"
,
"endTime"
:
"2024-11-15 1
1:50
:00"
,
"bound"
:
1
,
"extType"
:
15
,
"venderType"
:
1
,
# "venderId": 10457263
"venderId"
:
1000511925
...
...
@@ -468,8 +469,9 @@ def create_vc_promotion():
"channelList"
:
[
"1"
,
],
}
}
},
},
"stepSubmit"
:
True
}
}
ans
=
request_to_jd_vc_dev
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
...
...
@@ -481,7 +483,7 @@ def create_vc_promotion():
"""
def
vc_promotion_add_sku
():
method_name
=
"jingdong.promo.activity.addSkus"
token
=
"8
45ce8478b074103b9e78a769d5fa4831y2u
"
token
=
"8
a4a6810c5834412b8d4692dbf80cf9b0yty
"
app_key
=
"CA52430E90209F51D8F5D7B615DDE9AD"
app_secret
=
"c92691b2379c48de87e699c4c2f7fb32"
param
=
{
...
...
@@ -493,7 +495,7 @@ def vc_promotion_add_sku():
"@type"
:
"com.jd.promo.activity.sdk.model.ActivityParticipantDTO"
,
"bound"
:
1
,
"bindType"
:
1
,
"activityId"
:
3000001
,
"activityId"
:
63137688146
,
"activitySkuDTOList"
:
[
{
"@type"
:
"com.jd.promo.activity.sdk.model.ActivitySkuDTO"
,
...
...
@@ -508,7 +510,7 @@ def vc_promotion_add_sku():
}
}
}
ans
=
request_to_jd_vc
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
ans
=
request_to_jd_vc
_dev
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
print
(
json
.
dumps
(
ans
,
ensure_ascii
=
False
))
...
...
@@ -529,16 +531,16 @@ def commit_vc_activity():
def
delete_vc_activity
():
method_name
=
"jingdong.promo.activity.remove"
token
=
"8
45ce8478b074103b9e78a769d5fa4831y2u
"
token
=
"8
a4a6810c5834412b8d4692dbf80cf9b0yty
"
app_key
=
"CA52430E90209F51D8F5D7B615DDE9AD"
app_secret
=
"c92691b2379c48de87e699c4c2f7fb32"
param
=
{
"activityId"
:
3000001
"activityId"
:
63137688142
}
ans
=
request_to_jd_vc
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
ans
=
request_to_jd_vc
_dev
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
print
(
json
.
dumps
(
ans
,
ensure_ascii
=
False
))
if
__name__
==
'__main__'
:
create_vc_promotion
()
\ No newline at end of file
delete_vc_activity
()
\ No newline at end of file
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