问题描述 http://webman.com/123/webman 期待结果 /123/webman http://webman.com/123 期待结果 /123 实际结果 /123/{name} 程序代码或配置 class Index extends Base { public function index($id,$name='web') { return view('index...
<?php namespace app\pkg\middleware; use Illuminate\Database\Events\QueryExecuted; use Illuminate\Events\Dispatcher; use Illuminate\Redis\Events\CommandExecuted; use RuntimeException; use support\Db; use sup...
问题描述 Windows环境下,使用Ev驱动启动报错Libev error(10038) 程序代码 Worker::$eventLoopClass = \Workerman\Events\Ev::class; $worker = new Worker("http://0.0.0.0:2346"); $worker->count = 1; $worker->onMessage = function (...
问题描述 linux crontab 怎么执行webman 的命令行命令 很多单次进程的计划任务,便于管理全部 使用 linux crontab 执行,webman 的命令行 好像必须在webman 的项目根目录执行,请问如果在外面执行呢? 例如:php webman imap:fetch ,在外面 /xxx/php /www/webman webman imap:fetch 执行失败...
问题描述 如题 composer.json(仅有require) "php": ">=8.1", "workerman/webman-framework": "^2.1", "monolog/monolog": "^2.0", "workerman/crontab": "^1.0", "psr/container": "1.1.1", "php-di/php-di":...
php+html 转为 基于workerman5.0的改造 代码举例: 2 个文件,server.php 如下 <?php require_once __DIR__ . '/init.php'; require_once __DIR__ . '/vendor/autoload.php'; use Workerman\Worker; use Workerman\Protocols\Http\Session\...
问题描述 Laravel中使用GatewayWorker,在onMessage中调用控制器的方法,每次修改控制器中的方法要重启GatewayWorker才生效,有什么方法能不需要重启GatewayWorker就生效呢 如下每次修改TestController中的方法,需要重启GatewayWorker才生效 public static function onMessage(string $client_id, $me...
限流器 webman限流器,支持注解限流。 支持apcu、redis、memory驱动。 源码地址 https://github.com/webman-php/rate-limiter 安装 composer require webman/rate-limiter 使用 <?php namespace app\controller; use RuntimeException; use Webman\RateL...
问题描述 用php webman make:model aaa命令创建模型文件 报错 Fatal error: Declaration of Webman\Http\Request::file($name = null) must be compatible with Workerman\Protocols\Http\Request::file(?string $name = null): mixed in C:\U...
问题描述 ubuntu22 使用debug模式正常启动 sudo -u www-data php start.php start 使用DAEMON模式提示 Workerman[start.php] start in DAEMON mode 但是程序却没有运行 sudo -u www-data php start.php start -d 报错信息 没有报错但是进程不启动 webman.pid正常会生成...
1、webman没有报错 2、后来我增加一个定时任务,晚开奖10秒后再去补订单状态,发现定时任务没有报错,但是订单状态也无法更新 应该是锁住了 3、事务使用的是Db::connection('plugin.admin.mysql');...
问题描述 这里写问题描述 在宝塔上安装了webman框架然后再安装了webman-admin。 1.在使用过程中,先是登录时,提示登录成功,但是不跳转后台。过一会再访问就进入后台了。 2.在后台修改某个数据,数据库里是马上就变了,但是后台界面的数据显示却没有变动,隔了好久刷新才会变动。 不知道哪里出问题了。环境也检测过,没啥问题。感觉像有缓存一样。 Workerman版本 4.1.17 Webman版本 1.5...
问题描述 webman-framework 1.6.0版本怎么下载 compoer 下载的只有1.5.24 ...
问题描述 带有图片的EXCEL 模版文件导出PDF的时候,出现报错,如果excel模板没有图片就不会, 具体原因在哪,怎么解决 程序代码 报错信息 控制台报错 libpng warning: iCCP: known incorrect sRGB profile 页面报错提示 截图报错信息里报错文件相关代码 操作系统及workerman/webman等框架组件具体版本 ...
问题描述 PHP Notice: Trying to access array offset on value of type null in /www/wwwroot/genadmin/vendor/workerman/webman-framework/src/support/App.php on line 74 Notice: Trying to access array offset on value of ...
问题描述 官方手册在h5上切换下一页时很不方便,要点击右下角的那个菜单图标才能显示出来菜单,有时点击了也弹不出来菜单,官方可以考虑H5端网页添加上一页下一页功能,方便学习文档,或者将H5右下角的菜单图标使用css的padding将点击范围变大点...
问题描述 已经找到问题了..换个官方的源就行了 O(∩_∩)O哈哈~ 升级版本到v1.5.24时,一直无法升级,新建了一个空白的webman项目也是只能升级到v1.5.19.请教大家有遇到过这个情况吗?谢谢 程序代码 composer show workerman/webman-framework --all name : workerman/webman-framework descrip. : High...