|
@@ -21,7 +21,6 @@ class WebController extends O2oBaseController {
|
|
|
$criteria = new EMongoCriteria();
|
|
|
$criteria->unionid('==', $accessInfo['unionid']);
|
|
|
$user = RUser::model()->find($criteria);
|
|
|
- var_dump($user);
|
|
|
if ($user) {
|
|
|
$userId = $user->_id;
|
|
|
if(!isset($user->wx_pub_openid) || empty($user->wx_pub_openid)){
|
|
@@ -77,7 +76,7 @@ class WebController extends O2oBaseController {
|
|
|
$criteria->coupon('==',new MongoId('5822df8aa84ea04e238b456f'));
|
|
|
$criteria->user('==', new MongoId('57e237ea9f5160b6048b4568'));
|
|
|
$user_coupon = UserCoupon::model()->find($criteria);
|
|
|
- if (empty($user_coupon) && time() >= intval(date_create("2016-11-10")->format('U')) && time() <= intval(date_create("2016-11-13")->format('U'))) {
|
|
|
+ if (empty($user_coupon) && time() >= intval(date_create("2016-11-10")->format('U')) && time() <= intval(date_create("2016-11-17")->format('U'))) {
|
|
|
|
|
|
$coupons = array(
|
|
|
0 => array('5822df8aa84ea04e238b456f', '5822df7ba84ea03e238b456d'),
|