Ver Fonte

提交数据1

lvhao há 1 dia atrás
pai
commit
2a953ca65d
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      core/CoreApp/controllers/Whlabeltransport.php

+ 2 - 2
core/CoreApp/controllers/Whlabeltransport.php

@@ -829,6 +829,8 @@ class Whlabeltransport extends Start_Controller {
 				    $this->whlabeltransport->save(array('time'=>$time,'cz'=>1),$data['id']);
 				    if ($this->db->trans_status() === TRUE)
         		    {
+					    $this->db->trans_commit();
+						$i++;
 						$num = $this->whlabeltransport->find_count("order_no = '".$data['order_no']."' and cz = 0");
 						if($num == 0){
 							if(!empty($data['order_no'])){
@@ -843,8 +845,6 @@ class Whlabeltransport extends Start_Controller {
 								]);
 							}
 						}
-					    $this->db->trans_commit();
-						$i++;
 				    }
 				    else
 				    {