|
@@ -2,7 +2,7 @@
|
|
|
class WebController extends O2oBaseController {
|
|
|
|
|
|
public function actionIndex() {
|
|
|
-
|
|
|
+
|
|
|
$signPackage = CommonWeixin::get_sign();
|
|
|
$home_page = Yii::app()->getRequest()->getParam("home_page",'');
|
|
|
$code = Yii::app()->getRequest()->getParam("code");
|
|
@@ -77,7 +77,7 @@ class WebController extends O2oBaseController {
|
|
|
$criteria->coupon('==',new MongoId('5822c17f9f5160bc048b4f98'));
|
|
|
$criteria->user('==', new MongoId($userId));
|
|
|
$user_coupon = UserCoupon::model()->find($criteria);
|
|
|
- if ( $userId == '57e238929f5160d6048b456d' || (empty($user_coupon) && time() >= intval(date_create("2016-11-11")->format('U')) && time() <= intval(date_create("2016-11-17")->format('U')))) {
|
|
|
+ if ( $userId == '57e38f1b9f5160ac048b457d' || (empty($user_coupon) && time() >= intval(date_create("2016-11-11")->format('U')) && time() <= intval(date_create("2016-11-17")->format('U')))) {
|
|
|
|
|
|
$coupons = array(
|
|
|
0 => array('5822c17f9f5160bc048b4f98','5822eaa39f5160ca048b50e6','5822eaf59f5160b2048b4ed3','5822eb6a9f5160d3048b4eab','5822ebfa9f5160a9048b4f43','5822ec399f5160c2048b5158','5822ec709f5160bc048b5006'),
|