Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
9 years ago
Commit
6f75f7b91b627224884be0d814be968073aef347
1 parent
13569496
'领券操作返回信息'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
yohobuy/m.yohobuy.com/application/controllers/Coupon.php
yohobuy/m.yohobuy.com/application/controllers/Coupon.php
View file @
6f75f7b
...
...
@@ -77,17 +77,27 @@ class CouponController extends AbstractAction
$receiveData
=
filter_input_array
(
INPUT_GET
,
array
(
'couponIds'
=>
FILTER_DEFAULT
));
$returnData
=
''
;
$returnData
=
array
()
;
$couponIds
=
explode
(
','
,
str_replace
(
' '
,
''
,
$receiveData
[
'couponIds'
]));
switch
(
$this
->
getCoupon
(
$couponIds
)){
$returnStatus
=
$this
->
getCoupon
(
$couponIds
);
switch
(
$returnStatus
){
case
1
:
$returnData
=
'领券成功!'
;
$returnData
=
[
'msg'
=>
'领券成功!'
,
'status'
=>
$returnStatus
];
break
;
case
2
:
$returnData
=
'领券失败!'
;
$returnData
=
[
'msg'
=>
'领券失败!'
,
'status'
=>
$returnStatus
];
break
;
case
3
:
$returnData
=
'券已经被领光了!'
;
$returnData
=
[
'msg'
=>
'券已经被领光了!'
,
'status'
=>
$returnStatus
];
break
;
default
:
$returnData
=
'未知错误!'
;
...
...
Please
register
or
login
to post a comment