|
@@ -87,14 +87,14 @@ class ActivityController extends O2oBaseController {
|
|
$coupon_id =new MongoId($coupon_id);
|
|
$coupon_id =new MongoId($coupon_id);
|
|
$start_time = time(); //发放优惠券可用开始时间
|
|
$start_time = time(); //发放优惠券可用开始时间
|
|
$end_time = $start_time + 86400*30; //发放优惠券过期时间
|
|
$end_time = $start_time + 86400*30; //发放优惠券过期时间
|
|
- var_dump($userId);exit;
|
|
|
|
|
|
+ var_dump($userId);
|
|
if (CommonFn::isMongoId($coupon_id) && !$coupon_id) {
|
|
if (CommonFn::isMongoId($coupon_id) && !$coupon_id) {
|
|
if (CommonFn::isMongoId($userId) && !$userId) {
|
|
if (CommonFn::isMongoId($userId) && !$userId) {
|
|
Service::factory('CouponService')->giveCoupon($userId, $coupon_id, $start_time, $end_time);//发放代金券
|
|
Service::factory('CouponService')->giveCoupon($userId, $coupon_id, $start_time, $end_time);//发放代金券
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if($home_page){
|
|
if($home_page){
|
|
- var_dump($user->_id);exit;
|
|
|
|
|
|
+ var_dump($user->_id);
|
|
die();
|
|
die();
|
|
//$this->renderpartial('index');
|
|
//$this->renderpartial('index');
|
|
}else{
|
|
}else{
|