|
@@ -18,7 +18,7 @@ class UserController extends O2oBaseController{
|
|
|
$criteria->coupon('==',new MongoId('582e651da84ea02e778b45d8'));
|
|
|
$criteria->user('==', new MongoId($user_id));
|
|
|
$user_coupon = UserCoupon::model()->find($criteria);
|
|
|
- if (empty($user_coupon) && time() >= intval(date_create("2016-11-11")->format('U')) && time() <= intval(date_create("2016-12-15")->format('U'))) {
|
|
|
+ if (empty($user_coupon) && time() >= intval(date_create("2016-11-24")->format('U')) && time() <= intval(date_create("2016-12-15")->format('U'))) {
|
|
|
$coupons = array('582e6eb9a84ea054628b45d3', '582e651da84ea02e778b45d8'
|
|
|
);
|
|
|
$u_id = new MongoId($user_id);
|