[已解决]webman Cache 使用file,或array报错

问题描述 如题 仍需要 composer require -W illuminate/redis 否则报错 另外一个问题是关于使用 array 类型缓存 public static function index() { $cacheKey = 'watchlist'; if (!Cache::has($cacheKey)) { //从数据库中返回第一条数据 ...

lsmir2 发表与 28天前 147 浏览 1 回答
webman 使用 http-client 携程请求

问题描述 webman 使用 http-client 携程请求 参考https://www.workerman.net/q/10702 composer require workerman/workerman v5.0.0-beta.7 revolt/event-loop ^1.0.0 workerman/http-client ^2.0.0 public static function RequestPost(s...

lsmir2 发表与 2024-06-08 895 浏览 2 回答
【已解决】webman 路由 /admin//login 控制台报错 Worker [xxxx] process terminated with ERROR: E_COMPILE_ERROR

问题描述 起因是调试接口在 我在请求地址控制器后面多打了一个斜杆 127.0.0.1:8787/admin//login/refreshToken 程序代码 config/route.php <?php use Webman\Route; Route::fallback(function () { // 处理跨域 options 请求 response()->withHeaders([ ...

lsmir2 发表与 2024-05-26 335 浏览 1 回答

lsmir2

670
积分
0
获赞数
0
粉丝数
2024-01-29 加入
×
🔝