Merge pull request #321 from tdh62/php8

Exam tag url change and rich businessTypes
This commit is contained in:
xiaomlove
2025-03-17 20:51:56 +08:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -66,6 +66,8 @@ class BonusLogs extends NexusModel
self::BUSINESS_TYPE_BUY_CHANGE_USERNAME_CARD => ['text' => 'Buy change username card'],
self::BUSINESS_TYPE_GIFT_MEDAL => ['text' => 'Gift medal to someone'],
self::BUSINESS_TYPE_BUY_TORRENT => ['text' => 'Buy torrent'],
self::BUSINESS_TYPE_TASK_NOT_PASS_DEDUCT => ['text' => 'Task failure penalty'],
self::BUSINESS_TYPE_TASK_PASS_REWARD => ['text' => 'Task success reward'],
self::BUSINESS_TYPE_ROLE_WORK_SALARY => ['text' => 'Role work salary'],
self::BUSINESS_TYPE_TORRENT_BE_DOWNLOADED => ['text' => 'Torrent be downloaded'],
+1 -1
View File
@@ -2910,7 +2910,7 @@ if ($msgalert)
$exam = new \Nexus\Exam\Exam();
$currentExam = $exam->getCurrent($CURUSER['id']);
if (!empty($currentExam['html'])) {
msgalert("messages.php", $currentExam['html'], $currentExam['exam']->background_color ?? 'blue');
msgalert($currentExam['exam']->type==\App\Models\Exam::TYPE_TASK ? "task.php" : "messages.php", $currentExam['html'], $currentExam['exam']->background_color ?? 'blue');
}
}
if ($offlinemsg)