Commit a35dcaad by 岳巧源

add set stock

parent 606dda77
Showing with 17 additions and 3 deletions
......@@ -320,6 +320,20 @@ def update_vc_goods_attr():
ans = request_to_jd_vc(method_name, token, app_key, app_secret, param)
print(json.dumps(ans, ensure_ascii=False))
def set_vc_init_stock_and_delivery(stock_num, delivery_day, ware_id):
method_name = "jingdong.productConfigSdkService.setProductConfig"
token = "845ce8478b074103b9e78a769d5fa4831y2u"
app_key = "CA52430E90209F51D8F5D7B615DDE9AD"
app_secret = "c92691b2379c48de87e699c4c2f7fb32"
param = {
"skuStockNum": stock_num,
"promiseDays": delivery_day,
"czFlag": 1,
"skuId": ware_id,
}
ans = request_to_jd_vc(method_name, token, app_key, app_secret, param)
print(json.dumps(ans, ensure_ascii=False))
if __name__ == '__main__':
# get_vc_audit("da072807b3504afea6a039677dca2c56")
update_vc_goods_attr()
\ No newline at end of file
set_vc_init_stock_and_delivery(23, 8, 100124079725)
\ 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