|
@@ -35,10 +35,13 @@ class RefillSender
|
|
$count = self::co_orders;
|
|
$count = self::co_orders;
|
|
$time = time() * 1000 + $index;
|
|
$time = time() * 1000 + $index;
|
|
|
|
|
|
|
|
+ $pThis = $this;
|
|
for ($i = 0; $i < $count; $i++)
|
|
for ($i = 0; $i < $count; $i++)
|
|
{
|
|
{
|
|
Log::record(__FUNCTION__ . " index={$i}",Log::DEBUG);
|
|
Log::record(__FUNCTION__ . " index={$i}",Log::DEBUG);
|
|
- $this->push_order(1092, $time, $i);
|
|
|
|
|
|
+ go(function () use ($pThis,$time,$i) {
|
|
|
|
+ $pThis->push_order(1092, $time, $i);
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|