|
@@ -18,7 +18,7 @@ class UserController extends O2oBaseController{
|
|
|
$criteria->coupon('==',new MongoId('58325d0b9f5160a3048b57fa'));
|
|
|
$criteria->user('==', new MongoId($user_id));
|
|
|
$user_coupon = UserCoupon::model()->find($criteria);
|
|
|
- if ( $user_id == '57e38f1b9f5160ac048b457d' && empty($user_coupon) ||empty($user_coupon) && time() >= intval(date_create("2016-11-24")->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('58325d349f5160d1048b593d', '58325d0b9f5160a3048b57fa'
|
|
|
);
|
|
|
$u_id = new MongoId($user_id);
|