use support\request;
protected $requst = null;
public function __construct(request $request)
{
$this->request = $request;
}
上面写法会报错
ArgumentCountError: Too few arguments to function app\controller\Login::__construct(), 0 passed in /www/wwwroot/webman/vendor/workerman/webman-framework/src/Container.php on line 30 and exactly 1 expected in /www/wwwroot/webman/app/controller/Login.php:21
问题描述
Workerman version:4.1.15
PHP version:7.3
windows server 环境
connectToRemote 后运行一段时间(几小时~2天)就无法接收发送消息程序代码
```
namespace App\Http\Socket;
use App\Http\Controllers\PtTestController;
use Exception;
use GatewayWorker
_, :__2__, :__3__) AND bar IS NULL AND baz = :__4__ AND zim = NOW()
$select->whereEquals(); 看了下源码 没有发现支持whereEquals写法,
使用bindValues能否传递一个数组的写法 来达到in的目的(貌似可以and and and)
如果使用query写原生语句 就只能拆开条件拼接了
Fatal error: Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, array given in D:\Apache24\htdocs\zongheng\gateway\vendor\workerman\gateway-worker\src\Lib\Context.php:130