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