作者 xiaohu thinkpad

登录处理

... ... @@ -75,8 +75,8 @@
<file leaf-file-name="UserBaseController.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/simplewind/cmf/controller/UserBaseController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="315">
<caret line="23" column="84" selection-start-line="23" selection-start-column="84" selection-end-line="23" selection-end-column="84" />
<state relative-caret-position="294">
<caret line="22" column="33" selection-start-line="22" selection-start-column="33" selection-end-line="22" selection-end-column="33" />
</state>
</provider>
</entry>
... ... @@ -270,7 +270,7 @@
<workItem from="1535514127808" duration="727000" />
<workItem from="1535532970259" duration="2527000" />
<workItem from="1535546044129" duration="20814000" />
<workItem from="1535633001243" duration="3749000" />
<workItem from="1535633001243" duration="3953000" />
</task>
<task id="LOCAL-00001" summary="修复预约后不能再预约的问题">
<created>1535458170068</created>
... ... @@ -545,11 +545,18 @@
<option name="project" value="LOCAL" />
<updated>1535636993426</updated>
</task>
<option name="localTasksCounter" value="40" />
<task id="LOCAL-00040" summary="登录处理">
<created>1535637256089</created>
<option name="number" value="00040" />
<option name="presentableId" value="LOCAL-00040" />
<option name="project" value="LOCAL" />
<updated>1535637256089</updated>
</task>
<option name="localTasksCounter" value="41" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="58201000" />
<option name="totallyTimeSpent" value="58405000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -884,8 +891,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/simplewind/cmf/controller/UserBaseController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="315">
<caret line="23" column="84" selection-start-line="23" selection-start-column="84" selection-end-line="23" selection-end-column="84" />
<state relative-caret-position="294">
<caret line="22" column="33" selection-start-line="22" selection-start-column="33" selection-end-line="22" selection-end-column="33" />
</state>
</provider>
</entry>
... ...
... ... @@ -20,6 +20,7 @@ class UserBaseController extends HomeBaseController
if(session('user.id')){
$login_info = Db::name('user')->where(['id'=>session('user.id')])->find();
if(!$login_info){
unset($_SESSION);
session('user.id','');
return redirect($this->request->root() . '/user/profile/percenter');
}
... ...