|
@@ -76,10 +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);//发放代金券
|
|
|
}
|
|
|
}
|
|
@@ -89,9 +89,9 @@ class ActivityController extends O2oBaseController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if($home_page){
|
|
|
- $this->renderpartial('index', array(
|
|
|
+ $this->renderpartial('//o2o/index', array(
|
|
|
'version' => '2015111601',
|
|
|
'debug' => 'false',
|
|
|
'signPackage' => $signPackage,
|