|
...
|
...
|
@@ -29,13 +29,17 @@ class AiCommandController extends BaseController |
|
|
|
]);
|
|
|
|
|
|
|
|
$text = AiCommandLogic::instance()->ai_send();
|
|
|
|
$data = [
|
|
|
|
'code' => $text ? 200 : 500,
|
|
|
|
'text' => $text
|
|
|
|
];
|
|
|
|
$param = [
|
|
|
|
'key' => $this->param['key'],
|
|
|
|
'keywords' => $this->param['keywords'],
|
|
|
|
'remark' => $text
|
|
|
|
];
|
|
|
|
$this->set_ai_log($param);
|
|
|
|
$this->response('success', Code::SUCCESS, ['text' => $text]);
|
|
|
|
$this->response('success', Code::SUCCESS, $data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|