Authored by hf

code review by fei.hong: modify getnamed funciton

... ... @@ -812,8 +812,8 @@ class CouponController extends HuodongAction
}
/* 判断用户是否登录 */
// $uid = $this->getSession(self::SESSION_UID);
// if (!$uid) {
$uid = $this->getSession(self::SESSION_UID);
if (!$uid) {
$uid = $this->getUid();
if (!$uid) {
$result['code'] = 400;
... ... @@ -821,7 +821,7 @@ class CouponController extends HuodongAction
$result['data'] = Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/')), 'default');
break;
}
// }
}
/* 领取指定的优惠券操作 */
$result = ActivityData::getCouponNamed($uid, $activityId, $couponId);
... ...