Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
钟尚武
sun
Commits
1c890658
Commit
1c890658
authored
6 years ago
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加pick_id限制
parent
c670db20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
pick.py
api/pick.py
+2
-1
PickDetail.vue
vu/src/views/pick/components/PickDetail.vue
+2
-0
No files found.
api/pick.py
View file @
1c890658
...
...
@@ -131,8 +131,9 @@ class PickUserListView(APIView):
celebrity_id
=
request
.
POST
.
get
(
'celebrity_id'
,
''
)
fake_pick_nums
=
request
.
POST
.
get
(
'fake_pick_nums'
,
0
)
topic_id
=
request
.
POST
.
get
(
'topic_id'
,
''
)
pick_id
=
request
.
POST
.
get
(
'pick_id'
,
''
)
try
:
self
.
rpc
[
'venus/sun/pick/add_fake_pick_nums'
](
celebrity_id
=
celebrity_id
,
topic_id
=
topic_id
,
pick_nums
=
fake_pick_nums
)
.
unwrap
()
self
.
rpc
[
'venus/sun/pick/add_fake_pick_nums'
](
celebrity_id
=
celebrity_id
,
topic_id
=
topic_id
,
pick_nums
=
fake_pick_nums
,
pick_id
=
pick_id
)
.
unwrap
()
except
Exception
as
e
:
error_logger
.
error
(
u'增加fake_pick_num失败
%
s'
,
e
)
raise
...
...
This diff is collapsed.
Click to expand it.
vu/src/views/pick/components/PickDetail.vue
View file @
1c890658
...
...
@@ -549,8 +549,10 @@
})
},
confirmEdit
(
row
)
{
const
id
=
this
.
$route
.
params
&&
this
.
$route
.
params
.
id
row
.
edit
=
false
row
.
original_fake_pick_nums
=
row
.
fake_pick_nums
row
.
pick_id
=
id
this
.
$message
({
message
:
'添加成功'
,
type
:
'success'
...
...
This diff is collapsed.
Click to expand it.
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