* fix a wrong var when jump back to view after publishing a prompt.

This commit is contained in:
Chenjianyu
2023-08-07 10:43:41 +08:00
parent 5e7c566ba3
commit d537d56db5
+1 -2
View File
@@ -566,8 +566,7 @@ class ai extends control
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
if($backToTestingLocation)
{
$prompt = $this->ai->getPromptByID($id);
return $this->send(array('result' => 'success', 'message' => $this->lang->ai->prompts->action->publishSuccess, 'locate' => $this->inlink('promptview', "promptID=$promptId")));
return $this->send(array('result' => 'success', 'message' => $this->lang->ai->prompts->action->publishSuccess, 'locate' => $this->inlink('promptview', "id=$id")));
}
return $this->send(array('result' => 'success'));