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
47cc8e35
authored
Nov 04, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add vc
parent
2a23d677
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
vc.py
vc.py
View file @
47cc8e35
...
@@ -6,6 +6,7 @@ import pymysql
...
@@ -6,6 +6,7 @@ import pymysql
import
redis
import
redis
from
common
import
request_to_jd_vc
from
common
import
request_to_jd_vc
from
common
import
request_to_jd_vc_dev
config_dev
=
{
config_dev
=
{
"mysql"
:
{
"mysql"
:
{
...
@@ -454,10 +455,11 @@ def create_vc_promotion():
...
@@ -454,10 +455,11 @@ def create_vc_promotion():
"@type"
:
"com.jd.promo.activity.sdk.model.ActivityBaseDTO"
,
"@type"
:
"com.jd.promo.activity.sdk.model.ActivityBaseDTO"
,
"name"
:
"内部促销活动测试"
,
"name"
:
"内部促销活动测试"
,
"type"
:
26
,
"type"
:
26
,
"beginTime"
:
"2024-1
0-29 14
:14:00"
,
"beginTime"
:
"2024-1
1-05 00
:14:00"
,
"endTime"
:
"2024-1
0-29 20
:14:00"
,
"endTime"
:
"2024-1
1-05 06
:14:00"
,
"bound"
:
1
,
"bound"
:
1
,
"venderType"
:
1
"venderType"
:
1
,
"venderId"
:
10457263
},
},
"activityScopeDTO"
:
{
"activityScopeDTO"
:
{
"@type"
:
"com.jd.promo.activity.sdk.model.ActivityScopeDTO"
,
"@type"
:
"com.jd.promo.activity.sdk.model.ActivityScopeDTO"
,
...
@@ -468,7 +470,7 @@ def create_vc_promotion():
...
@@ -468,7 +470,7 @@ def create_vc_promotion():
}
}
}
}
}
}
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
))
print
(
json
.
dumps
(
ans
,
ensure_ascii
=
False
))
...
@@ -537,4 +539,4 @@ def delete_vc_activity():
...
@@ -537,4 +539,4 @@ def delete_vc_activity():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
modify_vc_purchase_price
()
create_vc_promotion
()
\ No newline at end of file
\ 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