|
@@ -243,7 +243,7 @@ class OrderController extends O2oBaseController{
|
|
}
|
|
}
|
|
} else if ($extra[0]['type'] == "3张(3小时/人)"){
|
|
} else if ($extra[0]['type'] == "3张(3小时/人)"){
|
|
for( $i=0;$i<3;$i++) {
|
|
for( $i=0;$i<3;$i++) {
|
|
- Service::factory('CouponService')->giveCoupon($u_id, new MongoId("5835527fa84ea02e758b45b7"), $start_time, $end_time);//发放代金券
|
|
|
|
|
|
+ Service::factory('CouponService')->giveCoupon($u_id, new MongoId("58356a2aa84ea03b018b46bb"), $start_time, $end_time);//发放代金券
|
|
}
|
|
}
|
|
} elseif ($extra[0]['type'] == "6张(2小时/人)"){
|
|
} elseif ($extra[0]['type'] == "6张(2小时/人)"){
|
|
for( $i=0;$i<6;$i++) {
|
|
for( $i=0;$i<6;$i++) {
|
|
@@ -252,7 +252,7 @@ class OrderController extends O2oBaseController{
|
|
} else{
|
|
} else{
|
|
|
|
|
|
for( $i=0;$i<6;$i++) {
|
|
for( $i=0;$i<6;$i++) {
|
|
- Service::factory('CouponService')->giveCoupon($u_id, new MongoId("5835527fa84ea02e758b45b7"), $start_time, $end_time);//发放代金券
|
|
|
|
|
|
+ Service::factory('CouponService')->giveCoupon($u_id, new MongoId("58356a2aa84ea03b018b46bb"), $start_time, $end_time);//发放代金券
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -369,22 +369,22 @@ class OrderController extends O2oBaseController{
|
|
$start_time = date_create("2016-11-11")->format('U');//发放优惠券可用开始时间 2016.11.14
|
|
$start_time = date_create("2016-11-11")->format('U');//发放优惠券可用开始时间 2016.11.14
|
|
$end_time = date_create("2016-12-15")->format('U'); //发放优惠券过期时间 17天
|
|
$end_time = date_create("2016-12-15")->format('U'); //发放优惠券过期时间 17天
|
|
|
|
|
|
- if ($extra[0]['type'] == "3张(2小时/人)"){
|
|
|
|
|
|
+ if ($order->products[0]['extra']['type']['type'] == "3张(2小时/人)"){
|
|
for( $i=0;$i<3;$i++) {
|
|
for( $i=0;$i<3;$i++) {
|
|
Service::factory('CouponService')->giveCoupon($u_id, new MongoId("5835527fa84ea02e758b45b7"), $start_time, $end_time);//发放代金券
|
|
Service::factory('CouponService')->giveCoupon($u_id, new MongoId("5835527fa84ea02e758b45b7"), $start_time, $end_time);//发放代金券
|
|
}
|
|
}
|
|
- } else if ($extra[0]['type'] == "3张(3小时/人)"){
|
|
|
|
|
|
+ } else if ($order->products[0]['extra']['type']['type'] == "3张(3小时/人)"){
|
|
for( $i=0;$i<3;$i++) {
|
|
for( $i=0;$i<3;$i++) {
|
|
- Service::factory('CouponService')->giveCoupon($u_id, new MongoId("5835527fa84ea02e758b45b7"), $start_time, $end_time);//发放代金券
|
|
|
|
|
|
+ Service::factory('CouponService')->giveCoupon($u_id, new MongoId("58356a2aa84ea03b018b46bb"), $start_time, $end_time);//发放代金券
|
|
}
|
|
}
|
|
- } elseif ($extra[0]['type'] == "6张(2小时/人)"){
|
|
|
|
|
|
+ } elseif ($order->products[0]['extra']['type']['type'] == "6张(2小时/人)"){
|
|
for( $i=0;$i<6;$i++) {
|
|
for( $i=0;$i<6;$i++) {
|
|
Service::factory('CouponService')->giveCoupon($u_id, new MongoId("5835527fa84ea02e758b45b7"), $start_time, $end_time);//发放代金券
|
|
Service::factory('CouponService')->giveCoupon($u_id, new MongoId("5835527fa84ea02e758b45b7"), $start_time, $end_time);//发放代金券
|
|
}
|
|
}
|
|
} else{
|
|
} else{
|
|
|
|
|
|
for( $i=0;$i<6;$i++) {
|
|
for( $i=0;$i<6;$i++) {
|
|
- Service::factory('CouponService')->giveCoupon($u_id, new MongoId("5835527fa84ea02e758b45b7"), $start_time, $end_time);//发放代金券
|
|
|
|
|
|
+ Service::factory('CouponService')->giveCoupon($u_id, new MongoId("58356a2aa84ea03b018b46bb"), $start_time, $end_time);//发放代金券
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|