Commit 4b5626f4 by larosa

add ware

parent 918d6ef7
{
"jingdong_vc_item_product_apply_get_responce": {
"code": "0",
"request_id": "3503677.39587.17291359938243672",
"request_id": "3503677.39587.17294245325335786",
"jos_result_dto": {
"return_code": "100",
"single_obj": {
......
......@@ -17,4 +17,6 @@ alter table lie_shop_push_sku_log add column audit_status tinyint(1) default 0 n
alter table lie_shop_push_sku_log add column audit_failed_msg varchar(512) default '' not null comment '审核失败的原因' after resp_body_msg;
alter table lie_shop_push_sku_log add column shop_id mediumint unsigned default 0 not null comment '店铺id' after sku_id;
\ No newline at end of file
alter table lie_shop_push_sku_log add column shop_id mediumint unsigned default 0 not null comment '店铺id' after sku_id;
alter table lie_shop_push_sku_log add column ware_id varchar(100) default '' not null comment '京东平台商品编码' after sku_id;
\ No newline at end of file
File mode changed
# 请求vc店铺的所有接口
import json
from common import request_to_jd_vc
def get_vc_audit(applyId: str):
"""根据应用id 查找审核状态(若审核成功可以获得京东sku_id)"""
method_name = "jingdong.vc.item.product.apply.get"
token = "845ce8478b074103b9e78a769d5fa4831y2u"
app_key = "CA52430E90209F51D8F5D7B615DDE9AD"
app_secret = "c92691b2379c48de87e699c4c2f7fb32"
param = {
"applyId": applyId,
}
ans = request_to_jd_vc(method_name, token, app_key, app_secret, param)
print(json.dumps(ans, ensure_ascii=False))
return ans
def get_vc_attr(class_id: int):
"""获取vc分类的属性"""
def get_vc_ext_attr(class_id: int):
"""获取京东的拓展属性"""
if __name__ == '__main__':
ans = get_vc_audit("0da56b0274c1415ebb415ec2164b408f")
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