Ver Fonte

修改3pe

lvhao há 1 dia atrás
pai
commit
4be7b7998b

+ 1 - 1
core/CoreApp/controllers/Zzjobs.php

@@ -133,7 +133,7 @@ class Zzjobs extends Start_Controller
     //获取3pe的转单号
     private function  _get3peWaybillid(){
         
-        if(date("H",time()) == 7  || date("H",time()) == 12 || date("H",time()) == 19){
+        if(date("H",time()) == 7  ||date("H",time()) == 9  || date("H",time()) == 12 || date("H",time()) == 19){
             var_dump("Allowed to run");
             $this->job_get3pewaybillid->do_job();
         }else{

+ 1 - 1
core/CoreApp/models/Model_job_get3pewaybillid.php

@@ -11,7 +11,7 @@ class Model_job_get3pewaybillid extends Lin_Model {
     }
     public function do_job(){
         $end_time = time() - 10 * 3600 * 24;
-        $start_time = time() - 2 * 3600 * 24;
+        $start_time = time() - 3 * 3600 * 24;
         //快递为3pe  76  出库时间十天前   waybillid 不能为空
         $where = "(express = 76  or express =  77  )and librarytime >= ".$end_time ." and librarytime <= ".$start_time."  ";
         //$where = "express = 76  and librarytime <= ".$start_time." ";