|
|
@@ -73,8 +73,9 @@ class ManDeviceJobLf implements ShouldQueue
|
|
|
|
|
|
// 3. 达到 500 条,执行批量发送
|
|
|
|
|
|
+ $this->processBatchSend($redisKey, $batchSize);
|
|
|
if ($currentCount >= $batchSize) {
|
|
|
- $this->processBatchSend($redisKey, $batchSize);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
} catch (\Exception $exception) {
|
|
|
@@ -107,7 +108,7 @@ class ManDeviceJobLf implements ShouldQueue
|
|
|
list($status,$token) = ClearDataService::getTokenLf();
|
|
|
if(! $status) return [false, $token];
|
|
|
|
|
|
- $url = $this->url . "api/module-data/device_machine_record/device_machine_record/diy/create_data";
|
|
|
+ $url = $this->url . "api/module-data/device_machine_record/device_machine_record/diy/create_single_data";
|
|
|
$post = [
|
|
|
'data' => [
|
|
|
'device_machine_record' => $data
|