Commit 619194ec by 朱继来

调整

parent beb3c5df
Showing with 2 additions and 1 deletions
...@@ -17,7 +17,7 @@ class OpLogModel extends Model ...@@ -17,7 +17,7 @@ class OpLogModel extends Model
//列表 //列表
public function getList() public function getList()
{ {
$input = Request::all(); $input = Request::all();
$list = $this->where(function ($query) use ($input) { $list = $this->where(function ($query) use ($input) {
foreach ($input as $k => $v){ foreach ($input as $k => $v){
$v = trim($v); $v = trim($v);
...@@ -25,6 +25,7 @@ class OpLogModel extends Model ...@@ -25,6 +25,7 @@ class OpLogModel extends Model
continue; continue;
} }
switch ($k){ switch ($k){
case "relation_id":
case "relation_sn": case "relation_sn":
case "types": case "types":
$query->where($k,$v); $query->where($k,$v);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment