Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare_api
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
580b1303
authored
Sep 30, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
助力添加类型限制
parent
caec796c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
app/Http/Controllers/AssistsController.php
app/Http/Controllers/Controller.php
config/language.php
app/Http/Controllers/AssistsController.php
View file @
580b1303
...
...
@@ -80,6 +80,8 @@ class AssistsController extends Controller
return
$this
->
Export
(
self
::
CAN_NOT_ASSIST_MYSELF
);
}
elseif
(
$result
[
'errcode'
]
===
109009
)
{
return
$this
->
Export
(
self
::
CAN_NOT_ASSIST
);
}
elseif
(
$result
[
'errcode'
]
===
109016
)
{
return
$this
->
Export
(
self
::
EXCHANGE_TYPE_ERROR
);
}
else
{
return
$this
->
Export
(
self
::
ASSIST_FAIL
);
}
...
...
app/Http/Controllers/Controller.php
View file @
580b1303
...
...
@@ -23,6 +23,8 @@ class Controller extends BaseController
const
CAN_NOT_ASSIST_MYSELF
=
109008
;
//不能助力了(助力人数已满或者用户已经助力过)
const
CAN_NOT_ASSIST
=
109009
;
//助力类型不能是话费的兑换
const
EXCHANGE_TYPE_ERROR
=
109011
;
//不能助力了(助力人数已满或者用户已经助力过)
const
CAN_NOT_INVITE_MYSELF
=
109010
;
...
...
config/language.php
View file @
580b1303
...
...
@@ -18,6 +18,7 @@ return [
109008
=>
'自己不能助力自己'
,
109009
=>
'助力人数已满或者您已经助力过'
,
109010
=>
'自己不能邀请自己'
,
109011
=>
'助力类型只允许用于微信转账'
,
109100
=>
'今天已经兑换过了,请明天再来吧'
,
109101
=>
'兑换名额被抢光了'
,
...
...
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