|
|
@@ -30,14 +30,15 @@ class ProcessDataJob implements ShouldQueue
|
|
|
{
|
|
|
try {
|
|
|
list($bool, $msg) = $this->syncApprovedRecords($this->data);
|
|
|
- if(! $bool) $this->finalDo($msg, $this->data);
|
|
|
+ if(! $bool) $this->finalDo($msg);
|
|
|
} catch (\Throwable $e) {
|
|
|
$this->finalDo("异常:" . $e->getMessage());
|
|
|
$this->delete();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private function finalDo($msg, $record){
|
|
|
+ private function finalDo($msg){
|
|
|
+ $record = $this->data;
|
|
|
Record::where('id', $record['id'])
|
|
|
->update(['result' => $msg]);
|
|
|
}
|