Your Name vor 3 Jahren
Ursprung
Commit
e7f4104113
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 2 2
      learn/active/src/Home.php
  2. 1 1
      learn/active/src/Off.php

+ 2 - 2
learn/active/src/Home.php

@@ -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) {

+ 1 - 1
learn/active/src/Off.php

@@ -110,7 +110,7 @@ Class Off extends Coreoff
 			// 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) {