hzd 2 months ago
parent
commit
daa9653856
2 changed files with 9 additions and 1 deletions
  1. 8 0
      application/api/controller/Timer.php
  2. 1 1
      application/cron/Wlps.php

+ 8 - 0
application/api/controller/Timer.php

@@ -45,6 +45,14 @@ use think\Db;
 class Timer extends Controller
 {
 
+    public function ypconvey(){
+        $lists = Db::connect('db_config_jili')->name('wlps')->where('is_deal',0)->where('is_qx','N')->select();
+        $lists = $lists?$lists:[];
+        foreach ($lists as $k=>$v){
+            (new \app\common\model\Wlps())->deal_wlps($v);
+        }
+    }
+
     public function tt(){
         echo 'test';
     }

+ 1 - 1
application/cron/Wlps.php

@@ -18,7 +18,7 @@ class Wlps extends Task
     protected function execute()
     {
         try{
-            $this->ypconvey();
+//            $this->ypconvey();
             $this->cancelypconvey();
         }catch (\Exception $e){
             trace($e->getMessage());