wugg hace 7 meses
padre
commit
879a4a1378
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/admin/controller/Consult.php

+ 2 - 2
app/admin/controller/Consult.php

@@ -592,7 +592,7 @@ class Consult extends Base
 				                            "action_type" => "create"//新建create,编辑edit,更改状态status
 				                        ], "FKD", 1, $this->post);
 				                        if($value['is_combind']==1){
-				                            $combine = ConsultTemp::where(["bidNo"=>$bidno,"is_del"=>0])->select();
+				                            $combine = ConsultTemp::where(["bidNo"=>$bidno])->select();
 				                            if(!$combine->isEmpty()){
 				                                (new ConsultTemp)->saveAll(array_map(function(&$v,$key)use($value){
 				                                    $v['id']=null;
@@ -600,7 +600,7 @@ class Consult extends Base
 				                                    $v['spuCode']= substr(makeNo('SKU'), 0, -2) . str_pad($key, 2, '0', STR_PAD_LEFT);;
 				                                    $v['out_tax_id'] =0;
 				                                    $v['out_tax'] ="";
-				                                }));
+				                                },$combine->toArray()));
 				                            }
 				                        }
 				                    }