Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
sx-prize
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
a105b7bd
authored
Jul 21, 2019
by
zhangheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
j
parent
b9c2b71a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
.idea/workspace.xml
+7
-8
Application/Home/Controller/IndexController.class.php
+3
-3
No files found.
.idea/workspace.xml
View file @
a105b7bd
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"83262c17-7030-4f8f-af17-e1cc55f76944"
name=
"Default"
comment=
""
>
<list
default=
"true"
id=
"83262c17-7030-4f8f-af17-e1cc55f76944"
name=
"Default"
comment=
""
>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
afterPath=
"$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
afterPath=
"$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
/>
</list>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
@@ -17,7 +16,7 @@
...
@@ -17,7 +16,7 @@
</component>
</component>
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"default_target"
/>
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"default_target"
/>
<component
name=
"FileEditorManager"
>
<component
name=
"FileEditorManager"
>
<splitter
split-orientation=
"horizontal"
split-proportion=
"0.
5523649
"
>
<splitter
split-orientation=
"horizontal"
split-proportion=
"0.
7491554
"
>
<split-first>
<split-first>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"index.html"
pinned=
"false"
current-in-tab=
"false"
>
<file
leaf-file-name=
"index.html"
pinned=
"false"
current-in-tab=
"false"
>
...
@@ -66,8 +65,8 @@
...
@@ -66,8 +65,8 @@
<file
leaf-file-name=
"IndexController.class.php"
pinned=
"false"
current-in-tab=
"true"
>
<file
leaf-file-name=
"IndexController.class.php"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
456
"
>
<state
relative-caret-position=
"
228
"
>
<caret
line=
"1
60"
column=
"31"
lean-forward=
"false"
selection-start-line=
"160"
selection-start-column=
"31"
selection-end-line=
"160
"
selection-end-column=
"31"
/>
<caret
line=
"1
47"
column=
"31"
lean-forward=
"false"
selection-start-line=
"147"
selection-start-column=
"31"
selection-end-line=
"147
"
selection-end-column=
"31"
/>
<folding>
<folding>
<element
signature=
"e#34#44#0#PHP"
expanded=
"true"
/>
<element
signature=
"e#34#44#0#PHP"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -584,12 +583,12 @@
...
@@ -584,12 +583,12 @@
<workItem
from=
"1563355311998"
duration=
"122000"
/>
<workItem
from=
"1563355311998"
duration=
"122000"
/>
<workItem
from=
"1563377354829"
duration=
"1609000"
/>
<workItem
from=
"1563377354829"
duration=
"1609000"
/>
<workItem
from=
"1563441996623"
duration=
"114000"
/>
<workItem
from=
"1563441996623"
duration=
"114000"
/>
<workItem
from=
"1563716562750"
duration=
"2
134
000"
/>
<workItem
from=
"1563716562750"
duration=
"2
787
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
19705
000"
/>
<option
name=
"totallyTimeSpent"
value=
"
20358
000"
/>
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"64"
y=
"23"
width=
"1440"
height=
"813"
extended-state=
"0"
/>
<frame
x=
"64"
y=
"23"
width=
"1440"
height=
"813"
extended-state=
"0"
/>
...
@@ -1053,8 +1052,8 @@
...
@@ -1053,8 +1052,8 @@
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
456
"
>
<state
relative-caret-position=
"
228
"
>
<caret
line=
"1
60"
column=
"31"
lean-forward=
"false"
selection-start-line=
"160"
selection-start-column=
"31"
selection-end-line=
"160
"
selection-end-column=
"31"
/>
<caret
line=
"1
47"
column=
"31"
lean-forward=
"false"
selection-start-line=
"147"
selection-start-column=
"31"
selection-end-line=
"147
"
selection-end-column=
"31"
/>
<folding>
<folding>
<element
signature=
"e#34#44#0#PHP"
expanded=
"true"
/>
<element
signature=
"e#34#44#0#PHP"
expanded=
"true"
/>
</folding>
</folding>
...
...
Application/Home/Controller/IndexController.class.php
View file @
a105b7bd
...
@@ -143,6 +143,9 @@ class IndexController extends Controller
...
@@ -143,6 +143,9 @@ class IndexController extends Controller
$type_list
=
array
(
'6JTjh8cPcQ6Rh4Zs'
,
'wrwSQkP7aBSTSz6Q'
,
'DQxcxExXHmrrJhpW'
,
'Mx7cz5zBhJ4XTWWw'
,
'BnFaQJ23ddQ6CcfG'
,
'4fzkwfPHZZZmnQJx'
,
'NCnWMkSN5jSBErP6'
,
'Ce238NWT3GAkmXNB'
,
'7QnGFjs7JDxWe2xQ'
,
'5Qtk2aKHsG42PbRz'
);
$type_list
=
array
(
'6JTjh8cPcQ6Rh4Zs'
,
'wrwSQkP7aBSTSz6Q'
,
'DQxcxExXHmrrJhpW'
,
'Mx7cz5zBhJ4XTWWw'
,
'BnFaQJ23ddQ6CcfG'
,
'4fzkwfPHZZZmnQJx'
,
'NCnWMkSN5jSBErP6'
,
'Ce238NWT3GAkmXNB'
,
'7QnGFjs7JDxWe2xQ'
,
'5Qtk2aKHsG42PbRz'
);
$channel_urt
=
$_POST
[
'channel'
];
$channel_urt
=
$_POST
[
'channel'
];
$c_z
=
in_array
(
$channel_urt
,
$type_list
);
$c_z
=
in_array
(
$channel_urt
,
$type_list
);
M
(
'User'
)
->
where
(
array
(
'id'
=>
$user
[
'id'
]
))
->
setDec
(
'play_num'
);
if
(
!
$c_z
){
if
(
!
$c_z
){
$this
->
ajaxReturn
(
array
(
$this
->
ajaxReturn
(
array
(
'errcode'
=>
1
,
'errcode'
=>
1
,
...
@@ -156,9 +159,6 @@ class IndexController extends Controller
...
@@ -156,9 +159,6 @@ class IndexController extends Controller
$channel
=
M
(
'Prize'
)
->
where
(
array
(
$channel
=
M
(
'Prize'
)
->
where
(
array
(
'channel'
=>
$channel_urt
'channel'
=>
$channel_urt
))
->
find
();
))
->
find
();
M
(
'User'
)
->
where
(
array
(
'id'
=>
$user
[
'id'
]
))
->
setDec
(
'play_num'
);
if
(
$channel
){
if
(
$channel
){
$this
->
ajaxReturn
(
array
(
$this
->
ajaxReturn
(
array
(
'errcode'
=>
1
,
'errcode'
=>
1
,
...
...
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