Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
haishi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
haishi
Commits
504bf657
Commit
504bf657
authored
Apr 29, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
27b4e316
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
admin/themes/simplebootx/Admin/Customer/index.html
+2
-0
application/Admin/Controller/CustomerController.class.php
+17
-0
No files found.
admin/themes/simplebootx/Admin/Customer/index.html
View file @
504bf657
...
...
@@ -23,6 +23,7 @@
<thead>
<tr>
<th
width=
"50"
>
ID
</th>
<th>
推广员
</th>
<th>
用户名
</th>
<th>
昵称
</th>
<th>
用户总充值金额
</th>
...
...
@@ -35,6 +36,7 @@
<foreach
name=
"users"
item=
"vo"
>
<tr>
<td>
{$vo.id}
</td>
<td>
{$vo.lv}
</td>
<td>
{$vo.user_login}
</td>
<td>
{$vo.user_nicename}
</td>
<td>
{$vo.total_charge}
</td>
...
...
application/Admin/Controller/CustomerController.class.php
View file @
504bf657
...
...
@@ -124,6 +124,23 @@ class CustomerController extends AdminbaseController{
}
$v
[
'total_votes'
]
=
$total_votes
;
$proxy
=
M
(
'users_proxy'
)
->
field
(
'path'
)
->
where
([
'uid'
=>
$v
[
'uid'
]])
->
select
();
$lv
=
'平台'
;
if
(
!
empty
(
$proxy
[
0
][
'path'
]))
{
$path2
=
array_filter
(
explode
(
';'
,
$proxy
[
0
][
'path'
]));
$uuid
=
array_pop
(
$path2
);
$uuinfo
=
getUserInfo
(
$uuid
);
$lv
=
$uuinfo
[
'user_nicename'
];
if
(
$lv
===
'用户不存在'
)
{
$lv
=
'平台'
;
}
}
$lists
[
$k
][
'lv'
]
=
$lv
;
$users
[
$k
]
=
$v
;
}
...
...
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