TestController.php 842 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Http\Controllers\Api;
  3. use App\Jobs\ProcessDataJob;
  4. use App\Model\Record;
  5. use App\Service\U8ThirdPartyService;
  6. class TestController extends BaseController
  7. {
  8. public function test(){
  9. // $record = Record::where('id',1065)->first()->toArray();
  10. $service = new U8ThirdPartyService();
  11. // list($status, $msg) = $service->puAppVouch($record);
  12. // list($status, $msg) = $service->poPomain($record);
  13. // list($status, $msg) = $service->purchaseInAdd($record);
  14. // dd($status, $msg);
  15. }
  16. private function submitAgain(){
  17. $result = Record::where('del_time',2)
  18. ->where('result', '<>', '')
  19. ->get()->toArray();
  20. foreach ($result as $value){
  21. ProcessDataJob::dispatch($value)->onQueue(Record::$job);
  22. }
  23. dd('ok');
  24. }
  25. }