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

添加3模块的评价接口

@@ -2,8 +2,6 @@ @@ -2,8 +2,6 @@
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$/public/upload/qrcode/code_9.jpg" afterPath="$PROJECT_DIR$/public/upload/qrcode/code_9.jpg" />  
6 - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />  
7 <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/UserController.php" afterPath="$PROJECT_DIR$/api/index/controller/UserController.php" />
8 </list> 6 </list>
9 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 7 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -29,8 +27,8 @@ @@ -29,8 +27,8 @@
29 <file leaf-file-name="HomeController.php" pinned="false" current-in-tab="false"> 27 <file leaf-file-name="HomeController.php" pinned="false" current-in-tab="false">
30 <entry file="file://$PROJECT_DIR$/api/index/controller/HomeController.php"> 28 <entry file="file://$PROJECT_DIR$/api/index/controller/HomeController.php">
31 <provider selected="true" editor-type-id="text-editor"> 29 <provider selected="true" editor-type-id="text-editor">
32 - <state relative-caret-position="0">  
33 - <caret line="355" column="31" lean-forward="false" selection-start-line="355" selection-start-column="31" selection-end-line="355" selection-end-column="31" /> 30 + <state relative-caret-position="160">
  31 + <caret line="132" column="7" lean-forward="false" selection-start-line="132" selection-start-column="7" selection-end-line="132" selection-end-column="7" />
34 <folding> 32 <folding>
35 <element signature="e#329#544#0#PHP" expanded="false" /> 33 <element signature="e#329#544#0#PHP" expanded="false" />
36 <element signature="e#549#890#0#PHP" expanded="false" /> 34 <element signature="e#549#890#0#PHP" expanded="false" />
@@ -64,8 +62,8 @@ @@ -64,8 +62,8 @@
64 <file leaf-file-name="UserController.php" pinned="false" current-in-tab="true"> 62 <file leaf-file-name="UserController.php" pinned="false" current-in-tab="true">
65 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php"> 63 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
66 <provider selected="true" editor-type-id="text-editor"> 64 <provider selected="true" editor-type-id="text-editor">
67 - <state relative-caret-position="132">  
68 - <caret line="925" column="46" lean-forward="true" selection-start-line="925" selection-start-column="46" selection-end-line="925" selection-end-column="46" /> 65 + <state relative-caret-position="434">
  66 + <caret line="1071" column="7" lean-forward="true" selection-start-line="1071" selection-start-column="7" selection-end-line="1071" selection-end-column="7" />
69 <folding> 67 <folding>
70 <element signature="e#366#715#0#PHP" expanded="false" /> 68 <element signature="e#366#715#0#PHP" expanded="false" />
71 <element signature="e#720#1485#0#PHP" expanded="false" /> 69 <element signature="e#720#1485#0#PHP" expanded="false" />
@@ -111,11 +109,20 @@ @@ -111,11 +109,20 @@
111 <element signature="e#26370#26866#0#PHP" expanded="false" /> 109 <element signature="e#26370#26866#0#PHP" expanded="false" />
112 <element signature="e#26871#27978#0#PHP" expanded="false" /> 110 <element signature="e#26871#27978#0#PHP" expanded="false" />
113 <element signature="e#27984#28268#0#PHP" expanded="false" /> 111 <element signature="e#27984#28268#0#PHP" expanded="false" />
  112 + <element signature="e#28273#28909#0#PHP" expanded="false" />
114 <element signature="e#28930#29249#0#PHP" expanded="false" /> 113 <element signature="e#28930#29249#0#PHP" expanded="false" />
  114 + <element signature="e#29255#29663#0#PHP" expanded="false" />
  115 + <element signature="e#29669#30428#0#PHP" expanded="false" />
115 <element signature="e#30447#31311#0#PHP" expanded="false" /> 116 <element signature="e#30447#31311#0#PHP" expanded="false" />
116 <element signature="e#31337#31737#0#PHP" expanded="false" /> 117 <element signature="e#31337#31737#0#PHP" expanded="false" />
117 <element signature="e#31760#32333#0#PHP" expanded="false" /> 118 <element signature="e#31760#32333#0#PHP" expanded="false" />
118 <element signature="e#32356#33166#0#PHP" expanded="false" /> 119 <element signature="e#32356#33166#0#PHP" expanded="false" />
  120 + <element signature="e#33172#33771#0#PHP" expanded="false" />
  121 + <element signature="e#33776#34740#0#PHP" expanded="false" />
  122 + <element signature="e#34746#35413#0#PHP" expanded="false" />
  123 + <element signature="e#35418#36459#0#PHP" expanded="false" />
  124 + <element signature="e#36465#37122#0#PHP" expanded="false" />
  125 + <element signature="e#37127#38144#0#PHP" expanded="false" />
119 </folding> 126 </folding>
120 </state> 127 </state>
121 </provider> 128 </provider>
@@ -254,8 +261,8 @@ @@ -254,8 +261,8 @@
254 </component> 261 </component>
255 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" /> 262 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
256 <component name="ProjectFrameBounds" extendedState="1"> 263 <component name="ProjectFrameBounds" extendedState="1">
257 - <option name="x" value="237" />  
258 - <option name="y" value="74" /> 264 + <option name="x" value="284" />
  265 + <option name="y" value="22" />
259 <option name="width" value="1582" /> 266 <option name="width" value="1582" />
260 <option name="height" value="1021" /> 267 <option name="height" value="1021" />
261 </component> 268 </component>
@@ -420,18 +427,18 @@ @@ -420,18 +427,18 @@
420 <workItem from="1575419186725" duration="599000" /> 427 <workItem from="1575419186725" duration="599000" />
421 <workItem from="1575420787741" duration="2879000" /> 428 <workItem from="1575420787741" duration="2879000" />
422 <workItem from="1575431441427" duration="8414000" /> 429 <workItem from="1575431441427" duration="8414000" />
423 - <workItem from="1575444399653" duration="5919000" /> 430 + <workItem from="1575444399653" duration="7712000" />
424 </task> 431 </task>
425 <servers /> 432 <servers />
426 </component> 433 </component>
427 <component name="TimeTrackingManager"> 434 <component name="TimeTrackingManager">
428 - <option name="totallyTimeSpent" value="459568000" /> 435 + <option name="totallyTimeSpent" value="461361000" />
429 </component> 436 </component>
430 <component name="ToolWindowManager"> 437 <component name="ToolWindowManager">
431 - <frame x="237" y="74" width="1582" height="1021" extended-state="1" /> 438 + <frame x="284" y="22" width="1582" height="1021" extended-state="1" />
432 <editor active="true" /> 439 <editor active="true" />
433 <layout> 440 <layout>
434 - <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.174113" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> 441 + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.174113" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
435 <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> 442 <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
436 <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> 443 <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
437 <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32982457" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> 444 <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32982457" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
@@ -671,39 +678,6 @@ @@ -671,39 +678,6 @@
671 <state /> 678 <state />
672 </provider> 679 </provider>
673 </entry> 680 </entry>
674 - <entry file="file://$PROJECT_DIR$/api/index/controller/ShopgoodsController.php">  
675 - <provider selected="true" editor-type-id="text-editor">  
676 - <state relative-caret-position="525">  
677 - <caret line="307" column="7" lean-forward="false" selection-start-line="307" selection-start-column="7" selection-end-line="307" selection-end-column="7" />  
678 - <folding>  
679 - <element signature="e#411#604#0#PHP" expanded="false" />  
680 - <element signature="e#609#825#0#PHP" expanded="false" />  
681 - <element signature="e#831#1329#0#PHP" expanded="false" />  
682 - <element signature="e#1334#2102#0#PHP" expanded="false" />  
683 - <element signature="e#2108#2326#0#PHP" expanded="false" />  
684 - <element signature="e#2331#2539#0#PHP" expanded="false" />  
685 - <element signature="e#2545#3052#0#PHP" expanded="false" />  
686 - <element signature="e#3057#3575#0#PHP" expanded="false" />  
687 - <element signature="e#3581#4093#0#PHP" expanded="false" />  
688 - <element signature="e#4098#4661#0#PHP" expanded="false" />  
689 - <element signature="e#4667#5257#0#PHP" expanded="false" />  
690 - <element signature="e#5262#6260#0#PHP" expanded="false" />  
691 - <element signature="e#6266#6584#0#PHP" expanded="false" />  
692 - <element signature="e#6589#6965#0#PHP" expanded="false" />  
693 - <element signature="e#6971#7326#0#PHP" expanded="false" />  
694 - <element signature="e#7331#7740#0#PHP" expanded="false" />  
695 - <element signature="e#7746#8131#0#PHP" expanded="false" />  
696 - <element signature="e#8136#8807#0#PHP" expanded="false" />  
697 - <element signature="e#8813#9259#0#PHP" expanded="false" />  
698 - <element signature="e#9264#10115#0#PHP" expanded="false" />  
699 - <element signature="e#10121#10391#0#PHP" expanded="false" />  
700 - <element signature="e#10396#10872#0#PHP" expanded="false" />  
701 - <element signature="e#10878#11508#0#PHP" expanded="false" />  
702 - <element signature="e#11513#12865#0#PHP" expanded="false" />  
703 - </folding>  
704 - </state>  
705 - </provider>  
706 - </entry>  
707 <entry file="file://$PROJECT_DIR$/simplewind/cmf/lib/Storage.php"> 681 <entry file="file://$PROJECT_DIR$/simplewind/cmf/lib/Storage.php">
708 <provider selected="true" editor-type-id="text-editor"> 682 <provider selected="true" editor-type-id="text-editor">
709 <state relative-caret-position="268"> 683 <state relative-caret-position="268">
@@ -825,57 +799,6 @@ @@ -825,57 +799,6 @@
825 </state> 799 </state>
826 </provider> 800 </provider>
827 </entry> 801 </entry>
828 - <entry file="file://$PROJECT_DIR$/api/index/controller/HomeController.php">  
829 - <provider selected="true" editor-type-id="text-editor">  
830 - <state relative-caret-position="0">  
831 - <caret line="355" column="31" lean-forward="false" selection-start-line="355" selection-start-column="31" selection-end-line="355" selection-end-column="31" />  
832 - <folding>  
833 - <element signature="e#329#544#0#PHP" expanded="false" />  
834 - <element signature="e#549#890#0#PHP" expanded="false" />  
835 - <element signature="e#896#1112#0#PHP" expanded="false" />  
836 - <element signature="e#1117#1500#0#PHP" expanded="false" />  
837 - <element signature="e#1506#1726#0#PHP" expanded="false" />  
838 - <element signature="e#1731#2119#0#PHP" expanded="false" />  
839 - <element signature="e#2126#2643#0#PHP" expanded="false" />  
840 - <element signature="e#2648#3163#0#PHP" expanded="false" />  
841 - <element signature="e#3169#3697#0#PHP" expanded="false" />  
842 - <element signature="e#3702#4540#0#PHP" expanded="false" />  
843 - <element signature="e#4546#4859#0#PHP" expanded="false" />  
844 - <element signature="e#4864#5239#0#PHP" expanded="false" />  
845 - <element signature="e#5245#5597#0#PHP" expanded="false" />  
846 - <element signature="e#5602#6010#0#PHP" expanded="false" />  
847 - <element signature="e#6016#6398#0#PHP" expanded="false" />  
848 - <element signature="e#6403#7073#0#PHP" expanded="false" />  
849 - <element signature="e#7079#7522#0#PHP" expanded="false" />  
850 - <element signature="e#7527#8377#0#PHP" expanded="false" />  
851 - <element signature="e#8383#8650#0#PHP" expanded="false" />  
852 - <element signature="e#8655#9130#0#PHP" expanded="false" />  
853 - <element signature="e#9136#9635#0#PHP" expanded="false" />  
854 - <element signature="e#9640#10661#0#PHP" expanded="false" />  
855 - <element signature="e#10667#11034#0#PHP" expanded="false" />  
856 - <element signature="e#11039#11479#0#PHP" expanded="false" />  
857 - </folding>  
858 - </state>  
859 - </provider>  
860 - </entry>  
861 - <entry file="file://$PROJECT_DIR$/api/index/controller/SubscribeController.php">  
862 - <provider selected="true" editor-type-id="text-editor">  
863 - <state relative-caret-position="458">  
864 - <caret line="73" column="7" lean-forward="true" selection-start-line="73" selection-start-column="7" selection-end-line="73" selection-end-column="7" />  
865 - <folding>  
866 - <element signature="e#305#577#0#PHP" expanded="false" />  
867 - <element signature="e#583#854#0#PHP" expanded="false" />  
868 - <element signature="e#859#1113#0#PHP" expanded="false" />  
869 - <element signature="e#1119#1594#0#PHP" expanded="false" />  
870 - <element signature="e#1599#2490#0#PHP" expanded="false" />  
871 - <element signature="e#2497#2911#0#PHP" expanded="false" />  
872 - <element signature="e#2916#3386#0#PHP" expanded="false" />  
873 - <element signature="e#3393#3889#0#PHP" expanded="false" />  
874 - <element signature="e#3894#4897#0#PHP" expanded="false" />  
875 - </folding>  
876 - </state>  
877 - </provider>  
878 - </entry>  
879 <entry file="file://$PROJECT_DIR$/api/index/controller/RecycleController.php"> 802 <entry file="file://$PROJECT_DIR$/api/index/controller/RecycleController.php">
880 <provider selected="true" editor-type-id="text-editor"> 803 <provider selected="true" editor-type-id="text-editor">
881 <state relative-caret-position="759"> 804 <state relative-caret-position="759">
@@ -923,10 +846,93 @@ @@ -923,10 +846,93 @@
923 <state /> 846 <state />
924 </provider> 847 </provider>
925 </entry> 848 </entry>
  849 + <entry file="file://$PROJECT_DIR$/api/index/controller/ShopgoodsController.php">
  850 + <provider selected="true" editor-type-id="text-editor">
  851 + <state relative-caret-position="225">
  852 + <caret line="167" column="4" lean-forward="false" selection-start-line="167" selection-start-column="4" selection-end-line="211" selection-end-column="5" />
  853 + <folding>
  854 + <element signature="e#411#604#0#PHP" expanded="false" />
  855 + <element signature="e#609#825#0#PHP" expanded="false" />
  856 + <element signature="e#831#1329#0#PHP" expanded="false" />
  857 + <element signature="e#1334#2102#0#PHP" expanded="false" />
  858 + <element signature="e#2108#2326#0#PHP" expanded="false" />
  859 + <element signature="e#2331#2539#0#PHP" expanded="false" />
  860 + <element signature="e#2545#3052#0#PHP" expanded="false" />
  861 + <element signature="e#3057#3575#0#PHP" expanded="false" />
  862 + <element signature="e#3581#4093#0#PHP" expanded="false" />
  863 + <element signature="e#4098#4661#0#PHP" expanded="false" />
  864 + <element signature="e#4667#5257#0#PHP" expanded="false" />
  865 + <element signature="e#5262#6260#0#PHP" expanded="false" />
  866 + <element signature="e#6266#6584#0#PHP" expanded="false" />
  867 + <element signature="e#6589#6965#0#PHP" expanded="false" />
  868 + <element signature="e#6971#7326#0#PHP" expanded="false" />
  869 + <element signature="e#7331#7740#0#PHP" expanded="false" />
  870 + <element signature="e#7746#8131#0#PHP" expanded="false" />
  871 + <element signature="e#8136#8807#0#PHP" expanded="false" />
  872 + <element signature="e#8813#9259#0#PHP" expanded="false" />
  873 + <element signature="e#9264#10115#0#PHP" expanded="false" />
  874 + <element signature="e#10121#10391#0#PHP" expanded="false" />
  875 + <element signature="e#10396#10872#0#PHP" expanded="false" />
  876 + <element signature="e#10878#11508#0#PHP" expanded="false" />
  877 + <element signature="e#11513#12865#0#PHP" expanded="false" />
  878 + </folding>
  879 + </state>
  880 + </provider>
  881 + </entry>
  882 + <entry file="file://$PROJECT_DIR$/api/index/controller/HomeController.php">
  883 + <provider selected="true" editor-type-id="text-editor">
  884 + <state relative-caret-position="160">
  885 + <caret line="132" column="7" lean-forward="false" selection-start-line="132" selection-start-column="7" selection-end-line="132" selection-end-column="7" />
  886 + <folding>
  887 + <element signature="e#329#544#0#PHP" expanded="false" />
  888 + <element signature="e#549#890#0#PHP" expanded="false" />
  889 + <element signature="e#896#1112#0#PHP" expanded="false" />
  890 + <element signature="e#1117#1500#0#PHP" expanded="false" />
  891 + <element signature="e#1506#1726#0#PHP" expanded="false" />
  892 + <element signature="e#1731#2119#0#PHP" expanded="false" />
  893 + <element signature="e#2126#2643#0#PHP" expanded="false" />
  894 + <element signature="e#2648#3163#0#PHP" expanded="false" />
  895 + <element signature="e#3169#3697#0#PHP" expanded="false" />
  896 + <element signature="e#3702#4540#0#PHP" expanded="false" />
  897 + <element signature="e#4546#4859#0#PHP" expanded="false" />
  898 + <element signature="e#4864#5239#0#PHP" expanded="false" />
  899 + <element signature="e#5245#5597#0#PHP" expanded="false" />
  900 + <element signature="e#5602#6010#0#PHP" expanded="false" />
  901 + <element signature="e#6016#6398#0#PHP" expanded="false" />
  902 + <element signature="e#6403#7073#0#PHP" expanded="false" />
  903 + <element signature="e#7079#7522#0#PHP" expanded="false" />
  904 + <element signature="e#7527#8377#0#PHP" expanded="false" />
  905 + <element signature="e#8383#8650#0#PHP" expanded="false" />
  906 + <element signature="e#8655#9130#0#PHP" expanded="false" />
  907 + <element signature="e#9136#9635#0#PHP" expanded="false" />
  908 + <element signature="e#9640#10661#0#PHP" expanded="false" />
  909 + <element signature="e#10667#11034#0#PHP" expanded="false" />
  910 + <element signature="e#11039#11479#0#PHP" expanded="false" />
  911 + </folding>
  912 + </state>
  913 + </provider>
  914 + </entry>
  915 + <entry file="file://$PROJECT_DIR$/api/index/controller/SubscribeController.php">
  916 + <provider selected="true" editor-type-id="text-editor">
  917 + <state relative-caret-position="175">
  918 + <caret line="156" column="8" lean-forward="false" selection-start-line="156" selection-start-column="8" selection-end-line="183" selection-end-column="34" />
  919 + <folding>
  920 + <element signature="e#305#577#0#PHP" expanded="false" />
  921 + <element signature="e#583#854#0#PHP" expanded="false" />
  922 + <element signature="e#859#1113#0#PHP" expanded="false" />
  923 + <element signature="e#1119#1594#0#PHP" expanded="false" />
  924 + <element signature="e#1599#2490#0#PHP" expanded="false" />
  925 + <element signature="e#2497#2911#0#PHP" expanded="false" />
  926 + <element signature="e#2916#3386#0#PHP" expanded="false" />
  927 + <element signature="e#3393#3889#0#PHP" expanded="false" />
  928 + </folding>
  929 + </state>
  930 + </provider>
  931 + </entry>
926 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php"> 932 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
927 <provider selected="true" editor-type-id="text-editor"> 933 <provider selected="true" editor-type-id="text-editor">
928 - <state relative-caret-position="132">  
929 - <caret line="925" column="46" lean-forward="true" selection-start-line="925" selection-start-column="46" selection-end-line="925" selection-end-column="46" /> 934 + <state relative-caret-position="434">
  935 + <caret line="1071" column="7" lean-forward="true" selection-start-line="1071" selection-start-column="7" selection-end-line="1071" selection-end-column="7" />
930 <folding> 936 <folding>
931 <element signature="e#366#715#0#PHP" expanded="false" /> 937 <element signature="e#366#715#0#PHP" expanded="false" />
932 <element signature="e#720#1485#0#PHP" expanded="false" /> 938 <element signature="e#720#1485#0#PHP" expanded="false" />
@@ -972,11 +978,20 @@ @@ -972,11 +978,20 @@
972 <element signature="e#26370#26866#0#PHP" expanded="false" /> 978 <element signature="e#26370#26866#0#PHP" expanded="false" />
973 <element signature="e#26871#27978#0#PHP" expanded="false" /> 979 <element signature="e#26871#27978#0#PHP" expanded="false" />
974 <element signature="e#27984#28268#0#PHP" expanded="false" /> 980 <element signature="e#27984#28268#0#PHP" expanded="false" />
  981 + <element signature="e#28273#28909#0#PHP" expanded="false" />
975 <element signature="e#28930#29249#0#PHP" expanded="false" /> 982 <element signature="e#28930#29249#0#PHP" expanded="false" />
  983 + <element signature="e#29255#29663#0#PHP" expanded="false" />
  984 + <element signature="e#29669#30428#0#PHP" expanded="false" />
976 <element signature="e#30447#31311#0#PHP" expanded="false" /> 985 <element signature="e#30447#31311#0#PHP" expanded="false" />
977 <element signature="e#31337#31737#0#PHP" expanded="false" /> 986 <element signature="e#31337#31737#0#PHP" expanded="false" />
978 <element signature="e#31760#32333#0#PHP" expanded="false" /> 987 <element signature="e#31760#32333#0#PHP" expanded="false" />
979 <element signature="e#32356#33166#0#PHP" expanded="false" /> 988 <element signature="e#32356#33166#0#PHP" expanded="false" />
  989 + <element signature="e#33172#33771#0#PHP" expanded="false" />
  990 + <element signature="e#33776#34740#0#PHP" expanded="false" />
  991 + <element signature="e#34746#35413#0#PHP" expanded="false" />
  992 + <element signature="e#35418#36459#0#PHP" expanded="false" />
  993 + <element signature="e#36465#37122#0#PHP" expanded="false" />
  994 + <element signature="e#37127#38144#0#PHP" expanded="false" />
980 </folding> 995 </folding>
981 </state> 996 </state>
982 </provider> 997 </provider>
@@ -1052,4 +1052,159 @@ class UserController extends RestBaseController @@ -1052,4 +1052,159 @@ class UserController extends RestBaseController
1052 curl_close($curl); 1052 curl_close($curl);
1053 return $result; 1053 return $result;
1054 } 1054 }
  1055 +
  1056 + /**
  1057 + * @title 添加回收订单评价
  1058 + * @description
  1059 + * @author GuoSheng
  1060 + * @url /index/User/comment
  1061 + * @method GET
  1062 + *
  1063 + * @header name:XX-Token require:1 default: desc:token
  1064 + *
  1065 + * @param name:recycleorder_id type:int require:1 other: desc:订单id
  1066 + * @param name:speed type:int require:1 other: desc:上门速度
  1067 + * @param name:service type:int require:1 other: desc:服务态度
  1068 + * @param name:recycle type:int require:1 other: desc:回收体验
  1069 + * @param name:content type:string require:1 other: desc:评价内容
  1070 + * @param name:thumbnail type:string require:1 other: desc:图片
  1071 + *
  1072 + */
  1073 + public function comment()
  1074 + {
  1075 + $user_id = $this->getUserId();
  1076 + $param = $this->request->param();
  1077 + $param['user_id'] = $user_id;
  1078 + $param['create_time'] = time();
  1079 + $validate = new Validate([
  1080 + 'recycleorder_id' => 'require',
  1081 + 'speed' => 'require',
  1082 + 'service'=>'require',
  1083 + 'recycle'=>'require',
  1084 + 'content'=>'require'
  1085 + ]);
  1086 + $validate->message([
  1087 + 'recycle_id'=>'订单ID不能为空',
  1088 + 'speed'=>'上门速度不能为空',
  1089 + 'service'=>'服务态度不能为空',
  1090 + 'recycle'=>'回收体验不能为空',
  1091 + 'content'=>'评价不能为空'
  1092 + ]);
  1093 + if (!$validate->check($param)) {
  1094 + $this->error(['code'=>40005,'msg'=>$validate->getError()]);
  1095 + }
  1096 + $data = Db::name('recyclecomment')
  1097 + ->insert($param);
  1098 + if(empty($data)){
  1099 + $this->error(['code'=>40006,'msg'=>'sql执行失败']);
  1100 + }
  1101 + $this->success('SUCCESS');
  1102 +
  1103 + }
  1104 +
  1105 + /**
  1106 + * @title 添加商城订单评价
  1107 + * @description
  1108 + * @author GuoSheng
  1109 + * @url /index/User/shopcomment
  1110 + * @method GET
  1111 + *
  1112 + * @header name:XX-Token require:1 default: desc:token
  1113 + *
  1114 + * @param name:shoporder_id type:int require:1 other: desc:订单id
  1115 + * @param name:shopgood_id type:int require:1 other: desc:商品ID
  1116 + * @param name:speed type:int require:1 other: desc:上门速度
  1117 + * @param name:service type:int require:1 other: desc:服务态度
  1118 + * @param name:recycle type:int require:1 other: desc:回收体验
  1119 + * @param name:content type:string require:1 other: desc:评价内容
  1120 + * @param name:thumbnail type:string require:1 other: desc:图片
  1121 + *
  1122 + */
  1123 + public function shopcomment()
  1124 + {
  1125 + $user_id = $this->getUserId();
  1126 + $param = $this->request->param();
  1127 + $param['user_id'] = $user_id;
  1128 + $param['create_time'] = time();
  1129 + $validate = new Validate([
  1130 + 'shoporder_id' => 'require',
  1131 + 'shopgood_id'=>'require',
  1132 + 'speed' => 'require',
  1133 + 'service'=>'require',
  1134 + 'recycle'=>'require',
  1135 + 'content'=>'require'
  1136 + ]);
  1137 + $validate->message([
  1138 + 'shoporder_id'=>'订单ID不能为空',
  1139 + 'shopgood_id'=>'商品ID不能为空',
  1140 + 'speed'=>'上门速度不能为空',
  1141 + 'service'=>'服务态度不能为空',
  1142 + 'recycle'=>'回收体验不能为空',
  1143 + 'content'=>'评价不能为空'
  1144 + ]);
  1145 + if (!$validate->check($param)) {
  1146 + $this->error(['code'=>40005,'msg'=>$validate->getError()]);
  1147 + }
  1148 + $data = Db::name('shopcomment')
  1149 + ->insert($param);
  1150 + if(empty($data)){
  1151 + $this->error(['code'=>40006,'msg'=>'sql执行失败']);
  1152 + }
  1153 + $this->success('SUCCESS');
  1154 +
  1155 + }
  1156 +
  1157 + /**
  1158 + * @title 添加家政预约订单评价
  1159 + * @description
  1160 + * @author GuoSheng
  1161 + * @url /index/User/homecomment
  1162 + * @method GET
  1163 + *
  1164 + * @header name:XX-Token require:1 default: desc:token
  1165 + *
  1166 + * @param name:num type:int require:1 other: desc:订单号
  1167 + * @param name:home_id type:int require:1 other: desc:家政公司ID
  1168 + * @param name:speed type:int require:1 other: desc:服务质量
  1169 + * @param name:service type:int require:1 other: desc:服务态度
  1170 + * @param name:recycle type:int require:1 other: desc:服务体验
  1171 + * @param name:content type:string require:1 other: desc:评价内容
  1172 + * @param name:thumbnail type:string require:1 other: desc:图片
  1173 + *
  1174 + */
  1175 + public function homecomment()
  1176 + {
  1177 + $user_id = $this->getUserId();
  1178 + $param = $this->request->param();
  1179 + $param['user_id'] = $user_id;
  1180 + $param['create_time'] = time();
  1181 + $validate = new Validate([
  1182 + 'num' => 'require',
  1183 + 'home_id'=>'require',
  1184 + 'speed' => 'require',
  1185 + 'service'=>'require',
  1186 + 'recycle'=>'require',
  1187 + 'content'=>'require'
  1188 + ]);
  1189 + $validate->message([
  1190 + 'num'=>'订单ID不能为空',
  1191 + 'home_id'=>'家政公司ID不能为空',
  1192 + 'speed'=>'服务质量不能为空',
  1193 + 'service'=>'服务态度不能为空',
  1194 + 'recycle'=>'服务体验不能为空',
  1195 + 'content'=>'评价不能为空'
  1196 + ]);
  1197 + if (!$validate->check($param)) {
  1198 + $this->error(['code'=>40005,'msg'=>$validate->getError()]);
  1199 + }
  1200 + $data = Db::name('homecomment')
  1201 + ->insert($param);
  1202 + if(empty($data)){
  1203 + $this->error(['code'=>40006,'msg'=>'sql执行失败']);
  1204 + }
  1205 + $this->success('SUCCESS');
  1206 +
  1207 + }
  1208 +
  1209 +
1055 } 1210 }