Commit aba108e1 by larosa

add test

parent 05d7b70e
Showing with 19 additions and 14 deletions
...@@ -10,27 +10,28 @@ def post_to_jd(): ...@@ -10,27 +10,28 @@ def post_to_jd():
"pkg_info": "商品主体 * 1", "pkg_info": "商品主体 * 1",
"original_place": "中国大陆", "original_place": "中国大陆",
"warranty": "无质保", "warranty": "无质保",
"model": "MAC12DG-PRICE-LAROSA111", "model": "MAC12DG-PRICE-LAROSA888",
"cid1": 33556, "cid1": 15833,
"leaf_cid": 33349,
"weight": 1, # 非盖亚必填 "weight": 1, # 非盖亚必填
"height": 1, # 非盖亚必填 "height": 1, # 非盖亚必填
"length": 1, # 非盖亚必填 "length": 1, # 非盖亚必填
"width": 1, # 非盖亚必填 "width": 1, # 非盖亚必填
"brand_id": 388118, "brand_id": 388118,
"name": "TE connectivity 薄膜电阻 MAC12DG-PRICE-LAROSA111 100个", "name": "TE connectivity MAC12DG-PRICE-LAROSA888 1个",
"pack_type": 1, "pack_type": 1,
"item_num": "27348342332", "item_num": "27348342899",
"member_price": 100.34, "member_price": 1000.99,
"market_price": 110.78, "market_price": 1100.99,
"purchase_price": 90.0036, "purchase_price": 900.0001,
"saler_code": "gonglingzhe1", "saler_code": "gonglingzhe1",
"purchaser_code": "gonglingzhe1", "purchaser_code": "gonglingzhe1",
"prop_id": "232935,232969,232953,232988,270353,270354", # 属性id "prop_id": "165420,165420,116011", # 属性id
"prop_remark": "MAC12DG-PRICE-TEST,±0.01%,-55°C ~ 155°C,10 kOhms,20,", # 属性数值,文本等 # "prop_remark": "", # 属性数值,文本等
"prop_vid": ",,,,,1639265", # 属性单选值id "prop_vid": ",,1505684", # 属性单选值id
# "prop_values": "", # 属性多选值id "prop_values": "844892,1463667", # 属性多选值id
"ext_id": "232650", # 拓展属性id # "ext_id": "232650", # 拓展属性id
"ext_values": "1343768", # 拓展值id # "ext_values": "1343768", # 拓展值id
# "ext_remark": "", # 拓展值 # "ext_remark": "", # 拓展值
"main_path": "jfs/t1/249391/9/18493/7621/66e2aac1Fa7b99835/7e65af57d10c7abd.jpg", # 京东图片链接 "main_path": "jfs/t1/249391/9/18493/7621/66e2aac1Fa7b99835/7e65af57d10c7abd.jpg", # 京东图片链接
"main_isPrimary": "1", # 是否为主图1:是 0:否 "main_isPrimary": "1", # 是否为主图1:是 0:否
......
...@@ -10,7 +10,10 @@ if __name__ == '__main__': ...@@ -10,7 +10,10 @@ if __name__ == '__main__':
app_key = "CA52430E90209F51D8F5D7B615DDE9AD" app_key = "CA52430E90209F51D8F5D7B615DDE9AD"
app_secret = "c92691b2379c48de87e699c4c2f7fb32" app_secret = "c92691b2379c48de87e699c4c2f7fb32"
param = { param = {
"category_leaf_id": 33556 "category_leaf_id": 14122
} }
ans = request_to_jd_vc(method_name=method_name, token=token, app_key=app_key, app_secret=app_secret, param=param) ans = request_to_jd_vc(method_name=method_name, token=token, app_key=app_key, app_secret=app_secret, param=param)
print(json.dumps(ans, ensure_ascii=False)) print(json.dumps(ans, ensure_ascii=False))
# .\gf_windows_amd64.exe gen dao -l "mysql:liexin_data_distribution:liexin_data_distribution#zsyM@tcp(192.168.1.238:3306)/liexin_data_distribution" -t "lie_shop_picture" -r "lie_"
\ 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