|
@@ -77,6 +77,7 @@ class ActivityController extends O2oBaseController {
|
|
|
$coupon_id =new MongoId($coupon_id);
|
|
|
$start_time = time(); //发放优惠券可用开始时间
|
|
|
$end_time = $start_time + 86400*30; //发放优惠券过期时间
|
|
|
+ var_dump($user->_id);
|
|
|
if (CommonFn::isMongoId($coupon_id)) {
|
|
|
if (CommonFn::isMongoId($user->_id)) {
|
|
|
Service::factory('CouponService')->giveCoupon($user->_id, $coupon_id, $start_time, $end_time);//发放代金券
|
|
@@ -90,13 +91,7 @@ class ActivityController extends O2oBaseController {
|
|
|
}
|
|
|
var_dump($coupon_id);
|
|
|
if($home_page){
|
|
|
- $this->renderpartial('//o2o/web/index', array(
|
|
|
- 'version' => '2015111601',
|
|
|
- 'debug' => 'false',
|
|
|
- 'signPackage' => $signPackage,
|
|
|
- 'userId' => $userId,
|
|
|
- 'appToken' => $appToken,
|
|
|
- ));
|
|
|
+ $this->renderpartial('index');
|
|
|
}else{
|
|
|
|
|
|
$this->renderpartial('getCoupon', array(
|