Commit 4f825f11 by 岳巧源

modify goods attr

parent 5f433969
Showing with 36 additions and 2 deletions
...@@ -2,3 +2,4 @@ delete from lie_shop_class where platform = 1; ...@@ -2,3 +2,4 @@ delete from lie_shop_class where platform = 1;
delete from lie_shop_attr where platform = 1; delete from lie_shop_attr where platform = 1;
delete from lie_shop_class_mapping where platform = 1; delete from lie_shop_class_mapping where platform = 1;
delete from lie_shop_attr_mapping where platform = 1; delete from lie_shop_attr_mapping where platform = 1;
select apply_id from lie_shop_push_sku_log where spu_id = 1 and sku_id = 1 order by create_time desc limit 1;
\ No newline at end of file
...@@ -286,5 +286,37 @@ def insert_ext_attr_to_redis(conf: dict): ...@@ -286,5 +286,37 @@ def insert_ext_attr_to_redis(conf: dict):
# redis_db.delete(key) # redis_db.delete(key)
def update_vc_goods_attr():
method_name = "jingdong.vc.item.oldProduct.updateV2"
token = "845ce8478b074103b9e78a769d5fa4831y2u"
app_key = "CA52430E90209F51D8F5D7B615DDE9AD"
app_secret = "c92691b2379c48de87e699c4c2f7fb32"
param = {
"ware_id": "100124079781",
"en_brand": "Kingbright",
"zh_brand": "Kingbright",
"pkg_info": "商品主体 * 1",
"original_place": "中国大陆",
"warranty": "无质保",
"cid1": 33834,
"brand_id": 823924,
"name": "Kingbright LED点阵 TA12-11EWA 起订数1个",
"item_num": "1151033371062413398",
"saler_code": "maojingtao1",
"purchaser_code": "maojingtao1",
"prop_id": "274243,266140,275609,234941,270354",
"prop_remark": "散装,9,9,tast,",
"prop_vid": ",,,,1639267",
"ext_id": "235849",
"ext_values": "1336374",
"main_path":"jfs/t1/232493/18/26763/19756/670d354fFa5efdaae/c3fe357ecb152ae7.jpg",
"main_isPrimary": "1",
"intro_html":"<img src=https://img30.360buyimg.com/sku/jfs/t1/133800/28/25551/94742/62fef403E1a77f3a2/9b92597c0c26d1c8.jpg' /><br>",
"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, token, app_key, app_secret, param)
print(json.dumps(ans, ensure_ascii=False))
if __name__ == '__main__': if __name__ == '__main__':
pass # get_vc_audit("da072807b3504afea6a039677dca2c56")
\ No newline at end of file update_vc_goods_attr()
\ 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