Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
saturn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
saturn
Commits
70fd4500
Commit
70fd4500
authored
Jun 27, 2019
by
王浩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'haow/dev' into 'test'
fix code See merge request
alpha/saturn!66
parents
5a95d04b
30742d6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product.py
api/views/product.py
+2
-1
No files found.
api/views/product.py
View file @
70fd4500
...
@@ -82,8 +82,9 @@ class ProductBatchCreate(BaseView):
...
@@ -82,8 +82,9 @@ class ProductBatchCreate(BaseView):
def
create_product
(
self
,
product_info
):
def
create_product
(
self
,
product_info
):
error
,
ret
=
self
.
call_rpc
(
'neptune/commodity/product/create'
,
error
,
ret
=
self
.
call_rpc
(
'neptune/commodity/product/create'
,
cn_name
=
product_info
.
get
(
'cn_name'
),
norms
=
product_info
.
get
(
'norms'
),
cn_name
=
product_info
.
get
(
'cn_name'
),
norms
=
product_info
.
get
(
'norms'
),
grade
s
=
product_info
.
get
(
'grades
'
),
price
=
product_info
.
get
(
'price'
),
grade
=
product_info
.
get
(
'grade
'
),
price
=
product_info
.
get
(
'price'
),
en_name
=
product_info
.
get
(
'en_name'
),
country
=
product_info
.
get
(
'country'
),
en_name
=
product_info
.
get
(
'en_name'
),
country
=
product_info
.
get
(
'country'
),
comment_nums
=
product_info
.
get
(
'comment_nums'
),
origin_product_id
=
product_info
.
get
(
'id'
),
platform
=
PRODUCT_FLATFORM
.
BEVOL
)
origin_product_id
=
product_info
.
get
(
'id'
),
platform
=
PRODUCT_FLATFORM
.
BEVOL
)
return
error
,
ret
return
error
,
ret
...
...
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