|
@@ -205,7 +205,7 @@ Class Home extends Core
|
|
$user = Dever::db('active/user')->find($uid);
|
|
$user = Dever::db('active/user')->find($uid);
|
|
|
|
|
|
$info = Dever::db('active/info')->find($active_id);
|
|
$info = Dever::db('active/info')->find($active_id);
|
|
- if ($info['status'] == 5 || time() >= $info['act_end']) {
|
|
|
|
|
|
+ if ($info['act_status'] == 5 || time() >= $info['act_end']) {
|
|
Dever::alert('活动已结束');
|
|
Dever::alert('活动已结束');
|
|
}
|
|
}
|
|
if ($info['status'] == 2) {
|
|
if ($info['status'] == 2) {
|
|
@@ -274,7 +274,7 @@ Class Home extends Core
|
|
// if (time() < $active['act_start']){
|
|
// if (time() < $active['act_start']){
|
|
// Dever::alert('活动未开始');
|
|
// Dever::alert('活动未开始');
|
|
// }
|
|
// }
|
|
- if ($active['status'] == 5 || time() >= $active['act_end']) {
|
|
|
|
|
|
+ if ($active['act_status'] == 5 || time() >= $active['act_end']) {
|
|
Dever::alert('活动已结束');
|
|
Dever::alert('活动已结束');
|
|
}
|
|
}
|
|
if ($data['status'] == 2) {
|
|
if ($data['status'] == 2) {
|