hhxsv5 / laravel-s

LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

request 设置的参数,后面的代码获取不到

xianlinzhang opened this issue · comments

  1. Your software version (Screenshot of your startup)

    | Software | Version |
    | PHP | 8.1.28 |
    | Swoole | 4.8.13 |
    | LaravelS | 3.7.35 |

  2. Detail description about this issue(error/log)

在控制器里设置了请求参数,在数据仓库里获取不到

  1. Some reproducible code blocks and steps

CorpPoolController.php
request()->mergeIfMissing(['is_pool' => 1]);

CorpRepository,php
request('is_pool');

CorpRepository,php里获取到 is_pool 是null?