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
yangyang
9 years ago
Commit
ebc5975398da47da54443bee256d1a4b7795e107
1 parent
6cd5b7f9
领券换新java
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
library/LibModels/Wap/Cuxiao/ActivityData.php
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Coupon.php
library/LibModels/Wap/Cuxiao/ActivityData.php
View file @
ebc5975
...
...
@@ -36,11 +36,14 @@ class ActivityData
public
static
function
getCouponNamed
(
$uid
,
$activityId
,
$couponId
)
{
$param
=
array
();
$param
=
Yohobuy
::
param
();
$param
[
'method'
]
=
'app.activity.getCoupon'
;
$param
[
'uid'
]
=
$uid
;
$param
[
'activity_id'
]
=
$activityId
;
$param
[
'coupon_id'
]
=
$couponId
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
get
(
Yohobuy
::
SERVICE_URL
.
self
::
URI_GET_NAMED_COUPON
,
$param
);
return
Yohobuy
::
get
(
'http://192.168.102.205:8080/gateway'
,
$param
);
}
/**
...
...
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Coupon.php
View file @
ebc5975
...
...
@@ -981,6 +981,9 @@ class CouponController extends HuodongAction
/* 领取指定的优惠券操作 */
$result
=
ActivityData
::
getCouponNamed
(
$uid
,
$activityId
,
$couponId
);
if
(
isset
(
$result
[
'code'
])
&&
isset
(
$result
[
'message'
])
&&
$result
[
'message'
]
==
'优惠券已经领取'
)
{
$result
[
'code'
]
=
'201'
;
}
}
while
(
false
);
$this
->
echoJson
(
$result
);
...
...
Please
register
or
login
to post a comment