Commit 80c015ac by 张恒

j

parent a57d287e
...@@ -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="399"> <state relative-caret-position="361">
<caret line="179" column="32" lean-forward="true" selection-start-line="179" selection-start-column="32" selection-end-line="179" selection-end-column="32" /> <caret line="141" column="27" lean-forward="true" selection-start-line="141" selection-start-column="27" selection-end-line="141" selection-end-column="27" />
<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="6002000" /> <workItem from="1562505554364" duration="6194000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="8928000" /> <option name="totallyTimeSpent" value="9120000" />
</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="399"> <state relative-caret-position="361">
<caret line="179" column="32" lean-forward="true" selection-start-line="179" selection-start-column="32" selection-end-line="179" selection-end-column="32" /> <caret line="141" column="27" lean-forward="true" selection-start-line="141" selection-start-column="27" selection-end-line="141" selection-end-column="27" />
<folding> <folding>
<element signature="e#34#44#0#PHP" expanded="true" /> <element signature="e#34#44#0#PHP" expanded="true" />
</folding> </folding>
......
...@@ -124,10 +124,14 @@ class IndexController extends Controller ...@@ -124,10 +124,14 @@ class IndexController extends Controller
} }
$type = $_GET['channel']; $type = $_GET['channel'];
if ($type) { if ($type) {
$prize = M('Prize')->where(array(
'user_id' => $user['id'] $type_list = array(1);
))->find(); foreach ($type_list as $type) {
if ($prize['channel'] == $type) { $c = M('prize')->where(array(
'channel' => $_GET['channel'],
'is_get' => 1,
))->count();
if ($c) {
$this->ajaxReturn(array( $this->ajaxReturn(array(
'errcode' => 1, 'errcode' => 1,
'errmsg' => null, 'errmsg' => null,
...@@ -137,6 +141,10 @@ class IndexController extends Controller ...@@ -137,6 +141,10 @@ class IndexController extends Controller
)); ));
return; return;
} }
}
$prize = M('Prize')->where(array(
'user_id' => $user['id']
))->find();
if ($prize) { if ($prize) {
$this->ajaxReturn(array( $this->ajaxReturn(array(
'errcode' => 0, 'errcode' => 0,
......
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