Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
samsung-christmas
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3b01b8fa
authored
Dec 23, 2019
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
6cfd18f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
29 deletions
+25
-29
Application/Home/Controller/IndexController.class.php
+25
-29
No files found.
Application/Home/Controller/IndexController.class.php
View file @
3b01b8fa
...
...
@@ -151,12 +151,7 @@ class IndexController extends Controller
{
session_start
();
$v
=
rand
(
0
,
1000000
)
/
1000000
;
$today_ratio
=
0.9
;
if
(
$user
[
'openid'
]
==
"oVsrlt0zUWMLvMx2-KPGVmY2I-Xc"
)
{
$today_ratio
=
0
;
}
$today_ratio
=
0.5
;
if
(
$v
>
$today_ratio
)
{
return
false
;
}
...
...
@@ -241,28 +236,28 @@ class IndexController extends Controller
SignedCookie
::
set_cookie
(
$this
->
cookie_uid_key
,
'oVsrlt0zUWMLvMx2-KPGVmY2I-Xc'
,
C
(
'cookie_sign'
),
86400
*
60
);
}
//
public function addprize() {
//
for($i = 0;$i < 1300;$i++)
//
{
//
M('prize')->add(array(
//
'type' => 2,
//
'prize_type' => 3,
//
'prize_name' => '1元全网手机话费'
//
));
//
if($i < 500) {
//
M('prize')->add(array(
//
'type' => 2,
//
'prize_type' => 2,
//
'prize_name' => '2元全网手机话费'
//
));
//
} if($i < 25) {
//
M('prize')->add(array(
//
'type' => 1,
//
'prize_type' => 1,
//
'prize_name' => '优酷VIP视频月卡'
//
));
//
}
//
}
//
}
public
function
addprize
()
{
for
(
$i
=
0
;
$i
<
1300
;
$i
++
)
{
M
(
'prize'
)
->
add
(
array
(
'type'
=>
2
,
'prize_type'
=>
3
,
'prize_name'
=>
'1元全网手机话费'
));
if
(
$i
<
500
)
{
M
(
'prize'
)
->
add
(
array
(
'type'
=>
2
,
'prize_type'
=>
2
,
'prize_name'
=>
'2元全网手机话费'
));
}
if
(
$i
<
25
)
{
M
(
'prize'
)
->
add
(
array
(
'type'
=>
1
,
'prize_type'
=>
1
,
'prize_name'
=>
'优酷VIP视频月卡'
));
}
}
}
}
\ No newline at end of file
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