问题描述 这里详细描述问题 报错信息 process terminated with ERROR: E_ERROR "Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /root/webman/vendor/illuminate/database/Connection.php on line 338...
问题描述 访问就报错,本地windows调试是正常的,发到服务器上就报错了。 本地是php8.2, 服务器是php8.3。 这个问题完全不知道怎么查,大佬们帮忙看看 程序代码 报错信息 操作系统及workerman/webman等框架组件具体版本 catchwebman后台框架...
问题描述 Route::any('/test', [app\api\controller\AggregationController::class, 'test']); Route::any('/test2', [app\api\controller\AggregationController::class, 'test2']); Route::any('/test3', [app\api\controller\Ag...
问题描述 think-orm在webman2.1使用mongo数据库出现TypeError: think\db\connector\Mongo::query() 程序代码 TypeError: think\db\connector\Mongo::query(): Argument #1 ($query) must be of type MongoDB\Driver\Query, string given, calle...
问题描述 webman-framework:2.1 Workerman:5.1.0 安装webmanai 安装提示webman/openai版本冲突 与workerman/http3.0本版也冲突 ...
比如 抓你文章 url参数 id 加密 不要使用连续的 例如 id = 1 id=2 但是人家可以抓列表页 然后再匹配出id 还有就是数据接口加密 请求返回的都是加密的 例如 asdklaslkdsajdalkjd 但是人家可以本地破解 你只要解密的在客户端跑 都可以破解 就是时间问题 如何限制别人访问请求 比如正常人一次大概10秒吧 看一个页面 那个接口爬虫 一下就看200个页面 怎么限制他呢 加验证码吗? 但是这...
问题描述 文件 vendor/workerman/gateway-worker/src/Register.php 测试环境 PHP 8.4 指定了强类型 declare (strict_types=1); 运行时会报错 GatewayWorker\Register::__construct(): Implicitly marking parameter $socketName as nullable is depre...
问题描述 查文档得知 中间件 实际情况如下图: 程序代码或配置 Webman\Route /** * Fallback. * @param callable|mixed $callback * @param string $plugin * @return void */ public static function fallback(calla...
问题描述 升级了Webman2.1和webman/log1.2.1版本,运行并访问后报错: ReflectionException: Class "support\Db" does not exist in D:\Documents\Desktop\Pleafles\_Yes\PHP\WorkerMan\_Projects\Webman\vendor\webman\log\src\Middleware.php:256...
问题描述 定义一个公共的模型继承类,看了文档说使用过多static会造成内存泄漏。这样写会遇到内存泄漏或者是其他的问题吗 代码 公共代码 <?php namespace ceshi\basic; use think\db\Query; use think\Model; use think\model\concern\SoftDelete; /** * 基础模型类 * 提供通用的数据库操作方法 */ ...