wugg 11 months ago
parent
commit
92951f8ae2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/command/caixiao.php

+ 2 - 1
app/command/caixiao.php

@@ -14,9 +14,10 @@ class caixiao extends Command
     protected function cgd(){
     	$cgd=new CgdCaixiao();
     	$where=[['updatetime','>=',$this->hour]];
-    	$list = $cgd->with(["originCgd"])->where($where)->cursor();
+    	$list = $cgd->with(["originCgd"])->where($where)->select();
     	$cgdArr=[];
     	foreach ($list as $item){
+    		echo $item->cgdNo."--".$item->mainCode;
     		$unique = md5($item->cgdNo.$item->updatetime);
            $temp=['order_type'=>2,'uniqkey'=>$unique,'status'=>1,'addtime'=>date('Y-m:d H:i:s')];
            if($this->isInCfp($unique)){