|
1
|
<?php
|
1
|
<?php
|
|
2
|
/**
|
2
|
/**
|
|
3
|
* @remark :
|
3
|
* @remark :
|
|
4
|
- * @name :UserLoginController.php
|
4
|
+ * @name :UserLogController.php
|
|
5
|
* @author :lyh
|
5
|
* @author :lyh
|
|
6
|
* @method :post
|
6
|
* @method :post
|
|
7
|
* @time :2023/9/5 16:07
|
7
|
* @time :2023/9/5 16:07
|
|
@@ -15,7 +15,7 @@ use App\Models\Manage\Manage; |
|
@@ -15,7 +15,7 @@ use App\Models\Manage\Manage; |
|
15
|
use App\Models\User\User;
|
15
|
use App\Models\User\User;
|
|
16
|
use App\Models\User\UserLogin;
|
16
|
use App\Models\User\UserLogin;
|
|
17
|
|
17
|
|
|
18
|
-class UserLoginController extends BaseController
|
18
|
+class UserLogController extends BaseController
|
|
19
|
{
|
19
|
{
|
|
20
|
/**
|
20
|
/**
|
|
21
|
* @remark :用户日志
|
21
|
* @remark :用户日志
|
|
@@ -54,11 +54,11 @@ class UserLoginController extends BaseController |
|
@@ -54,11 +54,11 @@ class UserLoginController extends BaseController |
|
54
|
public function searchParam(){
|
54
|
public function searchParam(){
|
|
55
|
$map = [];
|
55
|
$map = [];
|
|
56
|
$managerModel = new Manage();
|
56
|
$managerModel = new Manage();
|
|
57
|
- if(isset($this->param['mobile']) && !empty($this->param['mobile'])){
|
57
|
+ if(isset($this->map['mobile']) && !empty($this->map['mobile'])){
|
|
58
|
$ids = $managerModel->where('mobile', 'like', '%' . $this->map['mobile'] . '%')->pluck('id')->toArray();
|
58
|
$ids = $managerModel->where('mobile', 'like', '%' . $this->map['mobile'] . '%')->pluck('id')->toArray();
|
|
59
|
$map['manage_id'] = ['in',$ids];
|
59
|
$map['manage_id'] = ['in',$ids];
|
|
60
|
- }elseif (isset($this->param['name']) && !empty($this->param['name'])){
|
|
|
|
61
|
- $ids = $managerModel->where('name', 'like', '%' . $this->map['name'] . '%')->pluck('id')->toArray();
|
60
|
+ }elseif (isset($this->map['name']) && !empty($this->map['name'])){
|
|
|
|
61
|
+ $ids = $managerModel->where('name', 'like', '%' . $this->param['name'] . '%')->pluck('id')->toArray();
|
|
62
|
$map['manage_id'] = ['in',$ids];
|
62
|
$map['manage_id'] = ['in',$ids];
|
|
63
|
}
|
63
|
}
|
|
64
|
if(isset($this->map['created_at'])){
|
64
|
if(isset($this->map['created_at'])){
|