fixe
This commit is contained in:
parent
cb5a8b46a9
commit
94a5e0a09a
|
@ -131,11 +131,17 @@ class ChatController extends BaseController
|
|||
Cache::set("chat_messages_" . Auth::user()->id, self::$context_messages);
|
||||
}
|
||||
|
||||
return $this->json([
|
||||
// return $this->json([
|
||||
// 'success' => true,
|
||||
// 'result' => $result,
|
||||
// 'history' => self::$context_messages,
|
||||
// ], 200);
|
||||
echo " ::end:: " . json_encode([
|
||||
'success' => true,
|
||||
'result' => $result,
|
||||
'history' => self::$context_messages,
|
||||
], 200);
|
||||
]);
|
||||
exit;
|
||||
} catch (\Exception $e) {
|
||||
|
||||
return $this->json([
|
||||
|
|
Loading…
Reference in New Issue