作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改积分明细中的时间戳

@@ -2,8 +2,7 @@ @@ -2,8 +2,7 @@
2 <project version="4"> 2 <project version="4">
3 <component name="ChangeListManager"> 3 <component name="ChangeListManager">
4 <list default="true" id="0011664b-87e9-41bd-9f37-18792fb15777" name="Default" comment=""> 4 <list default="true" id="0011664b-87e9-41bd-9f37-18792fb15777" name="Default" comment="">
5 - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />  
6 - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/api/index/controller/UserController.php" afterPath="$PROJECT_DIR$/api/index/controller/UserController.php" /> 5 + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/api/index/controller/OrderController.php" afterPath="$PROJECT_DIR$/api/index/controller/OrderController.php" />
7 </list> 6 </list>
8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 7 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9 <option name="TRACKING_ENABLED" value="true" /> 8 <option name="TRACKING_ENABLED" value="true" />
@@ -25,10 +24,10 @@ @@ -25,10 +24,10 @@
25 </component> 24 </component>
26 <component name="FileEditorManager"> 25 <component name="FileEditorManager">
27 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> 26 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
28 - <file leaf-file-name="UserController.php" pinned="false" current-in-tab="true"> 27 + <file leaf-file-name="UserController.php" pinned="false" current-in-tab="false">
29 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php"> 28 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
30 <provider selected="true" editor-type-id="text-editor"> 29 <provider selected="true" editor-type-id="text-editor">
31 - <state relative-caret-position="-247"> 30 + <state relative-caret-position="-22">
32 <caret line="1022" column="7" lean-forward="true" selection-start-line="1022" selection-start-column="7" selection-end-line="1022" selection-end-column="7" /> 31 <caret line="1022" column="7" lean-forward="true" selection-start-line="1022" selection-start-column="7" selection-end-line="1022" selection-end-column="7" />
33 <folding> 32 <folding>
34 <element signature="e#366#715#0#PHP" expanded="false" /> 33 <element signature="e#366#715#0#PHP" expanded="false" />
@@ -99,6 +98,25 @@ @@ -99,6 +98,25 @@
99 </provider> 98 </provider>
100 </entry> 99 </entry>
101 </file> 100 </file>
  101 + <file leaf-file-name="OrderController.php" pinned="false" current-in-tab="true">
  102 + <entry file="file://$PROJECT_DIR$/api/index/controller/OrderController.php">
  103 + <provider selected="true" editor-type-id="text-editor">
  104 + <state relative-caret-position="578">
  105 + <caret line="156" column="24" lean-forward="false" selection-start-line="156" selection-start-column="24" selection-end-line="156" selection-end-column="24" />
  106 + <folding>
  107 + <element signature="e#330#602#0#PHP" expanded="false" />
  108 + <element signature="e#608#970#0#PHP" expanded="false" />
  109 + <element signature="e#975#1835#0#PHP" expanded="false" />
  110 + <element signature="e#2083#2781#0#PHP" expanded="false" />
  111 + <element signature="e#2787#3029#0#PHP" expanded="false" />
  112 + <element signature="e#3035#3272#0#PHP" expanded="false" />
  113 + <element signature="e#3277#3349#0#PHP" expanded="false" />
  114 + <element signature="e#3355#3834#0#PHP" expanded="false" />
  115 + </folding>
  116 + </state>
  117 + </provider>
  118 + </entry>
  119 + </file>
102 </leaf> 120 </leaf>
103 </component> 121 </component>
104 <component name="FileTemplateManagerImpl"> 122 <component name="FileTemplateManagerImpl">
@@ -164,12 +182,12 @@ @@ -164,12 +182,12 @@
164 <option value="$PROJECT_DIR$/api/index/model/ShopgoodsModel.php" /> 182 <option value="$PROJECT_DIR$/api/index/model/ShopgoodsModel.php" />
165 <option value="$PROJECT_DIR$/api/index/controller/ShopgoodsController.php" /> 183 <option value="$PROJECT_DIR$/api/index/controller/ShopgoodsController.php" />
166 <option value="$PROJECT_DIR$/api/index/controller/HomeController.php" /> 184 <option value="$PROJECT_DIR$/api/index/controller/HomeController.php" />
167 - <option value="$PROJECT_DIR$/api/index/controller/OrderController.php" />  
168 <option value="$PROJECT_DIR$/api/index/controller/PayController.php" /> 185 <option value="$PROJECT_DIR$/api/index/controller/PayController.php" />
169 <option value="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subhome/edit.html" /> 186 <option value="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subhome/edit.html" />
170 <option value="$PROJECT_DIR$/app/admin/controller/SubhomeController.php" /> 187 <option value="$PROJECT_DIR$/app/admin/controller/SubhomeController.php" />
171 <option value="$PROJECT_DIR$/app/admin/controller/ShoporderController.php" /> 188 <option value="$PROJECT_DIR$/app/admin/controller/ShoporderController.php" />
172 <option value="$PROJECT_DIR$/api/index/controller/UserController.php" /> 189 <option value="$PROJECT_DIR$/api/index/controller/UserController.php" />
  190 + <option value="$PROJECT_DIR$/api/index/controller/OrderController.php" />
173 </list> 191 </list>
174 </option> 192 </option>
175 </component> 193 </component>
@@ -188,8 +206,8 @@ @@ -188,8 +206,8 @@
188 </component> 206 </component>
189 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" /> 207 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
190 <component name="ProjectFrameBounds"> 208 <component name="ProjectFrameBounds">
191 - <option name="x" value="358" />  
192 - <option name="y" value="40" /> 209 + <option name="x" value="267" />
  210 + <option name="y" value="75" />
193 <option name="width" value="1700" /> 211 <option name="width" value="1700" />
194 <option name="height" value="1040" /> 212 <option name="height" value="1040" />
195 </component> 213 </component>
@@ -339,15 +357,15 @@ @@ -339,15 +357,15 @@
339 <workItem from="1575444399653" duration="12810000" /> 357 <workItem from="1575444399653" duration="12810000" />
340 <workItem from="1575462840839" duration="250000" /> 358 <workItem from="1575462840839" duration="250000" />
341 <workItem from="1575506248144" duration="15103000" /> 359 <workItem from="1575506248144" duration="15103000" />
342 - <workItem from="1575527294268" duration="456000" /> 360 + <workItem from="1575527294268" duration="1104000" />
343 </task> 361 </task>
344 <servers /> 362 <servers />
345 </component> 363 </component>
346 <component name="TimeTrackingManager"> 364 <component name="TimeTrackingManager">
347 - <option name="totallyTimeSpent" value="482268000" /> 365 + <option name="totallyTimeSpent" value="482916000" />
348 </component> 366 </component>
349 <component name="ToolWindowManager"> 367 <component name="ToolWindowManager">
350 - <frame x="358" y="40" width="1700" height="1040" extended-state="0" /> 368 + <frame x="267" y="75" width="1700" height="1040" extended-state="0" />
351 <editor active="true" /> 369 <editor active="true" />
352 <layout> 370 <layout>
353 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16341463" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> 371 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16341463" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
@@ -779,6 +797,7 @@ @@ -779,6 +797,7 @@
779 <provider selected="true" editor-type-id="text-editor"> 797 <provider selected="true" editor-type-id="text-editor">
780 <state relative-caret-position="325"> 798 <state relative-caret-position="325">
781 <caret line="18" column="20" lean-forward="false" selection-start-line="18" selection-start-column="20" selection-end-line="18" selection-end-column="20" /> 799 <caret line="18" column="20" lean-forward="false" selection-start-line="18" selection-start-column="20" selection-end-line="18" selection-end-column="20" />
  800 + <folding />
782 </state> 801 </state>
783 </provider> 802 </provider>
784 </entry> 803 </entry>
@@ -786,6 +805,7 @@ @@ -786,6 +805,7 @@
786 <provider selected="true" editor-type-id="text-editor"> 805 <provider selected="true" editor-type-id="text-editor">
787 <state relative-caret-position="-529"> 806 <state relative-caret-position="-529">
788 <caret line="19" column="20" lean-forward="false" selection-start-line="19" selection-start-column="20" selection-end-line="19" selection-end-column="20" /> 807 <caret line="19" column="20" lean-forward="false" selection-start-line="19" selection-start-column="20" selection-end-line="19" selection-end-column="20" />
  808 + <folding />
789 </state> 809 </state>
790 </provider> 810 </provider>
791 </entry> 811 </entry>
@@ -809,23 +829,6 @@ @@ -809,23 +829,6 @@
809 </state> 829 </state>
810 </provider> 830 </provider>
811 </entry> 831 </entry>
812 - <entry file="file://$PROJECT_DIR$/api/index/controller/OrderController.php">  
813 - <provider selected="true" editor-type-id="text-editor">  
814 - <state relative-caret-position="486">  
815 - <caret line="100" column="42" lean-forward="false" selection-start-line="100" selection-start-column="42" selection-end-line="100" selection-end-column="42" />  
816 - <folding>  
817 - <element signature="e#330#602#0#PHP" expanded="false" />  
818 - <element signature="e#608#970#0#PHP" expanded="false" />  
819 - <element signature="e#975#1835#0#PHP" expanded="false" />  
820 - <element signature="e#2787#3029#0#PHP" expanded="false" />  
821 - <element signature="e#3035#3272#0#PHP" expanded="false" />  
822 - <element signature="e#3277#3349#0#PHP" expanded="false" />  
823 - <element signature="e#3355#3834#0#PHP" expanded="false" />  
824 - <element signature="e#3839#4382#0#PHP" expanded="false" />  
825 - </folding>  
826 - </state>  
827 - </provider>  
828 - </entry>  
829 <entry file="file://$PROJECT_DIR$/app/admin/controller/HomeController.php"> 832 <entry file="file://$PROJECT_DIR$/app/admin/controller/HomeController.php">
830 <provider selected="true" editor-type-id="text-editor"> 833 <provider selected="true" editor-type-id="text-editor">
831 <state relative-caret-position="0"> 834 <state relative-caret-position="0">
@@ -863,7 +866,7 @@ @@ -863,7 +866,7 @@
863 </entry> 866 </entry>
864 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php"> 867 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
865 <provider selected="true" editor-type-id="text-editor"> 868 <provider selected="true" editor-type-id="text-editor">
866 - <state relative-caret-position="-247"> 869 + <state relative-caret-position="-22">
867 <caret line="1022" column="7" lean-forward="true" selection-start-line="1022" selection-start-column="7" selection-end-line="1022" selection-end-column="7" /> 870 <caret line="1022" column="7" lean-forward="true" selection-start-line="1022" selection-start-column="7" selection-end-line="1022" selection-end-column="7" />
868 <folding> 871 <folding>
869 <element signature="e#366#715#0#PHP" expanded="false" /> 872 <element signature="e#366#715#0#PHP" expanded="false" />
@@ -933,5 +936,22 @@ @@ -933,5 +936,22 @@
933 </state> 936 </state>
934 </provider> 937 </provider>
935 </entry> 938 </entry>
  939 + <entry file="file://$PROJECT_DIR$/api/index/controller/OrderController.php">
  940 + <provider selected="true" editor-type-id="text-editor">
  941 + <state relative-caret-position="578">
  942 + <caret line="156" column="24" lean-forward="false" selection-start-line="156" selection-start-column="24" selection-end-line="156" selection-end-column="24" />
  943 + <folding>
  944 + <element signature="e#330#602#0#PHP" expanded="false" />
  945 + <element signature="e#608#970#0#PHP" expanded="false" />
  946 + <element signature="e#975#1835#0#PHP" expanded="false" />
  947 + <element signature="e#2083#2781#0#PHP" expanded="false" />
  948 + <element signature="e#2787#3029#0#PHP" expanded="false" />
  949 + <element signature="e#3035#3272#0#PHP" expanded="false" />
  950 + <element signature="e#3277#3349#0#PHP" expanded="false" />
  951 + <element signature="e#3355#3834#0#PHP" expanded="false" />
  952 + </folding>
  953 + </state>
  954 + </provider>
  955 + </entry>
936 </component> 956 </component>
937 </project> 957 </project>
@@ -153,7 +153,8 @@ class OrderController extends RestBaseController @@ -153,7 +153,8 @@ class OrderController extends RestBaseController
153 ->where('user_id',$user_id) 153 ->where('user_id',$user_id)
154 ->field('id,user_id,type,total,create_time') 154 ->field('id,user_id,type,total,create_time')
155 ->page($page,$pageNum) 155 ->page($page,$pageNum)
156 - ->select(); 156 + ->select()
  157 + ->toArray();
157 foreach ($list as &$v){ 158 foreach ($list as &$v){
158 $v['create_time'] = date('Y-m-d H:i:s',$v['create_time']); 159 $v['create_time'] = date('Y-m-d H:i:s',$v['create_time']);
159 } 160 }