Commit 80c015ac by 张恒

j

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