Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
xiaozhan
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
冷斌
xiaozhan
Commits
ebb55079
Commit
ebb55079
authored
Mar 11, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2148e868
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
80 deletions
+79
-80
application/Admin/Controller/CoinrecordController.class.php
+79
-80
No files found.
application/Admin/Controller/CoinrecordController.class.php
View file @
ebb55079
...
@@ -296,89 +296,88 @@ class CoinrecordController extends AdminbaseController {
...
@@ -296,89 +296,88 @@ class CoinrecordController extends AdminbaseController {
->
select
();
->
select
();
$type
=
array
(
"income"
=>
"收入"
,
"expend"
=>
"支出"
);
$type
=
array
(
"income"
=>
"收入"
,
"expend"
=>
"支出"
);
$actions
=
array
(
"sendgift"
=>
"赠送礼物"
,
"sendbarrage"
=>
"弹幕"
,
"loginbonus"
=>
"登录奖励"
,
"buyvip"
=>
"购买VIP"
,
"buycar"
=>
"购买坐骑"
,
"buyliang"
=>
"购买靓号"
,
'game_bet'
=>
'游戏下注'
,
'game_return'
=>
'游戏退还'
,
'game_win'
=>
'游戏获胜'
,
'game_banker'
=>
'庄家收益'
,
'set_deposit'
=>
'上庄扣除'
,
'deposit_return'
=>
'下庄退还'
,
'roomcharge'
=>
'房间扣费'
,
'timecharge'
=>
'计时扣费'
,
'sendred'
=>
'发送红包'
,
'robred'
=>
'抢红包'
,
'buyguard'
=>
'开通守护'
,
'reg_reward'
=>
'注册奖励'
);
$actions
=
array
(
"sendgift"
=>
"赠送礼物"
,
"sendbarrage"
=>
"弹幕"
,
"loginbonus"
=>
"登录奖励"
,
"buyvip"
=>
"购买VIP"
,
"buycar"
=>
"购买坐骑"
,
"buyliang"
=>
"购买靓号"
,
'game_bet'
=>
'游戏下注'
,
'game_return'
=>
'游戏退还'
,
'game_win'
=>
'游戏获胜'
,
'game_banker'
=>
'庄家收益'
,
'set_deposit'
=>
'上庄扣除'
,
'deposit_return'
=>
'下庄退还'
,
'roomcharge'
=>
'房间扣费'
,
'timecharge'
=>
'计时扣费'
,
'sendred'
=>
'发送红包'
,
'robred'
=>
'抢红包'
,
'buyguard'
=>
'开通守护'
,
'reg_reward'
=>
'注册奖励'
);
try
{
foreach
(
$lists
as
$k
=>
$v
){
foreach
(
$lists
as
$k
=>
$v
){
$userinfo
=
$Users
->
field
(
"user_nicename"
)
->
where
(
"id='
$v[uid]
'"
)
->
find
();
$userinfo
=
$Users
->
field
(
"user_nicename"
)
->
where
(
"id='
$v[uid]
'"
)
->
find
();
$lists
[
$k
][
'userinfo'
]
=
$userinfo
;
$lists
[
$k
][
'userinfo'
]
=
$userinfo
;
$touserinfo
=
$Users
->
field
(
"user_nicename"
)
->
where
(
"id='
$v[touid]
'"
)
->
find
();
$touserinfo
=
$Users
->
field
(
"user_nicename"
)
->
where
(
"id='
$v[touid]
'"
)
->
find
();
$lists
[
$k
][
'touserinfo'
]
=
$touserinfo
;
$lists
[
$k
][
'touserinfo'
]
=
$touserinfo
;
$lists
[
$k
][
'user_nicename'
]
=
$userinfo
[
'user_nicename'
]
.
"("
.
$v
[
'uid'
]
.
")"
;
$lists
[
$k
][
'user_nicename'
]
=
$userinfo
[
'user_nicename'
]
.
"("
.
$v
[
'uid'
]
.
")"
;
$lists
[
$k
][
'touser_nicename'
]
=
$touserinfo
[
'user_nicename'
]
.
"("
.
$v
[
'touid'
]
.
")"
;
$lists
[
$k
][
'touser_nicename'
]
=
$touserinfo
[
'user_nicename'
]
.
"("
.
$v
[
'touid'
]
.
")"
;
$action
=
$v
[
'action'
];
$action
=
$v
[
'action'
];
$lists
[
$k
][
'action'
]
=
$actions
[
$action
];
$lists
[
$k
][
'action'
]
=
$actions
[
$action
];
$lists
[
$k
][
'type'
]
=
$type
[
$v
[
'type'
]];
$lists
[
$k
][
'type'
]
=
$type
[
$v
[
'type'
]];
if
(
$action
==
'sendgift'
){
if
(
$action
==
'sendgift'
){
$giftinfo
=
$Gift
->
field
(
"giftname"
)
->
where
(
"id='
$v[giftid]
'"
)
->
find
();
$giftinfo
=
$Gift
->
field
(
"giftname"
)
->
where
(
"id='
$v[giftid]
'"
)
->
find
();
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'loginbonus'
){
}
else
if
(
$action
==
'loginbonus'
){
$giftinfo
[
'giftname'
]
=
'第'
.
$v
[
'giftid'
]
.
'天'
;
$giftinfo
[
'giftname'
]
=
'第'
.
$v
[
'giftid'
]
.
'天'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'sendbarrage'
){
}
else
if
(
$action
==
'sendbarrage'
){
$giftinfo
[
'giftname'
]
=
'弹幕'
;
$giftinfo
[
'giftname'
]
=
'弹幕'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'game_bet'
||
$action
==
'game_return'
||
$action
==
'game_win'
||
$action
==
'game_brokerage'
||
$action
==
'game_banker'
){
}
else
if
(
$action
==
'game_bet'
||
$action
==
'game_return'
||
$action
==
'game_win'
||
$action
==
'game_brokerage'
||
$action
==
'game_banker'
){
$info
=
$Game
->
field
(
'action'
)
->
where
(
"id=
{
$v
[
'giftid'
]
}
"
)
->
find
();
$info
=
$Game
->
field
(
'action'
)
->
where
(
"id=
{
$v
[
'giftid'
]
}
"
)
->
find
();
$giftinfo
[
'giftname'
]
=
$game_action
[
$info
[
'action'
]];
$giftinfo
[
'giftname'
]
=
$game_action
[
$info
[
'action'
]];
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'set_deposit'
){
}
else
if
(
$action
==
'set_deposit'
){
$giftinfo
[
'giftname'
]
=
'上庄扣除'
;
$giftinfo
[
'giftname'
]
=
'上庄扣除'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'deposit_return'
){
}
else
if
(
$action
==
'deposit_return'
){
$giftinfo
[
'giftname'
]
=
'下庄退还'
;
$giftinfo
[
'giftname'
]
=
'下庄退还'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'roomcharge'
){
}
else
if
(
$action
==
'roomcharge'
){
$giftinfo
[
'giftname'
]
=
'房间扣费'
;
$giftinfo
[
'giftname'
]
=
'房间扣费'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'timecharge'
){
}
else
if
(
$action
==
'timecharge'
){
$giftinfo
[
'giftname'
]
=
'计时扣费'
;
$giftinfo
[
'giftname'
]
=
'计时扣费'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'buyvip'
){
}
else
if
(
$action
==
'buyvip'
){
$info
=
$Vip
->
field
(
"name"
)
->
where
(
"id='
{
$v
[
giftid
]
}
'"
)
->
find
();
$info
=
$Vip
->
field
(
"name"
)
->
where
(
"id='
{
$v
[
giftid
]
}
'"
)
->
find
();
$giftinfo
[
'giftname'
]
=
$info
[
'name'
];
$giftinfo
[
'giftname'
]
=
$info
[
'name'
];
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'buycar'
){
}
else
if
(
$action
==
'buycar'
){
$info
=
$Car
->
field
(
"name"
)
->
where
(
"id='
{
$v
[
giftid
]
}
'"
)
->
find
();
$info
=
$Car
->
field
(
"name"
)
->
where
(
"id='
{
$v
[
giftid
]
}
'"
)
->
find
();
$giftinfo
[
'giftname'
]
=
$info
[
'name'
];
$giftinfo
[
'giftname'
]
=
$info
[
'name'
];
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'buyliang'
){
}
else
if
(
$action
==
'buyliang'
){
$info
=
$Liang
->
field
(
"name"
)
->
where
(
"id='
{
$v
[
giftid
]
}
'"
)
->
find
();
$info
=
$Liang
->
field
(
"name"
)
->
where
(
"id='
{
$v
[
giftid
]
}
'"
)
->
find
();
$giftinfo
[
'giftname'
]
=
$info
[
'name'
];
$giftinfo
[
'giftname'
]
=
$info
[
'name'
];
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'sendred'
){
}
else
if
(
$action
==
'sendred'
){
$giftinfo
[
'giftname'
]
=
'发送红包'
;
$giftinfo
[
'giftname'
]
=
'发送红包'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'robred'
){
}
else
if
(
$action
==
'robred'
){
$giftinfo
[
'giftname'
]
=
'抢红包'
;
$giftinfo
[
'giftname'
]
=
'抢红包'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'buyguard'
){
}
else
if
(
$action
==
'buyguard'
){
$info
=
$Guard
->
field
(
"name"
)
->
where
(
"id='
{
$v
[
giftid
]
}
'"
)
->
find
();
$info
=
$Guard
->
field
(
"name"
)
->
where
(
"id='
{
$v
[
giftid
]
}
'"
)
->
find
();
$giftinfo
[
'giftname'
]
=
$info
[
'name'
];
$giftinfo
[
'giftname'
]
=
$info
[
'name'
];
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'reg_reward'
){
}
else
if
(
$action
==
'reg_reward'
){
$giftinfo
[
'giftname'
]
=
'注册奖励'
;
$giftinfo
[
'giftname'
]
=
'注册奖励'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'luckgift'
){
}
else
if
(
$action
==
'luckgift'
){
$giftinfo
[
'giftname'
]
=
'礼物中奖'
;
$giftinfo
[
'giftname'
]
=
'礼物中奖'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
if
(
$action
==
'jackpotwin'
){
}
else
if
(
$action
==
'jackpotwin'
){
$giftinfo
[
'giftname'
]
=
'奖池中奖'
;
$giftinfo
[
'giftname'
]
=
'奖池中奖'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
else
{
}
else
{
$giftinfo
[
'giftname'
]
=
'未知'
;
$giftinfo
[
'giftname'
]
=
'未知'
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
$lists
[
$k
][
'giftinfo'
]
=
$giftinfo
;
}
//{$vo['giftinfo']['giftname']} ( {$vo['giftid']} )
$lists
[
$k
][
'gift_behavior'
]
=
$giftinfo
[
'giftname'
]
.
"("
.
$v
[
'giftid'
]
.
")"
;
$lists
[
$k
][
'addtime'
]
=
date
(
"Y-m-d H:i:s"
,
$v
[
'addtime'
]);
}
}
}
catch
(
\Exception
$exception
)
{
//{$vo['giftinfo']['giftname']} ( {$vo['giftid']} )
var_dump
(
$exception
)
;
$lists
[
$k
][
'gift_behavior'
]
=
$giftinfo
[
'giftname'
]
.
"("
.
$v
[
'giftid'
]
.
")"
;
die
;
$lists
[
$k
][
'addtime'
]
=
date
(
"Y-m-d H:i:s"
,
$v
[
'addtime'
])
;
}
}
var_dump
(
$lists
);
die
;
die
;
$xlsName
=
"Excel"
;
$xlsName
=
"Excel"
;
$action
=
"导出消费记录:"
.
$coin
->
getLastSql
();
$action
=
"导出消费记录:"
.
$coin
->
getLastSql
();
setAdminLog
(
$action
);
setAdminLog
(
$action
);
...
...
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