Commit a105b7bd by zhangheng

j

parent b9c2b71a
......@@ -2,7 +2,6 @@
<project version="4">
<component name="ChangeListManager">
<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" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
......@@ -17,7 +16,7 @@
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FileEditorManager">
<splitter split-orientation="horizontal" split-proportion="0.5523649">
<splitter split-orientation="horizontal" split-proportion="0.7491554">
<split-first>
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="index.html" pinned="false" current-in-tab="false">
......@@ -66,8 +65,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="456">
<caret line="160" column="31" lean-forward="false" selection-start-line="160" selection-start-column="31" selection-end-line="160" selection-end-column="31" />
<state relative-caret-position="228">
<caret line="147" column="31" lean-forward="false" selection-start-line="147" selection-start-column="31" selection-end-line="147" selection-end-column="31" />
<folding>
<element signature="e#34#44#0#PHP" expanded="true" />
</folding>
......@@ -584,12 +583,12 @@
<workItem from="1563355311998" duration="122000" />
<workItem from="1563377354829" duration="1609000" />
<workItem from="1563441996623" duration="114000" />
<workItem from="1563716562750" duration="2134000" />
<workItem from="1563716562750" duration="2787000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="19705000" />
<option name="totallyTimeSpent" value="20358000" />
</component>
<component name="ToolWindowManager">
<frame x="64" y="23" width="1440" height="813" extended-state="0" />
......@@ -1053,8 +1052,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="456">
<caret line="160" column="31" lean-forward="false" selection-start-line="160" selection-start-column="31" selection-end-line="160" selection-end-column="31" />
<state relative-caret-position="228">
<caret line="147" column="31" lean-forward="false" selection-start-line="147" selection-start-column="31" selection-end-line="147" selection-end-column="31" />
<folding>
<element signature="e#34#44#0#PHP" expanded="true" />
</folding>
......
......@@ -143,6 +143,9 @@ class IndexController extends Controller
$type_list = array('6JTjh8cPcQ6Rh4Zs','wrwSQkP7aBSTSz6Q','DQxcxExXHmrrJhpW','Mx7cz5zBhJ4XTWWw','BnFaQJ23ddQ6CcfG','4fzkwfPHZZZmnQJx','NCnWMkSN5jSBErP6','Ce238NWT3GAkmXNB','7QnGFjs7JDxWe2xQ','5Qtk2aKHsG42PbRz');
$channel_urt=$_POST['channel'];
$c_z=in_array($channel_urt,$type_list);
M('User')->where(array(
'id' => $user['id']
))->setDec('play_num');
if(!$c_z){
$this->ajaxReturn(array(
'errcode' => 1,
......@@ -156,9 +159,6 @@ class IndexController extends Controller
$channel=M('Prize')->where(array(
'channel'=>$channel_urt
))->find();
M('User')->where(array(
'id' => $user['id']
))->setDec('play_num');
if($channel){
$this->ajaxReturn(array(
'errcode' => 1,
......
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