Commit 22cd3daf by 岳巧源

add log

parent 1516df54
......@@ -2,6 +2,7 @@ create table lie_shop_push_sku_log (
id int unsigned auto_increment comment '主键id' primary key,
spu_id bigint unsigned default 0 not null comment 'SPUID',
sku_id bigint unsigned default 0 not null comment 'SKUID',
apply_id varchar(100) default '' not null comment '申请id, 用于查询京东审核记录',
request_body_msg text not null comment '请求参数体信息',
resp_body_msg text not null comment '响应信息',
status int(10) default 0 not null comment '发品状态 0:失败 1:成功',
......
{
"jingdong_vc_item_newProduct_createV2_responce": {
"code": "0",
"request_id": "161833.39587.17288856488140607",
"jos_result_dto": {
"return_code": "1000",
"single_obj": "{\"productApplyId\":\"13129f265def41e58f39af4d27b92877\"}",
"is_success": true,
"return_message": "商品信息更新成功!"
}
}
}
\ No newline at end of file
......@@ -29,6 +29,6 @@ def push_mq(message: str):
# {"goods_id":1170115972487102103,"spu_id":2170115972437912400,"platform":1,"shop_id":1}
if __name__ == '__main__':
data = {"goods_id": 1170115972487102103, "spu_id": 2170115972437912400, "platform": 1, "shop_id": 1}
data = {"goods_id": 1170122329267322783, "spu_id": 2170122329155225702, "platform": 1, "shop_id": 1}
msg = json.dumps(data, ensure_ascii=False)
push_mq(msg)
import json
from common import request_to_jd_vc
......@@ -11,9 +13,9 @@ def post_to_jd():
"original_place": "中国大陆",
"warranty": "无质保",
"model": "MAC12DG-PRICE-LAROSA888",
"cid1": 15833,
"leaf_cid": 33349,
"weight": 1, # 非盖亚必填
"cid1": 33556,
# "leaf_cid": 33349,
# "weight": 1, # 非盖亚必填
"height": 1, # 非盖亚必填
"length": 1, # 非盖亚必填
"width": 1, # 非盖亚必填
......@@ -26,12 +28,12 @@ def post_to_jd():
"purchase_price": 900.0001,
"saler_code": "gonglingzhe1",
"purchaser_code": "gonglingzhe1",
"prop_id": "165420,165420,116011", # 属性id
# "prop_remark": "", # 属性数值,文本等
"prop_vid": ",,1505684", # 属性单选值id
"prop_values": "844892,1463667", # 属性多选值id
# "ext_id": "232650", # 拓展属性id
# "ext_values": "1343768", # 拓展值id
"prop_id": "232935,232969,232953,232988,274281,270354", # 属性id
"prop_remark": "MAC12DG-PRICE-TEST,±0.01%,-55°C ~ 155°C,10 kOhms,直接装,", # 属性数值,文本等
"prop_vid": ",,,,,1639264", # 属性单选值id
# "prop_values": "844892,1463667", # 属性多选值id
"ext_id": "232650", # 拓展属性id
"ext_values": "1343768", # 拓展值id
# "ext_remark": "", # 拓展值
"main_path": "jfs/t1/249391/9/18493/7621/66e2aac1Fa7b99835/7e65af57d10c7abd.jpg", # 京东图片链接
"main_isPrimary": "1", # 是否为主图1:是 0:否
......@@ -39,7 +41,7 @@ def post_to_jd():
"intro_mobile": "<img src=https://img30.360buyimg.com/sku/jfs/t1/133800/28/25551/94742/62fef403E1a77f3a2/9b92597c0c26d1c8.jpg' /><br>", # 移动商详
}
ans = request_to_jd_vc(method_name=methodName, token=token, app_key=app_key, app_secret=app_secret, param=param)
print(ans)
print(json.dumps(ans, ensure_ascii=False))
if __name__ == '__main__':
......
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