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

调试授权

@@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
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/model/User.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/model/User.php" afterDir="false" /> 5 + <change beforePath="$PROJECT_DIR$/application/home/controller/Server.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Server.php" afterDir="false" />
  6 + <change beforePath="$PROJECT_DIR$/application/home/controller/User.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/User.php" afterDir="false" />
7 </list> 7 </list>
8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9 <option name="TRACKING_ENABLED" value="true" /> 9 <option name="TRACKING_ENABLED" value="true" />
@@ -65,11 +65,11 @@ @@ -65,11 +65,11 @@
65 </provider> 65 </provider>
66 </entry> 66 </entry>
67 </file> 67 </file>
68 - <file leaf-file-name="Server.php" pinned="false" current-in-tab="false"> 68 + <file leaf-file-name="Server.php" pinned="false" current-in-tab="true">
69 <entry file="file://$PROJECT_DIR$/application/home/controller/Server.php"> 69 <entry file="file://$PROJECT_DIR$/application/home/controller/Server.php">
70 <provider selected="true" editor-type-id="text-editor"> 70 <provider selected="true" editor-type-id="text-editor">
71 - <state relative-caret-position="1088">  
72 - <caret line="71" column="29" selection-start-line="71" selection-start-column="29" selection-end-line="71" selection-end-column="29" /> 71 + <state relative-caret-position="436">
  72 + <caret line="139" column="25" selection-start-line="139" selection-start-column="25" selection-end-line="139" selection-end-column="25" />
73 <folding> 73 <folding>
74 <element signature="e#130#167#0#PHP" expanded="true" /> 74 <element signature="e#130#167#0#PHP" expanded="true" />
75 </folding> 75 </folding>
@@ -101,8 +101,8 @@ @@ -101,8 +101,8 @@
101 <file leaf-file-name="User.php" pinned="false" current-in-tab="false"> 101 <file leaf-file-name="User.php" pinned="false" current-in-tab="false">
102 <entry file="file://$PROJECT_DIR$/application/home/controller/User.php"> 102 <entry file="file://$PROJECT_DIR$/application/home/controller/User.php">
103 <provider selected="true" editor-type-id="text-editor"> 103 <provider selected="true" editor-type-id="text-editor">
104 - <state relative-caret-position="623">  
105 - <caret line="84" column="34" lean-forward="true" selection-start-line="84" selection-start-column="34" selection-end-line="84" selection-end-column="34" /> 104 + <state relative-caret-position="519">
  105 + <caret line="115" column="22" selection-start-line="115" selection-start-column="22" selection-end-line="115" selection-end-column="22" />
106 <folding> 106 <folding>
107 <element signature="e#128#160#0#PHP" expanded="true" /> 107 <element signature="e#128#160#0#PHP" expanded="true" />
108 </folding> 108 </folding>
@@ -110,11 +110,20 @@ @@ -110,11 +110,20 @@
110 </provider> 110 </provider>
111 </entry> 111 </entry>
112 </file> 112 </file>
113 - <file leaf-file-name="User.php" pinned="false" current-in-tab="true"> 113 + <file leaf-file-name="WechatBase.php" pinned="false" current-in-tab="false">
  114 + <entry file="file://$PROJECT_DIR$/application/common/controller/WechatBase.php">
  115 + <provider selected="true" editor-type-id="text-editor">
  116 + <state relative-caret-position="572">
  117 + <caret line="78" column="48" selection-start-line="78" selection-start-column="48" selection-end-line="78" selection-end-column="48" />
  118 + </state>
  119 + </provider>
  120 + </entry>
  121 + </file>
  122 + <file leaf-file-name="User.php" pinned="false" current-in-tab="false">
114 <entry file="file://$PROJECT_DIR$/application/home/model/User.php"> 123 <entry file="file://$PROJECT_DIR$/application/home/model/User.php">
115 <provider selected="true" editor-type-id="text-editor"> 124 <provider selected="true" editor-type-id="text-editor">
116 - <state relative-caret-position="493">  
117 - <caret line="34" column="17" selection-start-line="34" selection-start-column="17" selection-end-line="34" selection-end-column="17" /> 125 + <state relative-caret-position="459">
  126 + <caret line="32" column="14" lean-forward="true" selection-start-line="32" selection-start-column="14" selection-end-line="32" selection-end-column="14" />
118 <folding> 127 <folding>
119 <element signature="e#125#138#0#PHP" expanded="true" /> 128 <element signature="e#125#138#0#PHP" expanded="true" />
120 </folding> 129 </folding>
@@ -130,7 +139,6 @@ @@ -130,7 +139,6 @@
130 <component name="IdeDocumentHistory"> 139 <component name="IdeDocumentHistory">
131 <option name="CHANGED_PATHS"> 140 <option name="CHANGED_PATHS">
132 <list> 141 <list>
133 - <option value="$PROJECT_DIR$/application/common/controller/WechatBase.php" />  
134 <option value="$PROJECT_DIR$/application/extra/wechat.php" /> 142 <option value="$PROJECT_DIR$/application/extra/wechat.php" />
135 <option value="$PROJECT_DIR$/application/home/model/Goods.php" /> 143 <option value="$PROJECT_DIR$/application/home/model/Goods.php" />
136 <option value="$PROJECT_DIR$/application/config.php" /> 144 <option value="$PROJECT_DIR$/application/config.php" />
@@ -143,14 +151,15 @@ @@ -143,14 +151,15 @@
143 <option value="$PROJECT_DIR$/application/home/controller/Collect.php" /> 151 <option value="$PROJECT_DIR$/application/home/controller/Collect.php" />
144 <option value="$PROJECT_DIR$/application/home/controller/Upload.php" /> 152 <option value="$PROJECT_DIR$/application/home/controller/Upload.php" />
145 <option value="$PROJECT_DIR$/application/home/controller/Share.php" /> 153 <option value="$PROJECT_DIR$/application/home/controller/Share.php" />
146 - <option value="$PROJECT_DIR$/application/home/controller/Server.php" />  
147 <option value="$PROJECT_DIR$/application/home/controller/Question.php" /> 154 <option value="$PROJECT_DIR$/application/home/controller/Question.php" />
148 <option value="$PROJECT_DIR$/application/home/controller/Member.php" /> 155 <option value="$PROJECT_DIR$/application/home/controller/Member.php" />
149 <option value="$PROJECT_DIR$/.gitlab-ci.yml" /> 156 <option value="$PROJECT_DIR$/.gitlab-ci.yml" />
150 <option value="$PROJECT_DIR$/application/database.php" /> 157 <option value="$PROJECT_DIR$/application/database.php" />
151 - <option value="$PROJECT_DIR$/application/home/controller/User.php" />  
152 <option value="$PROJECT_DIR$/application/home/controller/Index.php" /> 158 <option value="$PROJECT_DIR$/application/home/controller/Index.php" />
153 <option value="$PROJECT_DIR$/application/home/model/User.php" /> 159 <option value="$PROJECT_DIR$/application/home/model/User.php" />
  160 + <option value="$PROJECT_DIR$/application/common/controller/WechatBase.php" />
  161 + <option value="$PROJECT_DIR$/application/home/controller/User.php" />
  162 + <option value="$PROJECT_DIR$/application/home/controller/Server.php" />
154 </list> 163 </list>
155 </option> 164 </option>
156 </component> 165 </component>
@@ -321,7 +330,7 @@ @@ -321,7 +330,7 @@
321 <workItem from="1571705047810" duration="3754000" /> 330 <workItem from="1571705047810" duration="3754000" />
322 <workItem from="1571790358186" duration="28939000" /> 331 <workItem from="1571790358186" duration="28939000" />
323 <workItem from="1571877780953" duration="28080000" /> 332 <workItem from="1571877780953" duration="28080000" />
324 - <workItem from="1571963886703" duration="9075000" /> 333 + <workItem from="1571963886703" duration="9921000" />
325 </task> 334 </task>
326 <task id="LOCAL-00001" summary="数据库配置"> 335 <task id="LOCAL-00001" summary="数据库配置">
327 <created>1571972429395</created> 336 <created>1571972429395</created>
@@ -358,11 +367,32 @@ @@ -358,11 +367,32 @@
358 <option name="project" value="LOCAL" /> 367 <option name="project" value="LOCAL" />
359 <updated>1571975758832</updated> 368 <updated>1571975758832</updated>
360 </task> 369 </task>
361 - <option name="localTasksCounter" value="6" /> 370 + <task id="LOCAL-00006" summary="调试授权">
  371 + <created>1571975940473</created>
  372 + <option name="number" value="00006" />
  373 + <option name="presentableId" value="LOCAL-00006" />
  374 + <option name="project" value="LOCAL" />
  375 + <updated>1571975940473</updated>
  376 + </task>
  377 + <task id="LOCAL-00007" summary="调试授权">
  378 + <created>1571975978410</created>
  379 + <option name="number" value="00007" />
  380 + <option name="presentableId" value="LOCAL-00007" />
  381 + <option name="project" value="LOCAL" />
  382 + <updated>1571975978410</updated>
  383 + </task>
  384 + <task id="LOCAL-00008" summary="调试授权">
  385 + <created>1571976018612</created>
  386 + <option name="number" value="00008" />
  387 + <option name="presentableId" value="LOCAL-00008" />
  388 + <option name="project" value="LOCAL" />
  389 + <updated>1571976018612</updated>
  390 + </task>
  391 + <option name="localTasksCounter" value="9" />
362 <servers /> 392 <servers />
363 </component> 393 </component>
364 <component name="TimeTrackingManager"> 394 <component name="TimeTrackingManager">
365 - <option name="totallyTimeSpent" value="79416000" /> 395 + <option name="totallyTimeSpent" value="80262000" />
366 </component> 396 </component>
367 <component name="ToolWindowManager"> 397 <component name="ToolWindowManager">
368 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> 398 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
@@ -537,13 +567,6 @@ @@ -537,13 +567,6 @@
537 </state> 567 </state>
538 </provider> 568 </provider>
539 </entry> 569 </entry>
540 - <entry file="file://$PROJECT_DIR$/application/common/controller/WechatBase.php">  
541 - <provider selected="true" editor-type-id="text-editor">  
542 - <state relative-caret-position="419">  
543 - <caret line="69" column="20" selection-start-line="69" selection-start-column="20" selection-end-line="69" selection-end-column="20" />  
544 - </state>  
545 - </provider>  
546 - </entry>  
547 <entry file="file://$PROJECT_DIR$/thinkphp/library/think/Request.php"> 570 <entry file="file://$PROJECT_DIR$/thinkphp/library/think/Request.php">
548 <provider selected="true" editor-type-id="text-editor"> 571 <provider selected="true" editor-type-id="text-editor">
549 <state relative-caret-position="289"> 572 <state relative-caret-position="289">
@@ -644,16 +667,6 @@ @@ -644,16 +667,6 @@
644 </state> 667 </state>
645 </provider> 668 </provider>
646 </entry> 669 </entry>
647 - <entry file="file://$PROJECT_DIR$/application/home/controller/Server.php">  
648 - <provider selected="true" editor-type-id="text-editor">  
649 - <state relative-caret-position="1088">  
650 - <caret line="71" column="29" selection-start-line="71" selection-start-column="29" selection-end-line="71" selection-end-column="29" />  
651 - <folding>  
652 - <element signature="e#130#167#0#PHP" expanded="true" />  
653 - </folding>  
654 - </state>  
655 - </provider>  
656 - </entry>  
657 <entry file="file://$PROJECT_DIR$/application/home/controller/Question.php"> 670 <entry file="file://$PROJECT_DIR$/application/home/controller/Question.php">
658 <provider selected="true" editor-type-id="text-editor"> 671 <provider selected="true" editor-type-id="text-editor">
659 <state relative-caret-position="573"> 672 <state relative-caret-position="573">
@@ -718,6 +731,23 @@ @@ -718,6 +731,23 @@
718 </state> 731 </state>
719 </provider> 732 </provider>
720 </entry> 733 </entry>
  734 + <entry file="file://$PROJECT_DIR$/application/common/controller/WechatBase.php">
  735 + <provider selected="true" editor-type-id="text-editor">
  736 + <state relative-caret-position="572">
  737 + <caret line="78" column="48" selection-start-line="78" selection-start-column="48" selection-end-line="78" selection-end-column="48" />
  738 + </state>
  739 + </provider>
  740 + </entry>
  741 + <entry file="file://$PROJECT_DIR$/application/home/model/User.php">
  742 + <provider selected="true" editor-type-id="text-editor">
  743 + <state relative-caret-position="459">
  744 + <caret line="32" column="14" lean-forward="true" selection-start-line="32" selection-start-column="14" selection-end-line="32" selection-end-column="14" />
  745 + <folding>
  746 + <element signature="e#125#138#0#PHP" expanded="true" />
  747 + </folding>
  748 + </state>
  749 + </provider>
  750 + </entry>
721 <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php"> 751 <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php">
722 <provider selected="true" editor-type-id="text-editor"> 752 <provider selected="true" editor-type-id="text-editor">
723 <state relative-caret-position="306"> 753 <state relative-caret-position="306">
@@ -730,20 +760,20 @@ @@ -730,20 +760,20 @@
730 </entry> 760 </entry>
731 <entry file="file://$PROJECT_DIR$/application/home/controller/User.php"> 761 <entry file="file://$PROJECT_DIR$/application/home/controller/User.php">
732 <provider selected="true" editor-type-id="text-editor"> 762 <provider selected="true" editor-type-id="text-editor">
733 - <state relative-caret-position="623">  
734 - <caret line="84" column="34" lean-forward="true" selection-start-line="84" selection-start-column="34" selection-end-line="84" selection-end-column="34" /> 763 + <state relative-caret-position="519">
  764 + <caret line="115" column="22" selection-start-line="115" selection-start-column="22" selection-end-line="115" selection-end-column="22" />
735 <folding> 765 <folding>
736 <element signature="e#128#160#0#PHP" expanded="true" /> 766 <element signature="e#128#160#0#PHP" expanded="true" />
737 </folding> 767 </folding>
738 </state> 768 </state>
739 </provider> 769 </provider>
740 </entry> 770 </entry>
741 - <entry file="file://$PROJECT_DIR$/application/home/model/User.php"> 771 + <entry file="file://$PROJECT_DIR$/application/home/controller/Server.php">
742 <provider selected="true" editor-type-id="text-editor"> 772 <provider selected="true" editor-type-id="text-editor">
743 - <state relative-caret-position="493">  
744 - <caret line="34" column="17" selection-start-line="34" selection-start-column="17" selection-end-line="34" selection-end-column="17" /> 773 + <state relative-caret-position="436">
  774 + <caret line="139" column="25" selection-start-line="139" selection-start-column="25" selection-end-line="139" selection-end-column="25" />
745 <folding> 775 <folding>
746 - <element signature="e#125#138#0#PHP" expanded="true" /> 776 + <element signature="e#130#167#0#PHP" expanded="true" />
747 </folding> 777 </folding>
748 </state> 778 </state>
749 </provider> 779 </provider>
@@ -130,7 +130,7 @@ class User extends WechatBase @@ -130,7 +130,7 @@ class User extends WechatBase
130 ]); 130 ]);
131 if($userId && $row){ 131 if($userId && $row){
132 $token = generate_user_token($userId); 132 $token = generate_user_token($userId);
133 - $userModel=new User(); 133 + $userModel=new \app\home\model\User();
134 $user=$userModel->getUserInfo(['user_id'=>$userId,'app_id'=>$appId]); 134 $user=$userModel->getUserInfo(['user_id'=>$userId,'app_id'=>$appId]);
135 update_current_user($user); 135 update_current_user($user);
136 session('token',$token); 136 session('token',$token);