問題描述 看了TY大佬(@Tinywan)的公眾號(hào)文章,有個(gè)spatie/async 的使用; https://github.com/spatie/async https://mp.weixin.qq.com/s/sd3leq0ezl9ssPryUHQ18A 我是在thinkphp5.1里面使用; 但是報(bào)錯(cuò)了,如果不使用TP的相關(guān)的類是可以正常跑的,在子任務(wù)里面用了TP的相關(guān)類就找不到類了; 我看文檔是子任務(wù)要初始化...
問題描述 這里詳細(xì)描述問題 程序代碼 下面放在外面無法捕獲,直接顯示報(bào)錯(cuò)信息了 try { $config = \config('cache.stores.redis'); $client = new Client($config['type'] . '://' . $config['host'] . ':' . $config['port'], ['auth' => $config['pass...
問題描述 使用正常,就是去刷新token提示“刷新令牌無效” 程序代碼 完整代碼: https://gitee.com/pandamen/test20230728.git 報(bào)錯(cuò)信息 這里粘貼報(bào)錯(cuò) 操作系統(tǒng)及workerman/webman等框架組件具體版本 ...
gitfei1231/webman-api-sign安裝問題描述 composer require gitfei1231/webman-api-sign 報(bào)錯(cuò)信息 Generating rules Resolving dependencies through SAT Problem 1 - gitfei1231/webman-api-sign[0.0.1, 0.0.2, 0.0.3, 0.0.4,...
workerman V5 發(fā)了測(cè)試版,但是我感覺不出啥效果,大佬們有相關(guān)demo讓我體驗(yàn)下嘛? Db有異步IO的組件出來嘛? composer require workerman/workerman ^5.0.0-beta.5 composer require workerman/http-client ^2.0.1 composer require revolt/event-loop ^1.0.1 composer...
問題描述 composer安裝報(bào)各種兼容錯(cuò)誤 是不是暫時(shí)還不兼容PHP8.2? 系統(tǒng)環(huán)境 CentOS 7.9.2009 PHP 8.2.0 (cli) (built: Feb 8 2023 14:28:11) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.0, Copyright (c) Zend Technologies composer 2.5.4 程序...
我的需求是: ws://192.168.10.45:20003/?token=123 獲取token參數(shù),但是沒有找到相關(guān)函數(shù), 然后發(fā)現(xiàn)TcpConnection有g(shù)etSocket()函數(shù) 通這個(gè)函數(shù)可以file_put_contents下載下來然后就可以正則拿到token了 但是我想直接getSocket()函數(shù)拿到資源打印出來直接正則好像不行,不知道怎么打印socket資源? 我想直接getHandTo...
請(qǐng)問在GatewayWorker 中onConnect怎么獲取 query 參數(shù) 像下面這樣,怎么在onConnect中獲取token參數(shù) ws://192.168.10.31:2348/?token=123...
請(qǐng)問獲取獲取請(qǐng)求域名和webman的版本號(hào)? 我用Request()->host是ip地址...
所有函數(shù)打印都出現(xiàn)2次,不知道為什么? 更新: 問題好像出現(xiàn)跨域請(qǐng)求中間件這里? 這里注釋就沒有出現(xiàn)2次了。...
Cannot modify header information - headers already sent by (output started at F:\php\webman-admin\vendor\workerman\webman-framework\src\Route.php:265) 返回是在控制器Response返回的,但是我想先在模型層設(shè)置cookie后,后續(xù)處理一些業(yè)務(wù)。...