|
@@ -329,8 +329,9 @@ class limit_outer
|
|
|
|
|
|
$act_id = $act['xianshi_id'];
|
|
|
$gids = activity_helper::limit_goods($act_id);
|
|
|
- $goods_ids = array($gids[0]);
|
|
|
+ if(empty($gids)) return false;
|
|
|
|
|
|
+ $goods_ids = array($gids[0]);
|
|
|
$helper = new goods_helper();
|
|
|
$ret = $helper->online_summary($goods_ids,$related);
|
|
|
|
|
@@ -363,8 +364,9 @@ class limit_outer
|
|
|
$act = $this->mAct;
|
|
|
$act_id = $act['groupbuy_id'];
|
|
|
$gids = activity_helper::groupbuy_goods($act_id);
|
|
|
- $goods_ids = array($gids[0]);
|
|
|
+ if(empty($gids)) return false;
|
|
|
|
|
|
+ $goods_ids = array($gids[0]);
|
|
|
$helper = new goods_helper();
|
|
|
$ret = $helper->online_summary($goods_ids,$related);
|
|
|
|
|
@@ -425,7 +427,9 @@ class activityControl extends mobileControl
|
|
|
$act = $acts[0];
|
|
|
$outer = new limit_outer(limit_outer::WAIT_END,$act);
|
|
|
$result = $outer->format();
|
|
|
- return self::outsuccess($result,"activity/limit_entra");
|
|
|
+ if($result != false) {
|
|
|
+ return self::outsuccess($result,"activity/limit_entra");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$unstarts = activity_helper::unstart();
|
|
@@ -433,7 +437,9 @@ class activityControl extends mobileControl
|
|
|
$act = $unstarts[0];
|
|
|
$outer = new limit_outer(limit_outer::WAIT_START,$act);
|
|
|
$result = $outer->format();
|
|
|
- return self::outsuccess($result,"activity/limit_entra");
|
|
|
+ if($result != false) {
|
|
|
+ return self::outsuccess($result,"activity/limit_entra");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return self::outsuccess(null,"activity/limit_entra");
|