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
45105c35
Commit
45105c35
authored
Jun 20, 2019
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试激活码
parent
a84f8a14
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
20 deletions
+36
-20
FlushController.class.php
Application/Home/Controller/FlushController.class.php
+36
-20
No files found.
Application/Home/Controller/FlushController.class.php
View file @
45105c35
...
...
@@ -384,37 +384,53 @@ class FlushController extends BaseController
}
public
function
alal
()
{
$cache
=
S
(
C
(
'REDIS'
));
//
$cache = S(C('REDIS'));
// $userInfo = $cache->get("huanlenongchangzhu-weixin:upData:159404922:upKey");
// var_dump(json_decode($userInfo,true));
// var_dump($userInfo['superTotalNum']);
// var_dump($userInfo);
// var_dump(json_decode($userInfo,true));
$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)));
// $re = M("game_config","",C("LEWAN_HEZI"))->query("delete FROM `game_config` WHERE game_code='fengkuangguaishouche-weixin' and sysid=567");
// $listKey = $gameCode.':rankingList:'.$gameSort;
// 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');
// $cache->set('huanlenongchangzhu:giftOrder',json_encode([23434,43546]),86400);
set_time_limit
(
0
);
//返回随机数
function
cdkey
(
$mylen
=
6
){
$array
=
"123456789"
;
$arrayen
=
"abcdefghijklmnopqrstuvwxyz"
;
$arrayEn
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
;
$authnum
=
''
;
for
(
$i
=
0
;
$i
<
$mylen
;
$i
++
){
// $authnum .= substr($array,mt_rand(0,8),1).substr($arrayen,mt_rand(0,25),1).substr($arrayEn,mt_rand(0,25),1);
$authnum
.=
$array
[
mt_rand
(
0
,
8
)]
.
$arrayen
[
mt_rand
(
0
,
25
)]
.
$arrayEn
[
mt_rand
(
0
,
25
)];
}
return
$authnum
;
}
// }
$model
=
M
(
"game_redeem_code"
,
""
,
C
(
"LEWAN_HEZI"
));
$data
=
array
(
'type'
=>
1
,
'create_time'
=>
date
(
'Y-m-d H:i:s'
)
,
'game_code'
=>
'wowtongyouxi-weixin'
);
for
(
$i
=
0
;
$i
<
100000
;
$i
++
)
{
// echo cdkey()."<br>";
// }
// var_dump($total);echo '<br>';
var_dump
(
$re
);
$data
[
'code'
]
=
cdkey
();
$insertArr
[]
=
$data
;
if
(
count
(
$insertArr
)
>
1000
)
{
$model
->
addAll
(
$insertArr
);
$insertArr
=
array
();
}
}
if
(
!
empty
(
$insertArr
))
{
$model
->
addAll
(
$insertArr
);
}
exit
;
}
...
...
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