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