liuqiandev

Results 11 comments of liuqiandev

`GatewayWorker\Lib\Gateway::$registerAddress = 'xxxx';` 不是这样用么?

代码: ``` $msg = ['path'=>'gateway-172.17.16.7:5000']; $msg = json_encode($msg); \GatewayClient\Gateway::$registerAddress = '172.17.16.7:5000'; dump(11111); dump(\GatewayClient\Gateway::isUidOnline(10120)); \GatewayClient\Gateway::sendToUid(10120,$msg); \GatewayClient\Gateway::$registerAddress = '172.17.16.5:5000'; dump(2222); dump(\GatewayClient\Gateway::isUidOnline(10118)); $data=['path'=>'gateway-172.17.16.5:5000']; $data = json_encode($data); \GatewayClient\Gateway::sendToUid(10118,$data); ``` 日志: ``` [2020-09-01T17:47:06+08:00][error] 172.17.16.7:2000 [2020-09-01T17:47:06+08:00][error]...

断点打在`\GatewayClient\Gateway`的`1212`行 ``` foreach ($all_addresses as $address) { Utils::error($address); Utils::error($buffer); static::sendBufferToGateway($address, $buffer); } ```

最后通过异步队列实现的,但这个问题还是在。

在系统服务的register中使用`$this->app->bind('think\Paginator',HuikePaginator::class);`

多次测试问题还是存在。 主要是sdk 28 android 9真实环境下,getDeviceId方法返回reject,调试模式一切都正常。rn版本0.59.8

通过生命周期方法触发不行,通过按钮点击也不行,应该是bug而不是初始化问题,android 7 设备是可以的

通过模拟器 android 9设备也不行..

1、errorHandler只能处理httpstatus != 200 的请求 2、如果业务异常但httpstatus == 200的话 在responseInterceptors中处理 3、如果用useRequest的话,在app.ts中将useRequest的默认设置改成如下: ``` const RequestProvider = ({ children }: any) => { return {children} } export function rootContainer(container: any) { return React.createElement(RequestProvider, {},...