File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public static function sleep($time)
50
50
return ;
51
51
}
52
52
if (self ::$ coroutine instanceof FiberCoroutine) {
53
- WorkermanDriver::getInstance ()->getEventLoop ()->addTimer ($ time * 1000 , function () use ($ cid ) {
53
+ WorkermanDriver::getInstance ()->getEventLoop ()->addTimer (intval ( $ time * 1000 ) , function () use ($ cid ) {
54
54
self ::$ coroutine ->resume ($ cid );
55
55
});
56
56
self ::$ coroutine ->suspend ();
Original file line number Diff line number Diff line change 4
4
5
5
namespace OneBot \V12 \Object ;
6
6
7
- use ReturnTypeWillChange ;
8
-
9
7
class MessageSegment implements \JsonSerializable, \IteratorAggregate
10
8
{
11
9
/** @var string 类型 */
Original file line number Diff line number Diff line change 13
13
use ZM \Logger \ConsoleLogger ;
14
14
15
15
const ONEBOT_VERSION = '12 ' ;
16
- const ONEBOT_LIBOB_VERSION = '0.5.10 ' ;
16
+ const ONEBOT_LIBOB_VERSION = '0.5.11 ' ;
17
17
18
18
const ONEBOT_JSON = 1 ;
19
19
const ONEBOT_MSGPACK = 2 ;
You can’t perform that action at this time.
0 commit comments