Commit a84f8a14 authored by 734642908@qq.com's avatar 734642908@qq.com

e

parent ee4ae3d0
......@@ -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($reArr);
// }
// var_dump($total);echo '<br>';
var_dump($re);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment