Commit 877e3e5d by 张恒

j

parent 80c015ac
...@@ -56,8 +56,8 @@ ...@@ -56,8 +56,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="361"> <state relative-caret-position="152">
<caret line="141" column="27" lean-forward="true" selection-start-line="141" selection-start-column="27" selection-end-line="141" selection-end-column="27" /> <caret line="134" column="29" lean-forward="true" selection-start-line="134" selection-start-column="29" selection-end-line="134" selection-end-column="29" />
<folding> <folding>
<element signature="e#34#44#0#PHP" expanded="true" /> <element signature="e#34#44#0#PHP" expanded="true" />
</folding> </folding>
...@@ -466,12 +466,12 @@ ...@@ -466,12 +466,12 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1562502557206</updated> <updated>1562502557206</updated>
<workItem from="1562502558877" duration="2926000" /> <workItem from="1562502558877" duration="2926000" />
<workItem from="1562505554364" duration="6194000" /> <workItem from="1562505554364" duration="6352000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="9120000" /> <option name="totallyTimeSpent" value="9278000" />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="0" y="23" width="1440" height="817" extended-state="6" /> <frame x="0" y="23" width="1440" height="817" extended-state="6" />
...@@ -638,8 +638,8 @@ ...@@ -638,8 +638,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="361"> <state relative-caret-position="152">
<caret line="141" column="27" lean-forward="true" selection-start-line="141" selection-start-column="27" selection-end-line="141" selection-end-column="27" /> <caret line="134" column="29" lean-forward="true" selection-start-line="134" selection-start-column="29" selection-end-line="134" selection-end-column="29" />
<folding> <folding>
<element signature="e#34#44#0#PHP" expanded="true" /> <element signature="e#34#44#0#PHP" expanded="true" />
</folding> </folding>
......
...@@ -124,23 +124,26 @@ class IndexController extends Controller ...@@ -124,23 +124,26 @@ class IndexController extends Controller
} }
$type = $_GET['channel']; $type = $_GET['channel'];
if ($type) { if ($type) {
$type_list = array(1,2,3,4,5,6,7,8,9,10);
$type_list = array(1); foreach ($type_list as $type_two) {
foreach ($type_list as $type) {
$c = M('prize')->where(array( $c = M('prize')->where(array(
'channel' => $_GET['channel'], 'channel' => $_GET['channel'],
'is_get' => 1, 'is_get' => 1,
))->count(); ))->count();
if ($c) {
$this->ajaxReturn(array( if ($type_two == 1) {
'errcode' => 1, if ($c) {
'errmsg' => null, $this->ajaxReturn(array(
'data' => array( 'errcode' => 1,
'prize' => 0, 'errmsg' => null,
) 'data' => array(
)); 'prize' => 0,
return; )
));
continue;
}
} }
} }
$prize = M('Prize')->where(array( $prize = M('Prize')->where(array(
'user_id' => $user['id'] 'user_id' => $user['id']
......
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 sign in to comment