* fix unable to generate url.
This commit is contained in:
@@ -447,8 +447,10 @@ class ai extends control
|
||||
$response = $this->ai->executePrompt($prompt, $object);
|
||||
if(empty($response)) return $this->send(array('result' => 'fail', 'message' => $this->lang->ai->execute->fail));
|
||||
|
||||
list($objectData, $rawObject) = $object;
|
||||
|
||||
$this->ai->setInjectData($prompt->targetForm, $response);
|
||||
$location = $this->ai->getTargetFormLocation($prompt, $object);
|
||||
$location = $this->ai->getTargetFormLocation($prompt, $rawObject);
|
||||
if(empty($location)) return $this->send(array('result' => 'fail', 'message' => $this->lang->ai->execute->fail));
|
||||
|
||||
$_SESSION['auditPrompt']['prompt'] = $prompt;
|
||||
|
||||
+1
-1
@@ -974,7 +974,7 @@ class aiModel extends model
|
||||
}
|
||||
elseif(!empty($object->$arg))
|
||||
{
|
||||
$vars[] = $object->$arg;
|
||||
$vars[] = is_object($object->$arg) && !empty($object->$arg->id) ? $object->$arg->id : $object->$arg;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user