|
@@ -82,6 +82,7 @@ class ActivityController extends O2oBaseController {
|
|
|
$coupon_id =new MongoId($coupon_id);
|
|
|
$start_time = time(); //发放优惠券可用开始时间
|
|
|
$end_time = $start_time + 86400*30; //发放优惠券过期时间
|
|
|
+
|
|
|
$flag = 0;
|
|
|
if ($userId != '') {
|
|
|
$userId = new MongoId($userId);
|
|
@@ -94,7 +95,6 @@ class ActivityController extends O2oBaseController {
|
|
|
}
|
|
|
$flag = 1;
|
|
|
}
|
|
|
-
|
|
|
if($flag){
|
|
|
$this->renderpartial('index');
|
|
|
}else{
|