Commit 47cc8e35 by 岳巧源

add vc

parent 2a23d677
Showing with 8 additions and 6 deletions
...@@ -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-10-29 14:14:00", "beginTime": "2024-11-05 00:14:00",
"endTime": "2024-10-29 20:14:00", "endTime": "2024-11-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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment