怎么在 webman command 使用 webman/openai 调用AI接口

控制器里这么用 <?php namespace app\controller; use support\Request; use Webman\Openai\Chat; use Workerman\Protocols\Http\Chunk; class ChatController { public function completions(Request $request) { ...

chen 发表与 15天前 240 浏览 2 回答
webman/admin 打开多个页面,其他页面空白

问题描述 打开多个页面后,在当前tab按F5刷新浏览器,然后关闭当前tab,其他页面都变空白了 (如果是切换tab没问题)...

chen 发表与 27天前 141 浏览 0 回答
使用 webman build:bin 打包 webman.bin 文件交付,能被反编译吗

问题描述 使用 php webman build:bin 打包, 把 webman.bin 文件交付给客户,客户能被反编译出源码吗?...

chen 发表与 2025-07-28 403 浏览 4 回答
请问这种路由应该怎么定义

问题描述 怎么定义下面的路由: GET: /users/ 访问第1页 GET: /users/index_1.html 访问第1页 GET: /users/index_2.html 访问第2页 …… GET: /users/index_N.html 访问第N页...

chen 发表与 2025-07-22 136 浏览 1 回答
多数据库 Database connection [backup] not configured.

问题描述 程序代码 public function handle() { Db::connection('backup')->table('test')->orderBy('id')->chunk(100, function ($items) { dump($items);exit; }); }...

chen 发表与 2025-07-21 276 浏览 2 回答
可以把 laravel 和 webman 整合到一起吗

问题描述 比如把 webman 做成 laravel 的一个 package,假设这个包叫 workerman/laravel-webman 这个包其实就和 https://github.com/walkor/webman 代码差不多 composer require workerman/laravel-webman 后,会在laravel里注册一个command,比如就叫 webman(可以使用 php artis...

chen 发表与 2024-01-21 2664 浏览 3 回答
webman/admin 0.5.2 安装后403

问题描述 复现步骤 composer create-project workerman/webman composer require webman/admin php start.php start 访问 http://127.0.0.1:8787/app/admin 更多信息 composer info doctrine/inflector 2.0.4 PHP Doctri...

chen 发表与 2022-12-13 1857 浏览 1 回答
新手请教,怎么使用laravel的migration啊

https://learnku.com/docs/laravel/9.x/migrations/12248 折腾了半天,没折腾成功,有大神搞个插件吗...

chen 发表与 2022-05-20 1381 浏览 1 回答
已有项目 composer install 报错

从项目仓库克隆下代码,执行 composer install -vvv 报错如下: ...

chen 发表与 2022-03-22 1188 浏览 1 回答
webman start 启动server 使用phpdotenv 的bug

...

chen 发表与 2022-03-21 1758 浏览 1 回答
php webman stop Fatal error

...

chen 发表与 2022-03-14 1210 浏览 3 回答
建议walkor老大加个论坛帖子的收藏功能

目前很多帖子只能加到浏览器收藏夹,很不方便...

chen 发表与 2022-03-07 1453 浏览 3 回答
关于自定义进程执行异步任务的问题

代码如下: 控制器 app/controller/Index.php <?php namespace app\controller; use support\Log; use support\Request; use Workerman\Connection\AsyncTcpConnection; class Index { public function index(Request $requ...

chen 发表与 2022-02-26 2800 浏览 1 回答
关于在GatewayWorker里用户授权后的问题

使用GatewayWorker做的长连接和客户端通信,非常感谢walkor老大开源这么好用的项目 客户端在连接上服务器时做用户登录,现在用的手册里提供的 Timer 定时器方法 https://workerman.net/doc/gateway-worker/close-unauthed-connections.html 请教个问题: 但是客户端连接上服务器后,如果30s内不认证,而是直接进行其他操作,那就每次都得判...

chen 发表与 2022-02-16 1657 浏览 2 回答
上传文件时报错 Undefined index: type

控制器代码 class Device { public function upload(Request $request) { $file = $request->file('file'); } } 报错如下: [2022-01-21 15:11:14] default.ERROR: Undefined index: type {"exception"...

chen 发表与 2022-01-21 1726 浏览 1 回答
一共开了16个进程,用ab压了1000w请求,看status是只有8个进程处理请求的意思吗

ab -n 10000000 -c 5000 -k http://127.0.0.1:8787/ ...

chen 发表与 2022-01-19 2617 浏览 1 回答
按文档优化linux内核,执行sysctl -p有个报错

按照这个文档优化linux内核 https://www.workerman.net/doc/workerman/appendices/kernel-optimization.html 修改完成 /etc/sysctl.conf 文件保存,执行 sysctl -p,报错信息如下: ...

chen 发表与 2022-01-19 2442 浏览 1 回答
新手请教这是为什么

控制器代码 app/controller/Index.php class Index { protected $count; public function index(Request $request) { $this->count++; return response('count:' . $this->count); } } 配置...

chen 发表与 2022-01-12 1556 浏览 2 回答

chen

660
积分
0
获赞数
0
粉丝数
2022-01-12 加入
🔝