perf: 添加ChatGPT、Claude智能机器人

This commit is contained in:
kuaifan
2023-07-27 16:00:16 +08:00
parent efdc4c5229
commit 569145196e
15 changed files with 290 additions and 18 deletions

View File

@@ -658,7 +658,7 @@ class DialogController extends AbstractController
$userid = intval(Request::input('userid'));
$stream_url = trim(Request::input('stream_url'));
//
if ($userid < 1 || !str_starts_with($stream_url, 'http')) {
if ($userid <= 0) {
return Base::retError('参数错误');
}
//