問(wèn)題描述 我在體驗(yàn)https://bla.cn 地址開(kāi)了webman AI助手的會(huì)員,但是Midjourney作圖一直出不來(lái)。 ...
問(wèn)題描述 php靜態(tài)文件報(bào)錯(cuò) 報(bào)錯(cuò)信息 PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: /app/php-dist/lib/php/20210902/zip.so (Dynamic loading not supported), /app/php-dist/lib/php/20210902/zip.so.so (Dy...
問(wèn)題描述 實(shí)現(xiàn)類(lèi)似laravel的控制器中間件,有沒(méi)有大佬提供個(gè)思路。...
問(wèn)題描述 由于辣雞前端不會(huì)處理,所以返回的結(jié)構(gòu)得按照它指定的格式返回, 格式如下 { "count": "總數(shù)量", "page": "當(dāng)前頁(yè)", "limit": "每頁(yè)數(shù)量", "pages": "總頁(yè)數(shù)", "list": "...
問(wèn)題描述 私有頻道鑒權(quán),默認(rèn)是使用session辨別當(dāng)前用戶身份,前后端分離項(xiàng)目,如何使用頭部token方式鑒權(quán)?...
問(wèn)題描述 項(xiàng)目比較大,composer依賴(lài)較多。二進(jìn)制打包后就是超過(guò)128M了,./webman.bin start -d 無(wú)法啟動(dòng)...
問(wèn)題描述 執(zhí)行composer dump-autoload -o 自動(dòng)加載性能優(yōu)化, 會(huì)出現(xiàn)以下警告。項(xiàng)目根目錄/support下的Request類(lèi)和Response類(lèi),和workerman/webman-framework/src/support下重復(fù)了。 有個(gè)疑問(wèn),既然框架有這2個(gè)類(lèi)了,為什么項(xiàng)目目錄為什么還要留著這2個(gè)類(lèi),我可以把他刪掉嗎?...
執(zhí)行自定義命令 php ./webman.phar ResetAdminPasswd -p 123456 報(bào)錯(cuò) In ConnectionFactory.php line 207: Database hosts array is empty. ...
問(wèn)題描述 打包報(bào)錯(cuò) 程序代碼 php webman build:bin 8.1 報(bào)錯(cuò)信息 Phar packing... In BuildPharCommand.php line 83: Iterator RegexIterator returned a path "/private/var/run/mysqld/mysqld.sock" that is not in the base directory "...
問(wèn)題描述 webman做api開(kāi)發(fā),提供了一個(gè)接收日志的接口。 發(fā)現(xiàn)隔斷時(shí)間,對(duì)方post日志過(guò)來(lái)就會(huì)收不到。 這個(gè)是對(duì)方日志里看到了。 .c 646][OnTcpConnected]connect host failed err[-111],hostID[0] . get_peer_addr peer_addr: 192.168.0.3 !...
問(wèn)題描述 api接口返回orm查詢(xún)的數(shù)據(jù)列表,為什么非常耗時(shí)。 好奇葩的問(wèn)題,找了幾天不知道什么原因。。。 laravel orm 查詢(xún)的結(jié)果,一共就20條。toArray()花了3秒多的時(shí)間. $time1 = time(); echo "時(shí)間1: {$time1}" . PHP_EOL; $users = User::with([ 'authentication', 'payee', ])-&g...
問(wèn)題描述 比如我想寫(xiě)個(gè)全局中間件convertEmptyStringToNull,把請(qǐng)求的空字符串改成null,能實(shí)現(xiàn)嗎?...
問(wèn)題描述 例如我自定義一個(gè)命名,執(zhí)行 php webman 自定義命令, 生產(chǎn)環(huán)境打包二進(jìn)制后,是不是就不能用了?...
問(wèn)題描述 webman應(yīng)用插件能不能像主應(yīng)用一樣Route::disableDefaultRoute()關(guān)閉默認(rèn)路由 只有自己定義的路由規(guī)則才允許訪問(wèn) 目前我測(cè)了一下,在應(yīng)用插件app/controller目錄下的控制器方法,都能被訪問(wèn),我如果像禁止掉,只有在路由文件里配置才允許訪問(wèn)要怎么操作?...
問(wèn)題描述 Phar::OPENSSL打包后執(zhí)行出錯(cuò) 程序代碼 php webman.phar start 報(bào)錯(cuò)信息 PHP Fatal error: Uncaught PharException: phar "/Users/linyangbin/wwwroot/new-zhuoye/server/build/webman.phar" openssl signature could not be verified: ...
數(shù)據(jù)庫(kù)orm模型觀察者無(wú)效 模型以及觀察者關(guān)鍵代碼 # 模型關(guān)鍵代碼 public static function boot() { parent::boot(); static::observe(ConfigObserver::class); } # 觀察者代碼 class ConfigObserver { public function created(Config $config) {...
數(shù)據(jù)庫(kù)遷移執(zhí)行成功,查看數(shù)據(jù)庫(kù)表都沒(méi)生成,只生成了一個(gè)phinxlog表 phinx.php文件 <?php require_once __DIR__ . '/vendor/autoload.php'; use Dotenv\Dotenv; Dotenv::createImmutable(base_path())->load(); return [ 'paths' => [ ...
PHP Fatal error: Uncaught Error: Call to undefined function pcntl_alarm()...