ソースを参照

activityController

DengTao 8 年 前
コミット
11f2bfba57

+ 3 - 1
www/protected/modules/common/controllers/ActivityController.php

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