作者 xiaohu thinkpad

我的订单详情标题

@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <project version="4"> 2 <project version="4">
3 <component name="ChangeListManager"> 3 <component name="ChangeListManager">
4 <list default="true" id="03b59864-5835-4588-bfae-54004809f199" name="Default" comment=""> 4 <list default="true" id="03b59864-5835-4588-bfae-54004809f199" name="Default" comment="">
5 - <change beforePath="$PROJECT_DIR$/app/portal/controller/IndexController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/portal/controller/IndexController.php" afterDir="false" /> 5 + <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6 <change beforePath="$PROJECT_DIR$/app/user/controller/LoginController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/user/controller/LoginController.php" afterDir="false" /> 6 <change beforePath="$PROJECT_DIR$/app/user/controller/LoginController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/user/controller/LoginController.php" afterDir="false" />
7 </list> 7 </list>
8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -17,23 +17,6 @@ @@ -17,23 +17,6 @@
17 </component> 17 </component>
18 <component name="FileEditorManager"> 18 <component name="FileEditorManager">
19 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> 19 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
20 - <file leaf-file-name="hezuo_huigu.htm" pinned="false" current-in-tab="false">  
21 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/hezuo_huigu.htm">  
22 - <provider selected="true" editor-type-id="text-editor">  
23 - <state relative-caret-position="7602">  
24 - <caret line="362" column="14" selection-start-line="362" selection-start-column="14" selection-end-line="373" selection-end-column="31" />  
25 - <folding>  
26 - <element signature="n#style#0;n#div#0;n#section#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
27 - <element signature="n#style#0;n#div#2;n#div#0;n#div#0;n#section#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
28 - <element signature="n#style#0;n#div#3;n#div#0;n#div#0;n#section#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
29 - <element signature="n#style#0;n#div#4;n#div#0;n#div#0;n#section#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
30 - <element signature="n#style#0;n#div#5;n#div#0;n#div#0;n#section#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
31 - <element signature="n#style#0;n#div#6;n#div#0;n#div#0;n#section#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
32 - </folding>  
33 - </state>  
34 - </provider>  
35 - </entry>  
36 - </file>  
37 <file leaf-file-name="hezuo_jiuda.htm" pinned="false" current-in-tab="false"> 20 <file leaf-file-name="hezuo_jiuda.htm" pinned="false" current-in-tab="false">
38 <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/hezuo_jiuda.htm"> 21 <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/hezuo_jiuda.htm">
39 <provider selected="true" editor-type-id="text-editor"> 22 <provider selected="true" editor-type-id="text-editor">
@@ -118,8 +101,17 @@ @@ -118,8 +101,17 @@
118 <file leaf-file-name="LoginController.php" pinned="false" current-in-tab="true"> 101 <file leaf-file-name="LoginController.php" pinned="false" current-in-tab="true">
119 <entry file="file://$PROJECT_DIR$/app/user/controller/LoginController.php"> 102 <entry file="file://$PROJECT_DIR$/app/user/controller/LoginController.php">
120 <provider selected="true" editor-type-id="text-editor"> 103 <provider selected="true" editor-type-id="text-editor">
121 - <state relative-caret-position="189">  
122 - <caret line="32" column="17" lean-forward="true" selection-start-line="32" selection-start-column="17" selection-end-line="32" selection-end-column="17" /> 104 + <state relative-caret-position="231">
  105 + <caret line="85" column="75" selection-start-line="85" selection-start-column="75" selection-end-line="85" selection-end-column="75" />
  106 + </state>
  107 + </provider>
  108 + </entry>
  109 + </file>
  110 + <file leaf-file-name="pay_success.html" pinned="false" current-in-tab="false">
  111 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/portal/index/pay_success.html">
  112 + <provider selected="true" editor-type-id="text-editor">
  113 + <state relative-caret-position="420">
  114 + <caret line="20" column="34" lean-forward="true" selection-start-line="20" selection-start-column="34" selection-end-line="20" selection-end-column="34" />
123 </state> 115 </state>
124 </provider> 116 </provider>
125 </entry> 117 </entry>
@@ -294,6 +286,40 @@ @@ -294,6 +286,40 @@
294 <item name="themes" type="462c0819:PsiDirectoryNode" /> 286 <item name="themes" type="462c0819:PsiDirectoryNode" />
295 <item name="simpleboot3" type="462c0819:PsiDirectoryNode" /> 287 <item name="simpleboot3" type="462c0819:PsiDirectoryNode" />
296 </path> 288 </path>
  289 + <path>
  290 + <item name="dm161xcgit" type="b2602c69:ProjectViewProjectNode" />
  291 + <item name="dm161xcgit" type="462c0819:PsiDirectoryNode" />
  292 + <item name="public" type="462c0819:PsiDirectoryNode" />
  293 + <item name="themes" type="462c0819:PsiDirectoryNode" />
  294 + <item name="simpleboot3" type="462c0819:PsiDirectoryNode" />
  295 + <item name="portal" type="462c0819:PsiDirectoryNode" />
  296 + </path>
  297 + <path>
  298 + <item name="dm161xcgit" type="b2602c69:ProjectViewProjectNode" />
  299 + <item name="dm161xcgit" type="462c0819:PsiDirectoryNode" />
  300 + <item name="public" type="462c0819:PsiDirectoryNode" />
  301 + <item name="themes" type="462c0819:PsiDirectoryNode" />
  302 + <item name="simpleboot3" type="462c0819:PsiDirectoryNode" />
  303 + <item name="portal" type="462c0819:PsiDirectoryNode" />
  304 + <item name="index" type="462c0819:PsiDirectoryNode" />
  305 + </path>
  306 + <path>
  307 + <item name="dm161xcgit" type="b2602c69:ProjectViewProjectNode" />
  308 + <item name="dm161xcgit" type="462c0819:PsiDirectoryNode" />
  309 + <item name="public" type="462c0819:PsiDirectoryNode" />
  310 + <item name="themes" type="462c0819:PsiDirectoryNode" />
  311 + <item name="simpleboot3" type="462c0819:PsiDirectoryNode" />
  312 + <item name="user" type="462c0819:PsiDirectoryNode" />
  313 + </path>
  314 + <path>
  315 + <item name="dm161xcgit" type="b2602c69:ProjectViewProjectNode" />
  316 + <item name="dm161xcgit" type="462c0819:PsiDirectoryNode" />
  317 + <item name="public" type="462c0819:PsiDirectoryNode" />
  318 + <item name="themes" type="462c0819:PsiDirectoryNode" />
  319 + <item name="simpleboot3" type="462c0819:PsiDirectoryNode" />
  320 + <item name="user" type="462c0819:PsiDirectoryNode" />
  321 + <item name="order" type="462c0819:PsiDirectoryNode" />
  322 + </path>
297 </expand> 323 </expand>
298 <select /> 324 <select />
299 </subPane> 325 </subPane>
@@ -309,6 +335,9 @@ @@ -309,6 +335,9 @@
309 <property name="nodejs_package_manager_path" value="npm" /> 335 <property name="nodejs_package_manager_path" value="npm" />
310 </component> 336 </component>
311 <component name="RecentsManager"> 337 <component name="RecentsManager">
  338 + <key name="CopyFile.RECENT_KEYS">
  339 + <recent name="D:\www\dm161xcgit\public\themes\simpleboot3\portal\index" />
  340 + </key>
312 <key name="MoveFile.RECENT_KEYS"> 341 <key name="MoveFile.RECENT_KEYS">
313 <recent name="$PROJECT_DIR$/api/wxapp" /> 342 <recent name="$PROJECT_DIR$/api/wxapp" />
314 </key> 343 </key>
@@ -344,7 +373,7 @@ @@ -344,7 +373,7 @@
344 <workItem from="1535514127808" duration="727000" /> 373 <workItem from="1535514127808" duration="727000" />
345 <workItem from="1535532970259" duration="2527000" /> 374 <workItem from="1535532970259" duration="2527000" />
346 <workItem from="1535546044129" duration="20814000" /> 375 <workItem from="1535546044129" duration="20814000" />
347 - <workItem from="1535633001243" duration="972000" /> 376 + <workItem from="1535633001243" duration="1354000" />
348 </task> 377 </task>
349 <task id="LOCAL-00001" summary="修复预约后不能再预约的问题"> 378 <task id="LOCAL-00001" summary="修复预约后不能再预约的问题">
350 <created>1535458170068</created> 379 <created>1535458170068</created>
@@ -542,11 +571,25 @@ @@ -542,11 +571,25 @@
542 <option name="project" value="LOCAL" /> 571 <option name="project" value="LOCAL" />
543 <updated>1535633219778</updated> 572 <updated>1535633219778</updated>
544 </task> 573 </task>
545 - <option name="localTasksCounter" value="29" /> 574 + <task id="LOCAL-00029" summary="我的订单详情标题">
  575 + <created>1535633983516</created>
  576 + <option name="number" value="00029" />
  577 + <option name="presentableId" value="LOCAL-00029" />
  578 + <option name="project" value="LOCAL" />
  579 + <updated>1535633983516</updated>
  580 + </task>
  581 + <task id="LOCAL-00030" summary="我的订单详情标题">
  582 + <created>1535634119952</created>
  583 + <option name="number" value="00030" />
  584 + <option name="presentableId" value="LOCAL-00030" />
  585 + <option name="project" value="LOCAL" />
  586 + <updated>1535634119952</updated>
  587 + </task>
  588 + <option name="localTasksCounter" value="31" />
546 <servers /> 589 <servers />
547 </component> 590 </component>
548 <component name="TimeTrackingManager"> 591 <component name="TimeTrackingManager">
549 - <option name="totallyTimeSpent" value="55424000" /> 592 + <option name="totallyTimeSpent" value="55806000" />
550 </component> 593 </component>
551 <component name="ToolWindowManager"> 594 <component name="ToolWindowManager">
552 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> 595 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
@@ -592,13 +635,6 @@ @@ -592,13 +635,6 @@
592 <option name="LAST_COMMIT_MESSAGE" value="我的订单详情标题" /> 635 <option name="LAST_COMMIT_MESSAGE" value="我的订单详情标题" />
593 </component> 636 </component>
594 <component name="editorHistoryManager"> 637 <component name="editorHistoryManager">
595 - <entry file="file://$PROJECT_DIR$/api/home/route.php">  
596 - <provider selected="true" editor-type-id="text-editor">  
597 - <state relative-caret-position="76">  
598 - <caret line="4" column="18" selection-start-line="4" selection-start-column="17" selection-end-line="4" selection-end-column="28" />  
599 - </state>  
600 - </provider>  
601 - </entry>  
602 <entry file="file://$PROJECT_DIR$/api/route.php"> 638 <entry file="file://$PROJECT_DIR$/api/route.php">
603 <provider selected="true" editor-type-id="text-editor" /> 639 <provider selected="true" editor-type-id="text-editor" />
604 </entry> 640 </entry>
@@ -872,10 +908,17 @@ @@ -872,10 +908,17 @@
872 </state> 908 </state>
873 </provider> 909 </provider>
874 </entry> 910 </entry>
  911 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/portal/index/pay_success.html">
  912 + <provider selected="true" editor-type-id="text-editor">
  913 + <state relative-caret-position="420">
  914 + <caret line="20" column="34" lean-forward="true" selection-start-line="20" selection-start-column="34" selection-end-line="20" selection-end-column="34" />
  915 + </state>
  916 + </provider>
  917 + </entry>
875 <entry file="file://$PROJECT_DIR$/app/user/controller/LoginController.php"> 918 <entry file="file://$PROJECT_DIR$/app/user/controller/LoginController.php">
876 <provider selected="true" editor-type-id="text-editor"> 919 <provider selected="true" editor-type-id="text-editor">
877 - <state relative-caret-position="189">  
878 - <caret line="32" column="17" lean-forward="true" selection-start-line="32" selection-start-column="17" selection-end-line="32" selection-end-column="17" /> 920 + <state relative-caret-position="231">
  921 + <caret line="85" column="75" selection-start-line="85" selection-start-column="75" selection-end-line="85" selection-end-column="75" />
879 </state> 922 </state>
880 </provider> 923 </provider>
881 </entry> 924 </entry>
@@ -82,6 +82,13 @@ class LoginController extends HomeBaseController @@ -82,6 +82,13 @@ class LoginController extends HomeBaseController
82 $res = Db::name('user')->where(['mobile'=>$mobile])->find(); 82 $res = Db::name('user')->where(['mobile'=>$mobile])->find();
83 83
84 if($res){ 84 if($res){
  85 +
  86 + if ($res['user_type'] == '2' and $res['student_type'] != '1'){
  87 + return json(['code'=>'0','msg'=>'抱歉,此用户没有权限登录']);
  88 + //用户被拉黑
  89 + }elseif($res['user_status'] != '1'){
  90 + return json(['code'=>'0','msg'=>'抱歉,用户禁止登陆']);
  91 + }
85 //后台添加用户,微信登陆后合并数据 92 //后台添加用户,微信登陆后合并数据
86 if($res['add_type'] == '2'){ 93 if($res['add_type'] == '2'){
87 $op_tel_info = Db::name('user')->where(['openid'=>session('openid'),'mobile'=>$mobile])->find(); 94 $op_tel_info = Db::name('user')->where(['openid'=>session('openid'),'mobile'=>$mobile])->find();
@@ -97,11 +104,6 @@ class LoginController extends HomeBaseController @@ -97,11 +104,6 @@ class LoginController extends HomeBaseController
97 } 104 }
98 } 105 }
99 //学员成功支付后才可以登陆 106 //学员成功支付后才可以登陆
100 - }elseif ($res['user_type'] == '2' and $res['student_type'] == '2'){  
101 - return json(['code'=>'0','msg'=>'抱歉,此用户没有权限登录']);  
102 - //用户被拉黑  
103 - }elseif($res['user_status'] != '1'){  
104 - return json(['code'=>'0','msg'=>'抱歉,用户禁止登陆']);  
105 } 107 }
106 session('user.id',$res['id']); 108 session('user.id',$res['id']);
107 return json(['code'=>'1','msg'=>'登陆成功']); 109 return json(['code'=>'1','msg'=>'登陆成功']);