Browse Source

定时任务

develop
lemon 4 years ago
parent
commit
d9ac27d12f
  1. 10
      app/Console/Commands/DemandTimeout.php

10
app/Console/Commands/DemandTimeout.php

@ -40,10 +40,10 @@ class DemandTimeout extends Command
*/ */
public function handle() public function handle()
{ {
Log::info('定时任务');
//Demand::query()
// ->where('deadline','<=' ,now())
// ->where('status',DemandTraits::$stateKey[0])
// ->update(['status' => DemandTraits::$stateKey[2]]);
//Log::info('定时任务');
Demand::query()
->where('deadline','<=' ,now())
->where('status',DemandTraits::$stateKey[0])
->update(['status' => DemandTraits::$stateKey[2]]);
} }
} }
Loading…
Cancel
Save