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
ebcb9d1a
authored
Oct 23, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
modify vc stock num
parent
a35dcaad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
vc.py
vc.py
View file @
ebcb9d1a
...
...
@@ -327,13 +327,36 @@ def set_vc_init_stock_and_delivery(stock_num, delivery_day, ware_id):
app_key
=
"CA52430E90209F51D8F5D7B615DDE9AD"
app_secret
=
"c92691b2379c48de87e699c4c2f7fb32"
param
=
{
"productConfigReq"
:
{
"productConfigInfoDtoList"
:
[
{
"@type"
:
"com.jd.jdi.ivc.product.publish.sdk.dto.product.ProductConfigInfoDto"
,
"skuStockNum"
:
stock_num
,
"promiseDays"
:
delivery_day
,
"czFlag"
:
1
,
"skuId"
:
ware_id
,
}
]
}
}
ans
=
request_to_jd_vc
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
print
(
json
.
dumps
(
ans
,
ensure_ascii
=
False
))
def
modify_vc_stock_num
(
stock_num
,
ware_id
):
"""
修改vc商品库存
"""
method_name
=
"jingdong.dropship.dps.modifyStockInfo"
token
=
"845ce8478b074103b9e78a769d5fa4831y2u"
app_key
=
"CA52430E90209F51D8F5D7B615DDE9AD"
app_secret
=
"c92691b2379c48de87e699c4c2f7fb32"
param
=
{
"sku"
:
ware_id
,
"stockNum"
:
stock_num
}
ans
=
request_to_jd_vc
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
print
(
json
.
dumps
(
ans
,
ensure_ascii
=
False
))
if
__name__
==
'__main__'
:
set_vc_init_stock_and_delivery
(
23
,
8
,
100124079725
)
\ No newline at end of file
set_vc_init_stock_and_delivery
(
23
,
14
,
100150428424
)
\ 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