Jelajahi Sumber

修改筛选漏洞

lvhao 6 bulan lalu
induk
melakukan
5937fe5c6c

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

@@ -652,7 +652,7 @@ class Returngoods extends Start_Controller {
             // }
 		    if($back_status)
             {
-                $where  .= " and back_status = '$back_status'";
+                $where  .= " and back_type = '$back_status'";
             }
             if($ktime&&$jtime){
                 $where .= " and create_time > '".date("Y-m-d H:i:s",strtotime($ktime))."' and  create_time  < '".date("Y-m-d H:i:s",strtotime($jtime))."' ";
@@ -778,7 +778,7 @@ class Returngoods extends Start_Controller {
             }
 		    if($back_status)
             {
-                $where  .= " and back_status = '$back_status' ";
+                $where  .= " and back_type = '$back_status' ";
             }
            
            

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

@@ -201,7 +201,7 @@ class Returngoodsexcel extends Start_Controller {
             }
             if($back_status)
             {
-                $where  .= " and back_status = '$back_status'";
+                $where  .= " and back_type = '$back_status'";
             }
             if($ktime&&$jtime){
                 $where .= " and create_time > '$ktime' and  create_time  < '$jtime' ";
@@ -301,7 +301,7 @@ class Returngoodsexcel extends Start_Controller {
             }
             if($back_status)
             {
-                $where  .= " and back_status = '$back_status'";
+                $where  .= " and back_type = '$back_status'";
             }
             if($ktime&&$jtime){
                 $where .= " and create_time > '$ktime' and  create_time  < '$jtime' ";