浏览代码

修改筛选漏洞

lvhao 6 月之前
父节点
当前提交
5937fe5c6c
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      core/CoreApp/controllers/Returngoods.php
  2. 2 2
      core/CoreApp/controllers/Returngoodsexcel.php

+ 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' ";