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

调试授权登录

@@ -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="39" selection-start-line="25" selection-start-column="39" selection-end-line="25" selection-end-column="39" /> 70 + <state relative-caret-position="306">
  71 + <caret line="26" column="30" selection-start-line="26" selection-start-column="30" selection-end-line="26" selection-end-column="30" />
73 </state> 72 </state>
74 </provider> 73 </provider>
75 </entry> 74 </entry>
@@ -449,14 +448,7 @@ @@ -449,14 +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="14272000" />  
453 - </task>  
454 - <task id="LOCAL-00004" summary="调试授权">  
455 - <created>1571975677420</created>  
456 - <option name="number" value="00004" />  
457 - <option name="presentableId" value="LOCAL-00004" />  
458 - <option name="project" value="LOCAL" />  
459 - <updated>1571975677420</updated> 451 + <workItem from="1572483209367" duration="14299000" />
460 </task> 452 </task>
461 <task id="LOCAL-00005" summary="调试授权"> 453 <task id="LOCAL-00005" summary="调试授权">
462 <created>1571975758832</created> 454 <created>1571975758832</created>
@@ -794,11 +786,18 @@ @@ -794,11 +786,18 @@
794 <option name="project" value="LOCAL" /> 786 <option name="project" value="LOCAL" />
795 <updated>1572505152338</updated> 787 <updated>1572505152338</updated>
796 </task> 788 </task>
797 - <option name="localTasksCounter" value="53" /> 789 + <task id="LOCAL-00053" summary="调试授权登录">
  790 + <created>1572505172092</created>
  791 + <option name="number" value="00053" />
  792 + <option name="presentableId" value="LOCAL-00053" />
  793 + <option name="project" value="LOCAL" />
  794 + <updated>1572505172092</updated>
  795 + </task>
  796 + <option name="localTasksCounter" value="54" />
798 <servers /> 797 <servers />
799 </component> 798 </component>
800 <component name="TimeTrackingManager"> 799 <component name="TimeTrackingManager">
801 - <option name="totallyTimeSpent" value="227810000" /> 800 + <option name="totallyTimeSpent" value="227837000" />
802 </component> 801 </component>
803 <component name="ToolWindowManager"> 802 <component name="ToolWindowManager">
804 <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" />
@@ -1236,8 +1235,8 @@ @@ -1236,8 +1235,8 @@
1236 </entry> 1235 </entry>
1237 <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php"> 1236 <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
1238 <provider selected="true" editor-type-id="text-editor"> 1237 <provider selected="true" editor-type-id="text-editor">
1239 - <state relative-caret-position="289">  
1240 - <caret line="25" column="39" selection-start-line="25" selection-start-column="39" selection-end-line="25" selection-end-column="39" /> 1238 + <state relative-caret-position="306">
  1239 + <caret line="26" column="30" selection-start-line="26" selection-start-column="30" selection-end-line="26" selection-end-column="30" />
1241 </state> 1240 </state>
1242 </provider> 1241 </provider>
1243 </entry> 1242 </entry>
@@ -24,8 +24,6 @@ class Goods extends WechatBase @@ -24,8 +24,6 @@ class Goods extends WechatBase
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 = rawurlencode(url('','',false,true)); 26 $target_url = rawurlencode(url('','',false,true));
27 - echo rawurldecode($target_url);  
28 - exit();  
29 $this->redirect('user/authorization_view',array('target_url'=>$target_url)); 27 $this->redirect('user/authorization_view',array('target_url'=>$target_url));
30 } 28 }
31 $this->user_id = $user_id; 29 $this->user_id = $user_id;
@@ -159,7 +159,7 @@ class User extends WechatBase @@ -159,7 +159,7 @@ class User extends WechatBase
159 if(empty($target_url)){ 159 if(empty($target_url)){
160 $target_url = url('home/index/index','',false,true); 160 $target_url = url('home/index/index','',false,true);
161 }else{ 161 }else{
162 - $target_url = UrlDecode($target_url); 162 + $target_url = rawurldecode($target_url);
163 } 163 }
164 $this->checkWeChatUserLogin($target_url); 164 $this->checkWeChatUserLogin($target_url);
165 } 165 }