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
4f825f11
authored
Oct 22, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
modify goods attr
parent
5f433969
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
4 deletions
tmp.sql
vc.py
tmp.sql
View file @
4f825f11
delete
from
lie_shop_class
where
platform
=
1
;
delete
from
lie_shop_attr
where
platform
=
1
;
delete
from
lie_shop_class_mapping
where
platform
=
1
;
delete
from
lie_shop_attr_mapping
where
platform
=
1
;
\ No newline at end of file
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
vc.py
View file @
4f825f11
...
...
@@ -286,5 +286,37 @@ def insert_ext_attr_to_redis(conf: dict):
# 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__'
:
pass
\ No newline at end of file
# get_vc_audit("da072807b3504afea6a039677dca2c56")
update_vc_goods_attr
()
\ 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