|
@@ -438,6 +438,7 @@ class OrderController extends O2oBaseController{
|
|
|
}
|
|
|
|
|
|
$UserCoupon = new UserCoupon();
|
|
|
+ echo $get_all;
|
|
|
if($get_all){
|
|
|
$criteria = new EMongoCriteria();
|
|
|
$criteria->user('==',new MongoId($user_id));
|
|
@@ -504,17 +505,16 @@ class OrderController extends O2oBaseController{
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ var_dump($price);
|
|
|
$criteria = new EMongoCriteria();
|
|
|
$criteria->user('==',new MongoId($user_id));
|
|
|
$current_time = time();
|
|
|
$criteria->start_time('<=',$current_time);
|
|
|
$criteria->end_time('>=',$current_time);
|
|
|
$criteria->status('==',1);
|
|
|
-
|
|
|
+ var_dump($criteria);
|
|
|
$coupons = UserCoupon::model()->findAll($criteria);
|
|
|
- var_dump($coupons);
|
|
|
- echo "1";
|
|
|
+
|
|
|
$coupon_list = array();
|
|
|
$unuseable_coupons = array();
|
|
|
foreach ($coupons as $value) {
|