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
8ffe1808
authored
Jul 07, 2019
by
张恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
j
parent
f3b52355
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
22 deletions
+20
-22
.idea/workspace.xml
+6
-6
Application/Home/Controller/IndexController.class.php
+14
-16
No files found.
.idea/workspace.xml
View file @
8ffe1808
...
...
@@ -56,8 +56,8 @@
<file
leaf-file-name=
"IndexController.class.php"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
330
"
>
<caret
line=
"13
2"
column=
"42"
lean-forward=
"true"
selection-start-line=
"132"
selection-start-column=
"42"
selection-end-line=
"132"
selection-end-column=
"42
"
/>
<state
relative-caret-position=
"
406
"
>
<caret
line=
"13
6"
column=
"9"
lean-forward=
"false"
selection-start-line=
"136"
selection-start-column=
"9"
selection-end-line=
"136"
selection-end-column=
"9
"
/>
<folding>
<element
signature=
"e#34#44#0#PHP"
expanded=
"true"
/>
</folding>
...
...
@@ -466,12 +466,12 @@
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1562502557206
</updated>
<workItem
from=
"1562502558877"
duration=
"2926000"
/>
<workItem
from=
"1562505554364"
duration=
"7
651
000"
/>
<workItem
from=
"1562505554364"
duration=
"7
843
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"10
577
000"
/>
<option
name=
"totallyTimeSpent"
value=
"10
769
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"23"
width=
"1440"
height=
"817"
extended-state=
"6"
/>
...
...
@@ -638,8 +638,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
330
"
>
<caret
line=
"13
2"
column=
"42"
lean-forward=
"true"
selection-start-line=
"132"
selection-start-column=
"42"
selection-end-line=
"132"
selection-end-column=
"42
"
/>
<state
relative-caret-position=
"
406
"
>
<caret
line=
"13
6"
column=
"9"
lean-forward=
"false"
selection-start-line=
"136"
selection-start-column=
"9"
selection-end-line=
"136"
selection-end-column=
"9
"
/>
<folding>
<element
signature=
"e#34#44#0#PHP"
expanded=
"true"
/>
</folding>
...
...
Application/Home/Controller/IndexController.class.php
View file @
8ffe1808
...
...
@@ -123,23 +123,18 @@ class IndexController extends Controller
}
$type_list
=
array
(
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
);
$channel_urt
=
$_POST
[
'channel'
];
foreach
(
$type_list
as
$type
)
{
if
(
$type
!=
$channel_urt
)
{
$this
->
ajaxReturn
(
array
(
'errcode'
=>
1
,
'errmsg'
=>
null
,
'data'
=>
array
(
'prize'
=>
0
,
'o'
=>
$channel_urt
,
'c'
=>
$type
)
));
continue
;
}
$c_z
=
in_array
(
$channel_urt
,
$type_list
);
if
(
!
$c_z
){
$this
->
ajaxReturn
(
array
(
'errcode'
=>
1
,
'errmsg'
=>
null
,
'data'
=>
array
(
'prize'
=>
0
)
));
return
;
}
$prize
=
M
(
'Prize'
)
->
where
(
array
(
'user_id'
=>
$user
[
'id'
]
))
->
find
();
$channel
=
M
(
'Prize'
)
->
where
(
array
(
'channel'
=>
$channel_urt
))
->
find
();
...
...
@@ -153,6 +148,9 @@ class IndexController extends Controller
));
return
;
}
$prize
=
M
(
'Prize'
)
->
where
(
array
(
'user_id'
=>
$user
[
'id'
]
))
->
find
();
if
(
$prize
)
{
$this
->
ajaxReturn
(
array
(
'errcode'
=>
0
,
...
...
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