问题描述 验证器中的提示信息,使用多语言插件进行翻译,报错 程序代码 protected $rule = [ 'name' => 'require', 'card_no' => 'require', 'front_view' => 'require', 'back_view' => ...
问题描述 我准备开发一个cms应用插件,想要实现 http://domain/ 就能访问到这个cms的首页 我的想法是在config/route.php中,直接添加路由 <?php use Webman\Route; // 引用 route 中的路由文件 foreach (glob(base_path() . '/route/*.php') as $filename) { include_once $f...
通过一个链接,http://127.0.0.1:8787/Fuwu/goumai/fuwuid/3返回这样一个get,用的是用thinkorm,可是怎么不能成功获取get参数呢? <?php namespace app\controller; use support\Request; use support\Response; use support\exception\BusinessException; u...
问题描述 这里详细描述问题 我这边设备连接上ws,但是一直重连,一直不停的重连 抓包截图里,是服务器发送断开请求这是为啥呀 程序代码 public static function onConnect($client_id) { echo $client_id.'连接成功' . datetime(time()). "\n" ; } /** * 当用户断开连接时触...
问题描述 我在webman-admin 生成了如下图文件上传这样一个字段,请问我到哪里修改:“ /app/admin/upload/files/20240303”这样的路径 ...
问题描述 使用composer create-project workerman/webman 创建项目时报错 程序代码 composer create-project workerman/webman webman 报错信息 Package operations: 0 installs, 1 update, 9 removals - Downloading workerman/workerman (v4.1.1...
问题描述 我修改了config/process.php中的user和group为www webman目录所有者也改为了www 但是启动还是会报错Warning: file_put_contents(/root/webman/runtime/logs/workerman.log): Failed to open stream: Permission denied...
问题描述 Linux Centos8版本中执行yum安装,出现报错信息如下,现在nginx是用宝塔安装的,卸载了还是这样, 程序代码 yum install iftop -y Repository extras is listed more than once in the configuration Invalid configuration value: failovermethod=priority in /...
问题描述 PHP有内置的服务器,就是PHP -S 命令,但这个命令是阻塞的,及时是加载js等静态资源也都是阻塞的。 如果使用workerman代替这个命令,能非阻塞处理吗? 为此你搜索到了哪些方案及不适用的原因 我的预期是,在windows上运行后,可以非阻塞的发起请求,比如静态资源和业务逻辑。最好的情况是,如果业务逻辑阻塞的话,HTTP服务不要阻塞。 我希望把程序打包运行,如果workerman能实现的话,就不需要...
大家好! 我正在使用Webman框架进行我的项目开发,但我在设置依赖注入方面遇到了一些问题。我希望能够得到一些指导或者示例,以便更好地利用Webman框架的依赖注入功能。 我已经查阅了相关文档,但我仍然感到有些困惑。如果有人能够提供一些实际的例子,或者分享一下他们在项目中成功使用依赖注入的经验,我将不胜感激。 同时,我也想分享一下我的 composer.json 文件,以便更好地理解我的项目结构和依赖项。以下是我的 ...
问题描述 提示这个No entry or class found for 'webman-ffmpeg' 程序代码 $format = new X264('aac', 'libx264'); $paths = public_path('/video/20240123/113799054.mp4'); $mainPlaylistPath = public_path('/video/202...
问题描述 购买了 AI 插件基础版本,想把流式输出移植到自己的程序里面,现在发现客户端请求程序以后在控制台能正常输出响应,但是客户端 连接报错,无法流式返回,想请问下问题可能出在哪里 public function chat(Request $request) { $input = $request->all(); if (empty($input['id'])) ...
验证使用unique方法报错. Db找不到. Error: Class "think\facade\Db" not found in /Users/xx/Sites/webman/vendor/yzh52521/webman-validate/src/Validate.php:1147<br/> Stack trace:<br/> ...
问题描述 偶发性出现 cURL error 7: Failed to connect to www.xxx.com port 443: Connection refused 对方说 请求未到达网关 无法排查 有人遇到过这问题吗? 程序代码或配置 $client = new Client([ 'base_uri' => $domain, 'timeout' ...
问题描述 thinkphp6.1 使用php think worker启动http服务 多应用模式下访问路由出错。 使用Workerman作为HttpServer,多应用情况下 第一次访问,http://127.0.0.1:2346/api/Index/banners,返回正常 刷新后,就报错提示控制器不存在 个人感觉是没有加载到多模块的那个包,有遇到相同问题的水友给解答一下 thinkphp官方没人管,我看到8...
问题描述 <?php namespace app\admin\controller; use GatewayWorker\BusinessWorker; use Workerman\Worker; //require '../extend/GlobalData-master/src/Client.php'; class GateWayBusinessWorker { public functio...
问题描述 PHP 8.0.8 workerman 4.1.14 composer require workerman/redis 报错,就workman安装后什么都没装,紧急求助!!之前别人发那个贴一样问题解决方法无效 程序代码 Your requirements could not be resolved to an installable set of packages. Problem 1 - R...