Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lzzzzl
/
spiderboard
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9de450d7
authored
Feb 21, 2020
by
lzzzzl
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加用户名字段
parent
6586bf25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
app/Model/SpiderModel.php
public/js/spider/logs.js
app/Model/SpiderModel.php
View file @
9de450d7
...
...
@@ -268,6 +268,7 @@ class SpiderModel extends Model
foreach
(
$data
[
'data'
]
as
$k
=>
$v
)
{
$data
[
'data'
][
$k
][
'update_time'
]
=
date
(
"Y-m-d H:i:s"
,
$v
[
'update_time'
]);
$data
[
'data'
][
$k
][
'user_name'
]
=
$this
->
saleMan
(
$user_id
);
}
return
$data
;
...
...
@@ -295,4 +296,18 @@ class SpiderModel extends Model
}
public
function
saleMan
(
$sale_id
)
{
$sale_man
=
''
;
$sql
=
"SELECT name FROM user_info WHERE userId = "
.
$sale_id
;
$result
=
DB
::
connection
(
'ic'
)
->
select
(
$sql
);
foreach
(
$result
as
$k
=>
$v
)
{
$sale_man
=
$v
[
'name'
];
}
return
$sale_man
;
}
}
public/js/spider/logs.js
View file @
9de450d7
...
...
@@ -24,6 +24,7 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
request
:{
pageName
:
'p'
,
limitName
:
'limit'
},
cols
:
[[
{
field
:
'user_id'
,
title
:
'用户id'
,
sort
:
true
},
{
field
:
'user_name'
,
title
:
'用户名'
,
sort
:
true
},
{
field
:
'action'
,
title
:
'行为'
,
sort
:
true
},
{
field
:
'content'
,
title
:
'修改内容'
,
sort
:
true
},
{
field
:
'result'
,
title
:
'结果'
,
width
:
250
,
sort
:
true
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment