作者 xiaohu thinkpad

登录处理

@@ -75,8 +75,8 @@ @@ -75,8 +75,8 @@
75 <file leaf-file-name="UserBaseController.php" pinned="false" current-in-tab="true"> 75 <file leaf-file-name="UserBaseController.php" pinned="false" current-in-tab="true">
76 <entry file="file://$PROJECT_DIR$/simplewind/cmf/controller/UserBaseController.php"> 76 <entry file="file://$PROJECT_DIR$/simplewind/cmf/controller/UserBaseController.php">
77 <provider selected="true" editor-type-id="text-editor"> 77 <provider selected="true" editor-type-id="text-editor">
78 - <state relative-caret-position="315">  
79 - <caret line="23" column="84" selection-start-line="23" selection-start-column="84" selection-end-line="23" selection-end-column="84" /> 78 + <state relative-caret-position="294">
  79 + <caret line="22" column="33" selection-start-line="22" selection-start-column="33" selection-end-line="22" selection-end-column="33" />
80 </state> 80 </state>
81 </provider> 81 </provider>
82 </entry> 82 </entry>
@@ -270,7 +270,7 @@ @@ -270,7 +270,7 @@
270 <workItem from="1535514127808" duration="727000" /> 270 <workItem from="1535514127808" duration="727000" />
271 <workItem from="1535532970259" duration="2527000" /> 271 <workItem from="1535532970259" duration="2527000" />
272 <workItem from="1535546044129" duration="20814000" /> 272 <workItem from="1535546044129" duration="20814000" />
273 - <workItem from="1535633001243" duration="3749000" /> 273 + <workItem from="1535633001243" duration="3953000" />
274 </task> 274 </task>
275 <task id="LOCAL-00001" summary="修复预约后不能再预约的问题"> 275 <task id="LOCAL-00001" summary="修复预约后不能再预约的问题">
276 <created>1535458170068</created> 276 <created>1535458170068</created>
@@ -545,11 +545,18 @@ @@ -545,11 +545,18 @@
545 <option name="project" value="LOCAL" /> 545 <option name="project" value="LOCAL" />
546 <updated>1535636993426</updated> 546 <updated>1535636993426</updated>
547 </task> 547 </task>
548 - <option name="localTasksCounter" value="40" /> 548 + <task id="LOCAL-00040" summary="登录处理">
  549 + <created>1535637256089</created>
  550 + <option name="number" value="00040" />
  551 + <option name="presentableId" value="LOCAL-00040" />
  552 + <option name="project" value="LOCAL" />
  553 + <updated>1535637256089</updated>
  554 + </task>
  555 + <option name="localTasksCounter" value="41" />
549 <servers /> 556 <servers />
550 </component> 557 </component>
551 <component name="TimeTrackingManager"> 558 <component name="TimeTrackingManager">
552 - <option name="totallyTimeSpent" value="58201000" /> 559 + <option name="totallyTimeSpent" value="58405000" />
553 </component> 560 </component>
554 <component name="ToolWindowManager"> 561 <component name="ToolWindowManager">
555 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> 562 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
@@ -884,8 +891,8 @@ @@ -884,8 +891,8 @@
884 </entry> 891 </entry>
885 <entry file="file://$PROJECT_DIR$/simplewind/cmf/controller/UserBaseController.php"> 892 <entry file="file://$PROJECT_DIR$/simplewind/cmf/controller/UserBaseController.php">
886 <provider selected="true" editor-type-id="text-editor"> 893 <provider selected="true" editor-type-id="text-editor">
887 - <state relative-caret-position="315">  
888 - <caret line="23" column="84" selection-start-line="23" selection-start-column="84" selection-end-line="23" selection-end-column="84" /> 894 + <state relative-caret-position="294">
  895 + <caret line="22" column="33" selection-start-line="22" selection-start-column="33" selection-end-line="22" selection-end-column="33" />
889 </state> 896 </state>
890 </provider> 897 </provider>
891 </entry> 898 </entry>
@@ -20,6 +20,7 @@ class UserBaseController extends HomeBaseController @@ -20,6 +20,7 @@ class UserBaseController extends HomeBaseController
20 if(session('user.id')){ 20 if(session('user.id')){
21 $login_info = Db::name('user')->where(['id'=>session('user.id')])->find(); 21 $login_info = Db::name('user')->where(['id'=>session('user.id')])->find();
22 if(!$login_info){ 22 if(!$login_info){
  23 + unset($_SESSION);
23 session('user.id',''); 24 session('user.id','');
24 return redirect($this->request->root() . '/user/profile/percenter'); 25 return redirect($this->request->root() . '/user/profile/percenter');
25 } 26 }