获取本地时间与服务器时间的差值。 消息发送成功后,sdk 会与服务器同步时间,消息所在数据库中存储的时间就是服务器时间。
static Future<int?> getDeltaTime() async { int? result = await _channel.invokeMethod(RCMethodKey.GetDeltaTime); return result; }