Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ylc.llewan.com
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
llewan
ylc.llewan.com
Commits
a84f8a14
Commit
a84f8a14
authored
Apr 19, 2019
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e
parent
ee4ae3d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
FlushController.class.php
Application/Home/Controller/FlushController.class.php
+17
-17
No files found.
Application/Home/Controller/FlushController.class.php
View file @
a84f8a14
...
...
@@ -391,30 +391,30 @@ class FlushController extends BaseController
// var_dump($userInfo);
// var_dump(json_decode($userInfo,true));
// $re = M("game_login_live","",C("LEWAN_HEZI"))->query("delete FROM `game_login_live` WHERE date='2019-04-02'
");
$reArr
=
array
();
$total
=
0
;
$setCacheKey
=
"game_login_live:2019-04-03"
;
$hashArr
=
$cache
->
HGETALL
(
$setCacheKey
);
foreach
(
$hashArr
as
$key
=>
$val
)
{
$re
=
M
(
"game_config"
,
""
,
C
(
"LEWAN_HEZI"
))
->
query
(
"delete FROM `game_config` WHERE game_code='fengkuangguaishouche-weixin' and sysid=567
"
);
//
$reArr = array();
//
$total = 0;
//
$setCacheKey = "game_login_live:2019-04-03";
//
$hashArr = $cache->HGETALL($setCacheKey);
//
foreach($hashArr as $key=>$val) {
$shareInfo
=
json_decode
(
$val
,
true
);
$shareInfo
[
'total_register'
]
=
$cache
->
PFCOUNT
(
'{total}:total_register:'
.
$key
.
':2019-04-03'
);
$cache
->
HMSET
(
'game_login_live_temp:2019-04-03'
,
array
(
$key
=>
json_encode
(
$shareInfo
)));
//
$shareInfo = json_decode($val,true);
//
$shareInfo['total_register'] = $cache->PFCOUNT('{total}:total_register:'.$key.':2019-04-03');
//
$cache->HMSET('game_login_live_temp:2019-04-03',array($key=>json_encode($shareInfo)));
if
(
strstr
(
$key
,
'yiqiqieshuiguo-weixin'
)
!==
false
)
{
$keyArr
=
explode
(
':'
,
$key
);
//
if(strstr($key,'yiqiqieshuiguo-weixin') !== false) {
//
$keyArr = explode(':',$key);
$reArr
[
$keyArr
[
1
]]
+=
$cache
->
PFCOUNT
(
'{total}:total_register:'
.
$key
.
':2019-04-03'
);
$total
+=
$cache
->
PFCOUNT
(
'{total}:total_register:'
.
$key
.
':2019-04-03'
);
//
$reArr[$keyArr[1]] += $cache->PFCOUNT('{total}:total_register:'.$key.':2019-04-03');
//
$total += $cache->PFCOUNT('{total}:total_register:'.$key.':2019-04-03');
}
//
}
}
var_dump
(
$total
);
echo
'<br>'
;
var_dump
(
$re
Arr
);
//
}
//
var_dump($total);echo '<br>';
var_dump
(
$re
);
}
...
...
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