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
4b5626f4
authored
Oct 20, 2024
by
larosa
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add ware
parent
918d6ef7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
3 deletions
audit.json
lie_shop_push_sku_log.sql
pop.py
vc.py
audit.json
View file @
4b5626f4
{
"jingdong_vc_item_product_apply_get_responce"
:
{
"code"
:
"0"
,
"request_id"
:
"3503677.39587.1729
1359938243672
"
,
"request_id"
:
"3503677.39587.1729
4245325335786
"
,
"jos_result_dto"
:
{
"return_code"
:
"100"
,
"single_obj"
:
{
...
...
lie_shop_push_sku_log.sql
View file @
4b5626f4
...
...
@@ -17,4 +17,6 @@ alter table lie_shop_push_sku_log add column audit_status tinyint(1) default 0 n
alter
table
lie_shop_push_sku_log
add
column
audit_failed_msg
varchar
(
512
)
default
''
not
null
comment
'审核失败的原因'
after
resp_body_msg
;
alter
table
lie_shop_push_sku_log
add
column
shop_id
mediumint
unsigned
default
0
not
null
comment
'店铺id'
after
sku_id
;
\ No newline at end of file
alter
table
lie_shop_push_sku_log
add
column
shop_id
mediumint
unsigned
default
0
not
null
comment
'店铺id'
after
sku_id
;
alter
table
lie_shop_push_sku_log
add
column
ware_id
varchar
(
100
)
default
''
not
null
comment
'京东平台商品编码'
after
sku_id
;
\ No newline at end of file
pop.py
0 → 100644
View file @
4b5626f4
File mode changed
vc.py
0 → 100644
View file @
4b5626f4
# 请求vc店铺的所有接口
import
json
from
common
import
request_to_jd_vc
def
get_vc_audit
(
applyId
:
str
):
"""根据应用id 查找审核状态(若审核成功可以获得京东sku_id)"""
method_name
=
"jingdong.vc.item.product.apply.get"
token
=
"845ce8478b074103b9e78a769d5fa4831y2u"
app_key
=
"CA52430E90209F51D8F5D7B615DDE9AD"
app_secret
=
"c92691b2379c48de87e699c4c2f7fb32"
param
=
{
"applyId"
:
applyId
,
}
ans
=
request_to_jd_vc
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
print
(
json
.
dumps
(
ans
,
ensure_ascii
=
False
))
return
ans
def
get_vc_attr
(
class_id
:
int
):
"""获取vc分类的属性"""
def
get_vc_ext_attr
(
class_id
:
int
):
"""获取京东的拓展属性"""
if
__name__
==
'__main__'
:
ans
=
get_vc_audit
(
"0da56b0274c1415ebb415ec2164b408f"
)
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