|
@@ -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)){
|