|
@@ -56,7 +56,7 @@ class WebController extends O2oBaseController {
|
|
|
$userId = (string)$userAr->_id;
|
|
|
//start双十一三天登陆发送优惠券 用后删除
|
|
|
//三批
|
|
|
- if (time() >= date_create("2016-11-09")->format('U') && time() <= date_create("2016-11-13")->format('U')) {
|
|
|
+ // if (time() >= date_create("2016-11-09")->format('U') && time() <= date_create("2016-11-13")->format('U')) {
|
|
|
$coupons = array(
|
|
|
0 => array('5822df8aa84ea04e238b456f', '5822df7ba84ea03e238b456d'),
|
|
|
1 => array('57fe10c69f5160b5048b45d0', '57fe0ed09f5160a2048b456b'),
|
|
@@ -86,7 +86,7 @@ class WebController extends O2oBaseController {
|
|
|
Service::factory('CouponService')->giveCoupon($userId, $coupon_id, $start_time, $end_time);//发放代金券
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ // }
|
|
|
//end
|
|
|
}else{
|
|
|
var_dump($userAr);exit;
|