cqp 3 tygodni temu
rodzic
commit
1e6cccee22
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      app/Jobs/ProcessDataJob.php

+ 6 - 0
app/Jobs/ProcessDataJob.php

@@ -41,8 +41,14 @@ class ProcessDataJob implements ShouldQueue
     }
     }
 
 
     private function finalDo($msg, $record){
     private function finalDo($msg, $record){
+        //进入到队列的数据 都是审核通过的  但是业务有没有成功就是另一回事
         Record::where('id', $record['id'])
         Record::where('id', $record['id'])
             ->update(['result' => $msg]);
             ->update(['result' => $msg]);
+        U8State::where('del_time',0)
+            ->where('type', $record['type'])
+            ->where('login_type', $record['login_type'])
+            ->where('order_number', $record['order_number'])
+            ->update(['state' => U8State::state_one, 'result' => $msg]);
     }
     }
 
 
     private function syncApprovedRecords($record)
     private function syncApprovedRecords($record)