Skip to content

Commit b0cf32b

Browse files
authored
Update reinfo.php
1 parent 9a84a66 commit b0cf32b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trunk/web/template/syzoj/reinfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ function explain(){
9393
}
9494
document.getElementById("errexp").innerHTML=expmsg;
9595

96-
<?php if ( !$isAC && !str_contains($QWEN_API_KEY,"Qwen API Key" )){ ?>
96+
<?php if (!$isAC && isset($OJ_AI_API_URL)&&!empty($OJ_AI_API_URL)){ ?>
9797
expmsg+="AI 答疑 ...<img src='image/loader.gif'>";
9898
$("#errexp").html(expmsg);
99-
$("#errexp").load("qwen.php?sid=<?php echo $id?>", function(response, status, xhr) {
99+
$("#errexp").load("<?php echo $OJ_AI_API_URL?>?sid=<?php echo $id?>", function(response, status, xhr) {
100100
if (status === "success") {
101101
$("#errexp").html(marked.parse($("#errexp").text()));
102102
} else if (status === "error") {

0 commit comments

Comments
 (0)