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

调试授权登录

@@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
2 <project version="4"> 2 <project version="4">
3 <component name="ChangeListManager"> 3 <component name="ChangeListManager">
4 <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment=""> 4 <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment="">
5 - <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />  
6 <change beforePath="$PROJECT_DIR$/application/home/controller/Goods.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Goods.php" afterDir="false" /> 5 <change beforePath="$PROJECT_DIR$/application/home/controller/Goods.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Goods.php" afterDir="false" />
7 </list> 6 </list>
8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 7 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -68,8 +67,8 @@ @@ -68,8 +67,8 @@
68 <file leaf-file-name="Goods.php" pinned="false" current-in-tab="true"> 67 <file leaf-file-name="Goods.php" pinned="false" current-in-tab="true">
69 <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php"> 68 <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
70 <provider selected="true" editor-type-id="text-editor"> 69 <provider selected="true" editor-type-id="text-editor">
71 - <state relative-caret-position="289">  
72 - <caret line="25" column="36" selection-start-line="25" selection-start-column="36" selection-end-line="25" selection-end-column="36" /> 70 + <state relative-caret-position="306">
  71 + <caret line="26" column="39" selection-start-line="26" selection-start-column="39" selection-end-line="26" selection-end-column="39" />
73 </state> 72 </state>
74 </provider> 73 </provider>
75 </entry> 74 </entry>
@@ -449,7 +448,7 @@ @@ -449,7 +448,7 @@
449 <workItem from="1572223206994" duration="28857000" /> 448 <workItem from="1572223206994" duration="28857000" />
450 <workItem from="1572309778506" duration="26117000" /> 449 <workItem from="1572309778506" duration="26117000" />
451 <workItem from="1572395935540" duration="28313000" /> 450 <workItem from="1572395935540" duration="28313000" />
452 - <workItem from="1572483209367" duration="13984000" /> 451 + <workItem from="1572483209367" duration="14023000" />
453 </task> 452 </task>
454 <task id="LOCAL-00001" summary="数据库配置"> 453 <task id="LOCAL-00001" summary="数据库配置">
455 <created>1571972429395</created> 454 <created>1571972429395</created>
@@ -787,11 +786,18 @@ @@ -787,11 +786,18 @@
787 <option name="project" value="LOCAL" /> 786 <option name="project" value="LOCAL" />
788 <updated>1572504815693</updated> 787 <updated>1572504815693</updated>
789 </task> 788 </task>
790 - <option name="localTasksCounter" value="49" /> 789 + <task id="LOCAL-00049" summary="调试授权登录">
  790 + <created>1572504885453</created>
  791 + <option name="number" value="00049" />
  792 + <option name="presentableId" value="LOCAL-00049" />
  793 + <option name="project" value="LOCAL" />
  794 + <updated>1572504885453</updated>
  795 + </task>
  796 + <option name="localTasksCounter" value="50" />
791 <servers /> 797 <servers />
792 </component> 798 </component>
793 <component name="TimeTrackingManager"> 799 <component name="TimeTrackingManager">
794 - <option name="totallyTimeSpent" value="227522000" /> 800 + <option name="totallyTimeSpent" value="227561000" />
795 </component> 801 </component>
796 <component name="ToolWindowManager"> 802 <component name="ToolWindowManager">
797 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> 803 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
@@ -1229,8 +1235,8 @@ @@ -1229,8 +1235,8 @@
1229 </entry> 1235 </entry>
1230 <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php"> 1236 <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
1231 <provider selected="true" editor-type-id="text-editor"> 1237 <provider selected="true" editor-type-id="text-editor">
1232 - <state relative-caret-position="289">  
1233 - <caret line="25" column="36" selection-start-line="25" selection-start-column="36" selection-end-line="25" selection-end-column="36" /> 1238 + <state relative-caret-position="306">
  1239 + <caret line="26" column="39" selection-start-line="26" selection-start-column="39" selection-end-line="26" selection-end-column="39" />
1234 </state> 1240 </state>
1235 </provider> 1241 </provider>
1236 </entry> 1242 </entry>
@@ -23,8 +23,8 @@ class Goods extends WechatBase @@ -23,8 +23,8 @@ class Goods extends WechatBase
23 //判断是否授权 23 //判断是否授权
24 $user_id = get_current_user_id(); 24 $user_id = get_current_user_id();
25 if(empty($user_id)){ 25 if(empty($user_id)){
26 - $target_url = urlencode(url('','',false,true));  
27 - echo urldecode($target_url); 26 + $target_url = urldecode(url('','',false,true));
  27 + echo $target_url;
28 exit(); 28 exit();
29 $this->redirect('user/authorization_view',array('target_url'=>$target_url)); 29 $this->redirect('user/authorization_view',array('target_url'=>$target_url));
30 } 30 }