作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

调试授权登录

... ... @@ -2,7 +2,6 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/application/home/controller/Goods.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Goods.php" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
... ... @@ -68,8 +67,8 @@
<file leaf-file-name="Goods.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="289">
<caret line="25" column="39" selection-start-line="25" selection-start-column="39" selection-end-line="25" selection-end-column="39" />
<state relative-caret-position="306">
<caret line="26" column="30" selection-start-line="26" selection-start-column="30" selection-end-line="26" selection-end-column="30" />
</state>
</provider>
</entry>
... ... @@ -449,14 +448,7 @@
<workItem from="1572223206994" duration="28857000" />
<workItem from="1572309778506" duration="26117000" />
<workItem from="1572395935540" duration="28313000" />
<workItem from="1572483209367" duration="14272000" />
</task>
<task id="LOCAL-00004" summary="调试授权">
<created>1571975677420</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1571975677420</updated>
<workItem from="1572483209367" duration="14299000" />
</task>
<task id="LOCAL-00005" summary="调试授权">
<created>1571975758832</created>
... ... @@ -794,11 +786,18 @@
<option name="project" value="LOCAL" />
<updated>1572505152338</updated>
</task>
<option name="localTasksCounter" value="53" />
<task id="LOCAL-00053" summary="调试授权登录">
<created>1572505172092</created>
<option name="number" value="00053" />
<option name="presentableId" value="LOCAL-00053" />
<option name="project" value="LOCAL" />
<updated>1572505172092</updated>
</task>
<option name="localTasksCounter" value="54" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="227810000" />
<option name="totallyTimeSpent" value="227837000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -1236,8 +1235,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="289">
<caret line="25" column="39" selection-start-line="25" selection-start-column="39" selection-end-line="25" selection-end-column="39" />
<state relative-caret-position="306">
<caret line="26" column="30" selection-start-line="26" selection-start-column="30" selection-end-line="26" selection-end-column="30" />
</state>
</provider>
</entry>
... ...
... ... @@ -24,8 +24,6 @@ class Goods extends WechatBase
$user_id = get_current_user_id();
if(empty($user_id)){
$target_url = rawurlencode(url('','',false,true));
echo rawurldecode($target_url);
exit();
$this->redirect('user/authorization_view',array('target_url'=>$target_url));
}
$this->user_id = $user_id;
... ...
... ... @@ -159,7 +159,7 @@ class User extends WechatBase
if(empty($target_url)){
$target_url = url('home/index/index','',false,true);
}else{
$target_url = UrlDecode($target_url);
$target_url = rawurldecode($target_url);
}
$this->checkWeChatUserLogin($target_url);
}
... ...