Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
修复登录日志示例关联查询条件错误bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan1994 committed Dec 15, 2016
1 parent 275af82 commit 92081b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/admin/controller/LoginLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ protected function filter(&$map)

// 关联筛选
if ($this->request->param('account')) {
$map['admin_user.account'] = $this->request->param('account');
$map['user.account'] = ["like", "%" . $this->request->param('account') . "%"];
}
if ($this->request->param('name')) {
$map['admin_user.realname'] = ["like", "%" . $this->request->param('name') . "%"];
$map['user.realname'] = ["like", "%" . $this->request->param('name') . "%"];
}

// 设置属性
Expand Down

0 comments on commit 92081b0

Please sign in to comment.