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

调试授权登录

... ... @@ -2,6 +2,7 @@
<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" />
... ... @@ -67,8 +68,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="306">
<caret line="26" column="39" selection-start-line="26" selection-start-column="39" selection-end-line="26" selection-end-column="39" />
<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>
</provider>
</entry>
... ... @@ -448,28 +449,7 @@
<workItem from="1572223206994" duration="28857000" />
<workItem from="1572309778506" duration="26117000" />
<workItem from="1572395935540" duration="28313000" />
<workItem from="1572483209367" duration="14023000" />
</task>
<task id="LOCAL-00001" summary="数据库配置">
<created>1571972429395</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1571972429395</updated>
</task>
<task id="LOCAL-00002" summary="微信公众平台配置">
<created>1571972572694</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1571972572694</updated>
</task>
<task id="LOCAL-00003" summary="调试授权">
<created>1571972828504</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1571972828504</updated>
<workItem from="1572483209367" duration="14272000" />
</task>
<task id="LOCAL-00004" summary="调试授权">
<created>1571975677420</created>
... ... @@ -793,11 +773,32 @@
<option name="project" value="LOCAL" />
<updated>1572504885453</updated>
</task>
<option name="localTasksCounter" value="50" />
<task id="LOCAL-00050" summary="调试授权登录">
<created>1572504923532</created>
<option name="number" value="00050" />
<option name="presentableId" value="LOCAL-00050" />
<option name="project" value="LOCAL" />
<updated>1572504923532</updated>
</task>
<task id="LOCAL-00051" summary="调试授权登录">
<created>1572505046783</created>
<option name="number" value="00051" />
<option name="presentableId" value="LOCAL-00051" />
<option name="project" value="LOCAL" />
<updated>1572505046783</updated>
</task>
<task id="LOCAL-00052" summary="调试授权登录">
<created>1572505152338</created>
<option name="number" value="00052" />
<option name="presentableId" value="LOCAL-00052" />
<option name="project" value="LOCAL" />
<updated>1572505152338</updated>
</task>
<option name="localTasksCounter" value="53" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="227561000" />
<option name="totallyTimeSpent" value="227810000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -1235,8 +1236,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="306">
<caret line="26" column="39" selection-start-line="26" selection-start-column="39" selection-end-line="26" selection-end-column="39" />
<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>
</provider>
</entry>
... ...
... ... @@ -23,7 +23,7 @@ class Goods extends WechatBase
//判断是否授权
$user_id = get_current_user_id();
if(empty($user_id)){
$target_url = rawurldecode(url('','',false,true));
$target_url = rawurlencode(url('','',false,true));
echo $target_url;
exit();
$this->redirect('user/authorization_view',array('target_url'=>$target_url));
... ...