|
@@ -62,10 +62,11 @@ class WebController extends O2oBaseController {
|
|
|
//start双十一三天登陆发送优惠券 用后删除
|
|
|
//三批
|
|
|
$criteria = new EMongoCriteria();
|
|
|
- //$criteria->coupon('==',$coupon_id);
|
|
|
+
|
|
|
+ $criteria->coupon('==',new MongoId('5822df8aa84ea04e238b456f'));
|
|
|
$criteria->user('==', $userId);
|
|
|
$user_coupon = UserCoupon::model()->find($criteria);
|
|
|
-
|
|
|
+ var_dump($user_coupon);
|
|
|
if (empty($user_coupon) && time() >= intval(date_create("2016-11-10")->format('U')) && time() <= intval(date_create("2016-11-13")->format('U'))) {
|
|
|
|
|
|
$coupons = array(
|