Scott Yu

Results 4 comments of Scott Yu

Hi, Thanks for your comment, your mean Nginx rewrite conf ? ``` location / { try_files $uri $uri/ /index.php$is_args$query_string; } ```

``` server { listen 80; server_name translate.demo.yusure.cn; index index.php index.html index.htm default.php default.htm default.html; root /www/wwwroot/TranslationManagement/public; #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则 #error_page 404/404.html; #SSL-END #ERROR-PAGE-START 错误页配置,可以注释、删除或修改 error_page 404 /404.html; error_page 502 /502.html; #ERROR-PAGE-END...

长连接模式下,如果之前已经选择了一个非0的数据库,那么后续的请求复用这个连接时,会保持之前选择的数据库。 可以这样优化一下: ``` // 选择指定数据库 if (isset($this->options['select']) && is_numeric($this->options['select'])) { $this->handler->select($this->options['select']); } ```

@hongweipeng 你好作者,通过注解方式,$key 传不了闭包 Closure 类型吧?我想自定义 key 要怎么实现,是不是用不了注解方式了 我看了下 webman 是可以传入静态方法来自定义的,用我们的 think- throttle 要怎么实现?