|
@@ -75,7 +75,7 @@ class WebController extends O2oBaseController {
|
|
$criteria->coupon('==',new MongoId('5822df8aa84ea04e238b456f'));
|
|
$criteria->coupon('==',new MongoId('5822df8aa84ea04e238b456f'));
|
|
$criteria->user('==', new MongoId($userId));
|
|
$criteria->user('==', new MongoId($userId));
|
|
$user_coupon = UserCoupon::model()->find($criteria);
|
|
$user_coupon = UserCoupon::model()->find($criteria);
|
|
- var_dump($user_coupon);exit;
|
|
|
|
|
|
+ var_dump(empty($user_coupon));exit;
|
|
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-13")->format('U'))) {
|
|
|
|
|
|
$coupons = array(
|
|
$coupons = array(
|
|
@@ -114,7 +114,6 @@ class WebController extends O2oBaseController {
|
|
|
|
|
|
|
|
|
|
if($home_page){
|
|
if($home_page){
|
|
- exit;
|
|
|
|
$this->renderpartial($home_page.'Index', array(
|
|
$this->renderpartial($home_page.'Index', array(
|
|
'version' => '2015082505',
|
|
'version' => '2015082505',
|
|
'debug' => 'false',
|
|
'debug' => 'false',
|