Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aba108e1
authored
Oct 13, 2024
by
larosa
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add test
parent
05d7b70e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
test.py
test2.py
test.py
View file @
aba108e1
...
...
@@ -10,27 +10,28 @@ def post_to_jd():
"pkg_info"
:
"商品主体 * 1"
,
"original_place"
:
"中国大陆"
,
"warranty"
:
"无质保"
,
"model"
:
"MAC12DG-PRICE-LAROSA111"
,
"cid1"
:
33556
,
"model"
:
"MAC12DG-PRICE-LAROSA888"
,
"cid1"
:
15833
,
"leaf_cid"
:
33349
,
"weight"
:
1
,
# 非盖亚必填
"height"
:
1
,
# 非盖亚必填
"length"
:
1
,
# 非盖亚必填
"width"
:
1
,
# 非盖亚必填
"brand_id"
:
388118
,
"name"
:
"TE connectivity
薄膜电阻 MAC12DG-PRICE-LAROSA111 100
个"
,
"name"
:
"TE connectivity
MAC12DG-PRICE-LAROSA888 1
个"
,
"pack_type"
:
1
,
"item_num"
:
"27348342
332
"
,
"member_price"
:
100
.34
,
"market_price"
:
110
.78
,
"purchase_price"
:
90
.0036
,
"item_num"
:
"27348342
899
"
,
"member_price"
:
100
0.99
,
"market_price"
:
110
0.99
,
"purchase_price"
:
90
0.0001
,
"saler_code"
:
"gonglingzhe1"
,
"purchaser_code"
:
"gonglingzhe1"
,
"prop_id"
:
"
232935,232969,232953,232988,270353,270354
"
,
# 属性id
"prop_remark"
:
"MAC12DG-PRICE-TEST,±0.01
%
,-55°C ~ 155°C,10 kOhms,20,
"
,
# 属性数值,文本等
"prop_vid"
:
",,
,,,1639265
"
,
# 属性单选值id
# "prop_values": "
", # 属性多选值id
"ext_id"
:
"232650"
,
# 拓展属性id
"ext_values"
:
"1343768"
,
# 拓展值id
"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
# "ext_remark": "", # 拓展值
"main_path"
:
"jfs/t1/249391/9/18493/7621/66e2aac1Fa7b99835/7e65af57d10c7abd.jpg"
,
# 京东图片链接
"main_isPrimary"
:
"1"
,
# 是否为主图1:是 0:否
...
...
test2.py
View file @
aba108e1
...
...
@@ -10,7 +10,10 @@ if __name__ == '__main__':
app_key
=
"CA52430E90209F51D8F5D7B615DDE9AD"
app_secret
=
"c92691b2379c48de87e699c4c2f7fb32"
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
)
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment