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

微信支付

@@ -5,7 +5,6 @@ @@ -5,7 +5,6 @@
5 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> 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/OrderController.php" afterPath="$PROJECT_DIR$/api/index/controller/OrderController.php" /> 6 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/api/index/controller/OrderController.php" afterPath="$PROJECT_DIR$/api/index/controller/OrderController.php" />
7 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/api/index/controller/PayController.php" afterPath="$PROJECT_DIR$/api/index/controller/PayController.php" /> 7 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/api/index/controller/PayController.php" afterPath="$PROJECT_DIR$/api/index/controller/PayController.php" />
8 - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/api/index/controller/UserController.php" afterPath="$PROJECT_DIR$/api/index/controller/UserController.php" />  
9 </list> 8 </list>
10 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 9 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11 <option name="TRACKING_ENABLED" value="true" /> 10 <option name="TRACKING_ENABLED" value="true" />
@@ -27,99 +26,36 @@ @@ -27,99 +26,36 @@
27 </component> 26 </component>
28 <component name="FileEditorManager"> 27 <component name="FileEditorManager">
29 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> 28 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
30 - <file leaf-file-name="UserController.php" pinned="false" current-in-tab="false">  
31 - <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">  
32 - <provider selected="true" editor-type-id="text-editor">  
33 - <state relative-caret-position="66">  
34 - <caret line="99" column="7" lean-forward="true" selection-start-line="99" selection-start-column="7" selection-end-line="99" selection-end-column="7" />  
35 - <folding>  
36 - <element signature="e#366#715#0#PHP" expanded="false" />  
37 - <element signature="e#720#1532#0#PHP" expanded="false" />  
38 - <element signature="e#1538#1796#0#PHP" expanded="false" />  
39 - <element signature="e#1801#2184#0#PHP" expanded="false" />  
40 - <element signature="e#2190#2419#0#PHP" expanded="false" />  
41 - <element signature="e#2424#4059#0#PHP" expanded="false" />  
42 - <element signature="e#4065#4305#0#PHP" expanded="false" />  
43 - <element signature="e#4310#4545#0#PHP" expanded="false" />  
44 - <element signature="e#4551#4898#0#PHP" expanded="false" />  
45 - <element signature="e#4903#5349#0#PHP" expanded="false" />  
46 - <element signature="e#5355#5615#0#PHP" expanded="false" />  
47 - <element signature="e#5620#5821#0#PHP" expanded="false" />  
48 - <element signature="e#5827#6089#0#PHP" expanded="false" />  
49 - <element signature="e#6094#6299#0#PHP" expanded="false" />  
50 - <element signature="e#6305#6784#0#PHP" expanded="false" />  
51 - <element signature="e#6789#8908#0#PHP" expanded="false" />  
52 - <element signature="e#8931#9462#0#PHP" expanded="false" />  
53 - <element signature="e#9468#9748#0#PHP" expanded="false" />  
54 - <element signature="e#9753#10145#0#PHP" expanded="false" />  
55 - <element signature="e#10151#10435#0#PHP" expanded="false" />  
56 - <element signature="e#10440#11479#0#PHP" expanded="false" />  
57 - <element signature="e#11485#11773#0#PHP" expanded="false" />  
58 - <element signature="e#11778#12813#0#PHP" expanded="false" />  
59 - <element signature="e#12819#13400#0#PHP" expanded="false" />  
60 - <element signature="e#13405#14793#0#PHP" expanded="false" />  
61 - <element signature="e#14799#15255#0#PHP" expanded="false" />  
62 - <element signature="e#15260#17223#0#PHP" expanded="false" />  
63 - <element signature="e#17246#17601#0#PHP" expanded="false" />  
64 - <element signature="e#17607#18320#0#PHP" expanded="false" />  
65 - <element signature="e#18325#19782#0#PHP" expanded="false" />  
66 - <element signature="e#19788#20249#0#PHP" expanded="false" />  
67 - <element signature="e#20254#23276#0#PHP" expanded="false" />  
68 - <element signature="e#23282#23891#0#PHP" expanded="false" />  
69 - <element signature="e#23896#25181#0#PHP" expanded="false" />  
70 - <element signature="e#25187#25544#0#PHP" expanded="false" />  
71 - <element signature="e#25549#26430#0#PHP" expanded="false" />  
72 - <element signature="e#26436#26788#0#PHP" expanded="false" />  
73 - <element signature="e#26793#27871#0#PHP" expanded="false" />  
74 - <element signature="e#27877#28232#0#PHP" expanded="false" />  
75 - <element signature="e#28237#29331#0#PHP" expanded="false" />  
76 - <element signature="e#29337#29761#0#PHP" expanded="false" />  
77 - <element signature="e#29766#30377#0#PHP" expanded="false" />  
78 - <element signature="e#30383#30879#0#PHP" expanded="false" />  
79 - <element signature="e#30884#32581#0#PHP" expanded="false" />  
80 - <element signature="e#32587#32871#0#PHP" expanded="false" />  
81 - <element signature="e#32876#33512#0#PHP" expanded="false" />  
82 - <element signature="e#33533#33852#0#PHP" expanded="false" />  
83 - <element signature="e#33858#34266#0#PHP" expanded="false" />  
84 - <element signature="e#34272#35031#0#PHP" expanded="false" />  
85 - <element signature="e#35050#35914#0#PHP" expanded="false" />  
86 - <element signature="e#35940#36340#0#PHP" expanded="false" />  
87 - <element signature="e#36363#36936#0#PHP" expanded="false" />  
88 - <element signature="e#36959#37769#0#PHP" expanded="false" />  
89 - <element signature="e#37775#38374#0#PHP" expanded="false" />  
90 - <element signature="e#38379#39343#0#PHP" expanded="false" />  
91 - <element signature="e#39349#40016#0#PHP" expanded="false" />  
92 - <element signature="e#40021#41062#0#PHP" expanded="false" />  
93 - <element signature="e#41068#41731#0#PHP" expanded="false" />  
94 - <element signature="e#41736#42763#0#PHP" expanded="false" />  
95 - <element signature="e#42770#43201#0#PHP" expanded="false" />  
96 - <element signature="e#43206#43784#0#PHP" expanded="false" />  
97 - <element signature="e#43790#44219#0#PHP" expanded="false" />  
98 - <element signature="e#44224#44826#0#PHP" expanded="false" />  
99 - <element signature="e#44832#45259#0#PHP" expanded="false" />  
100 - <element signature="e#45264#45830#0#PHP" expanded="false" />  
101 - </folding>  
102 - </state>  
103 - </provider>  
104 - </entry>  
105 - </file>  
106 <file leaf-file-name="OrderController.php" pinned="false" current-in-tab="true"> 29 <file leaf-file-name="OrderController.php" pinned="false" current-in-tab="true">
107 <entry file="file://$PROJECT_DIR$/api/index/controller/OrderController.php"> 30 <entry file="file://$PROJECT_DIR$/api/index/controller/OrderController.php">
108 <provider selected="true" editor-type-id="text-editor"> 31 <provider selected="true" editor-type-id="text-editor">
109 - <state relative-caret-position="480">  
110 - <caret line="91" column="26" lean-forward="false" selection-start-line="91" selection-start-column="26" selection-end-line="91" selection-end-column="26" /> 32 + <state relative-caret-position="650">
  33 + <caret line="110" column="40" lean-forward="true" selection-start-line="110" selection-start-column="40" selection-end-line="110" selection-end-column="40" />
111 <folding> 34 <folding>
112 <element signature="e#131#162#0#PHP" expanded="true" /> 35 <element signature="e#131#162#0#PHP" expanded="true" />
113 <element signature="e#336#608#0#PHP" expanded="false" /> 36 <element signature="e#336#608#0#PHP" expanded="false" />
114 <element signature="e#614#976#0#PHP" expanded="false" /> 37 <element signature="e#614#976#0#PHP" expanded="false" />
115 <element signature="e#981#2020#0#PHP" expanded="false" /> 38 <element signature="e#981#2020#0#PHP" expanded="false" />
116 <element signature="e#2026#2263#0#PHP" expanded="false" /> 39 <element signature="e#2026#2263#0#PHP" expanded="false" />
117 - <element signature="e#2268#2965#0#PHP" expanded="false" />  
118 - <element signature="e#2971#3213#0#PHP" expanded="false" />  
119 - <element signature="e#3219#3557#0#PHP" expanded="false" />  
120 - <element signature="e#3562#4434#0#PHP" expanded="false" />  
121 - <element signature="e#4440#4919#0#PHP" expanded="false" />  
122 - <element signature="e#4924#5491#0#PHP" expanded="false" /> 40 + <element signature="e#3069#3407#0#PHP" expanded="false" />
  41 + <element signature="e#3412#4284#0#PHP" expanded="false" />
  42 + <element signature="e#4290#4769#0#PHP" expanded="false" />
  43 + <element signature="e#4774#5341#0#PHP" expanded="false" />
  44 + <element signature="e#5347#5589#0#PHP" expanded="false" />
  45 + </folding>
  46 + </state>
  47 + </provider>
  48 + </entry>
  49 + </file>
  50 + <file leaf-file-name="WeixinPay.php" pinned="false" current-in-tab="false">
  51 + <entry file="file://$PROJECT_DIR$/simplewind/extend/wxapp/pay/WeixinPay.php">
  52 + <provider selected="true" editor-type-id="text-editor">
  53 + <state relative-caret-position="-1770">
  54 + <caret line="28" column="37" lean-forward="true" selection-start-line="28" selection-start-column="37" selection-end-line="28" selection-end-column="37" />
  55 + <folding>
  56 + <element signature="e#4049#4323#0#PHP" expanded="false" />
  57 + <element signature="e#4342#4805#0#PHP" expanded="false" />
  58 + <element signature="e#4835#5267#0#PHP" expanded="false" />
123 </folding> 59 </folding>
124 </state> 60 </state>
125 </provider> 61 </provider>
@@ -128,14 +64,12 @@ @@ -128,14 +64,12 @@
128 <file leaf-file-name="PayController.php" pinned="false" current-in-tab="false"> 64 <file leaf-file-name="PayController.php" pinned="false" current-in-tab="false">
129 <entry file="file://$PROJECT_DIR$/api/index/controller/PayController.php"> 65 <entry file="file://$PROJECT_DIR$/api/index/controller/PayController.php">
130 <provider selected="true" editor-type-id="text-editor"> 66 <provider selected="true" editor-type-id="text-editor">
131 - <state relative-caret-position="305">  
132 - <caret line="60" column="0" lean-forward="true" selection-start-line="60" selection-start-column="0" selection-end-line="60" selection-end-column="0" /> 67 + <state relative-caret-position="-200">
  68 + <caret line="4" column="4" lean-forward="false" selection-start-line="4" selection-start-column="4" selection-end-line="4" selection-end-column="4" />
133 <folding> 69 <folding>
134 <element signature="e#324#855#0#PHP" expanded="false" /> 70 <element signature="e#324#855#0#PHP" expanded="false" />
135 <element signature="e#861#925#0#PHP" expanded="false" /> 71 <element signature="e#861#925#0#PHP" expanded="false" />
136 - <element signature="e#930#1763#0#PHP" expanded="false" />  
137 <element signature="e#1769#1850#0#PHP" expanded="false" /> 72 <element signature="e#1769#1850#0#PHP" expanded="false" />
138 - <element signature="e#1855#3907#0#PHP" expanded="false" />  
139 <element signature="e#3914#3937#0#PHP" expanded="false" /> 73 <element signature="e#3914#3937#0#PHP" expanded="false" />
140 <element signature="e#3942#4201#0#PHP" expanded="false" /> 74 <element signature="e#3942#4201#0#PHP" expanded="false" />
141 <element signature="e#4208#4257#0#PHP" expanded="false" /> 75 <element signature="e#4208#4257#0#PHP" expanded="false" />
@@ -215,9 +149,9 @@ @@ -215,9 +149,9 @@
215 <option value="$PROJECT_DIR$/app/admin/controller/PointController.php" /> 149 <option value="$PROJECT_DIR$/app/admin/controller/PointController.php" />
216 <option value="$PROJECT_DIR$/simplewind/cmf/common.php" /> 150 <option value="$PROJECT_DIR$/simplewind/cmf/common.php" />
217 <option value="$PROJECT_DIR$/simplewind/extend/wxapp/pay/WeixinPay.php" /> 151 <option value="$PROJECT_DIR$/simplewind/extend/wxapp/pay/WeixinPay.php" />
218 - <option value="$PROJECT_DIR$/api/index/controller/OrderController.php" />  
219 - <option value="$PROJECT_DIR$/api/index/controller/PayController.php" />  
220 <option value="$PROJECT_DIR$/api/index/controller/UserController.php" /> 152 <option value="$PROJECT_DIR$/api/index/controller/UserController.php" />
  153 + <option value="$PROJECT_DIR$/api/index/controller/PayController.php" />
  154 + <option value="$PROJECT_DIR$/api/index/controller/OrderController.php" />
221 </list> 155 </list>
222 </option> 156 </option>
223 </component> 157 </component>
@@ -236,8 +170,8 @@ @@ -236,8 +170,8 @@
236 </component> 170 </component>
237 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" /> 171 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
238 <component name="ProjectFrameBounds" extendedState="1"> 172 <component name="ProjectFrameBounds" extendedState="1">
239 - <option name="x" value="117" />  
240 - <option name="y" value="124" /> 173 + <option name="x" value="52" />
  174 + <option name="y" value="31" />
241 <option name="width" value="1814" /> 175 <option name="width" value="1814" />
242 <option name="height" value="1042" /> 176 <option name="height" value="1042" />
243 </component> 177 </component>
@@ -414,15 +348,15 @@ @@ -414,15 +348,15 @@
414 <workItem from="1575506248144" duration="15103000" /> 348 <workItem from="1575506248144" duration="15103000" />
415 <workItem from="1575527294268" duration="10705000" /> 349 <workItem from="1575527294268" duration="10705000" />
416 <workItem from="1575543830603" duration="2980000" /> 350 <workItem from="1575543830603" duration="2980000" />
417 - <workItem from="1575592067577" duration="6259000" /> 351 + <workItem from="1575592067577" duration="7358000" />
418 </task> 352 </task>
419 <servers /> 353 <servers />
420 </component> 354 </component>
421 <component name="TimeTrackingManager"> 355 <component name="TimeTrackingManager">
422 - <option name="totallyTimeSpent" value="501756000" /> 356 + <option name="totallyTimeSpent" value="502855000" />
423 </component> 357 </component>
424 <component name="ToolWindowManager"> 358 <component name="ToolWindowManager">
425 - <frame x="117" y="124" width="1814" height="1042" extended-state="1" /> 359 + <frame x="52" y="31" width="1814" height="1042" extended-state="1" />
426 <editor active="true" /> 360 <editor active="true" />
427 <layout> 361 <layout>
428 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15621437" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> 362 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15621437" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
@@ -476,13 +410,6 @@ @@ -476,13 +410,6 @@
476 <watches-manager /> 410 <watches-manager />
477 </component> 411 </component>
478 <component name="editorHistoryManager"> 412 <component name="editorHistoryManager">
479 - <entry file="file://$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/rtype/edit.html">  
480 - <provider selected="true" editor-type-id="text-editor">  
481 - <state relative-caret-position="0">  
482 - <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />  
483 - </state>  
484 - </provider>  
485 - </entry>  
486 <entry file="file://$PROJECT_DIR$/app/admin/controller/ShoptypeController.php"> 413 <entry file="file://$PROJECT_DIR$/app/admin/controller/ShoptypeController.php">
487 <provider selected="true" editor-type-id="text-editor"> 414 <provider selected="true" editor-type-id="text-editor">
488 <state relative-caret-position="148"> 415 <state relative-caret-position="148">
@@ -874,14 +801,6 @@ @@ -874,14 +801,6 @@
874 </state> 801 </state>
875 </provider> 802 </provider>
876 </entry> 803 </entry>
877 - <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php">  
878 - <provider selected="true" editor-type-id="text-editor">  
879 - <state relative-caret-position="802">  
880 - <caret line="1850" column="1" lean-forward="false" selection-start-line="1850" selection-start-column="1" selection-end-line="1850" selection-end-column="1" />  
881 - <folding />  
882 - </state>  
883 - </provider>  
884 - </entry>  
885 <entry file="file://$PROJECT_DIR$/simplewind/vendor/overtrue/wechat/src/Foundation/Application.php"> 804 <entry file="file://$PROJECT_DIR$/simplewind/vendor/overtrue/wechat/src/Foundation/Application.php">
886 <provider selected="true" editor-type-id="text-editor"> 805 <provider selected="true" editor-type-id="text-editor">
887 <state relative-caret-position="291"> 806 <state relative-caret-position="291">
@@ -890,36 +809,30 @@ @@ -890,36 +809,30 @@
890 </state> 809 </state>
891 </provider> 810 </provider>
892 </entry> 811 </entry>
893 - <entry file="file://$PROJECT_DIR$/simplewind/extend/wxapp/pay/WeixinPay.php"> 812 + <entry file="file://$PROJECT_DIR$/simplewind/vendor/overtrue/wechat/src/Payment/Order.php">
894 <provider selected="true" editor-type-id="text-editor"> 813 <provider selected="true" editor-type-id="text-editor">
895 - <state relative-caret-position="97">  
896 - <caret line="104" column="21" lean-forward="false" selection-start-line="104" selection-start-column="21" selection-end-line="104" selection-end-column="21" />  
897 - <folding>  
898 - <element signature="e#4049#4323#0#PHP" expanded="false" />  
899 - <element signature="e#4342#4805#0#PHP" expanded="false" />  
900 - <element signature="e#4835#5267#0#PHP" expanded="false" />  
901 - </folding> 814 + <state relative-caret-position="679">
  815 + <caret line="78" column="20" lean-forward="false" selection-start-line="78" selection-start-column="20" selection-end-line="78" selection-end-column="20" />
  816 + <folding />
902 </state> 817 </state>
903 </provider> 818 </provider>
904 </entry> 819 </entry>
905 - <entry file="file://$PROJECT_DIR$/simplewind/vendor/overtrue/wechat/src/Payment/Order.php"> 820 + <entry file="file://$PROJECT_DIR$/simplewind/vendor/overtrue/wechat/src/Payment/API.php">
906 <provider selected="true" editor-type-id="text-editor"> 821 <provider selected="true" editor-type-id="text-editor">
907 - <state relative-caret-position="679">  
908 - <caret line="78" column="20" lean-forward="false" selection-start-line="78" selection-start-column="20" selection-end-line="78" selection-end-column="20" /> 822 + <state relative-caret-position="293">
  823 + <caret line="124" column="20" lean-forward="false" selection-start-line="124" selection-start-column="20" selection-end-line="124" selection-end-column="20" />
909 <folding /> 824 <folding />
910 </state> 825 </state>
911 </provider> 826 </provider>
912 </entry> 827 </entry>
913 <entry file="file://$PROJECT_DIR$/api/index/controller/PayController.php"> 828 <entry file="file://$PROJECT_DIR$/api/index/controller/PayController.php">
914 <provider selected="true" editor-type-id="text-editor"> 829 <provider selected="true" editor-type-id="text-editor">
915 - <state relative-caret-position="305">  
916 - <caret line="60" column="0" lean-forward="true" selection-start-line="60" selection-start-column="0" selection-end-line="60" selection-end-column="0" /> 830 + <state relative-caret-position="-200">
  831 + <caret line="4" column="4" lean-forward="false" selection-start-line="4" selection-start-column="4" selection-end-line="4" selection-end-column="4" />
917 <folding> 832 <folding>
918 <element signature="e#324#855#0#PHP" expanded="false" /> 833 <element signature="e#324#855#0#PHP" expanded="false" />
919 <element signature="e#861#925#0#PHP" expanded="false" /> 834 <element signature="e#861#925#0#PHP" expanded="false" />
920 - <element signature="e#930#1763#0#PHP" expanded="false" />  
921 <element signature="e#1769#1850#0#PHP" expanded="false" /> 835 <element signature="e#1769#1850#0#PHP" expanded="false" />
922 - <element signature="e#1855#3907#0#PHP" expanded="false" />  
923 <element signature="e#3914#3937#0#PHP" expanded="false" /> 836 <element signature="e#3914#3937#0#PHP" expanded="false" />
924 <element signature="e#3942#4201#0#PHP" expanded="false" /> 837 <element signature="e#3942#4201#0#PHP" expanded="false" />
925 <element signature="e#4208#4257#0#PHP" expanded="false" /> 838 <element signature="e#4208#4257#0#PHP" expanded="false" />
@@ -932,7 +845,7 @@ @@ -932,7 +845,7 @@
932 </entry> 845 </entry>
933 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php"> 846 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
934 <provider selected="true" editor-type-id="text-editor"> 847 <provider selected="true" editor-type-id="text-editor">
935 - <state relative-caret-position="66"> 848 + <state relative-caret-position="500">
936 <caret line="99" column="7" lean-forward="true" selection-start-line="99" selection-start-column="7" selection-end-line="99" selection-end-column="7" /> 849 <caret line="99" column="7" lean-forward="true" selection-start-line="99" selection-start-column="7" selection-end-line="99" selection-end-column="7" />
937 <folding> 850 <folding>
938 <element signature="e#366#715#0#PHP" expanded="false" /> 851 <element signature="e#366#715#0#PHP" expanded="false" />
@@ -1004,22 +917,41 @@ @@ -1004,22 +917,41 @@
1004 </state> 917 </state>
1005 </provider> 918 </provider>
1006 </entry> 919 </entry>
  920 + <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php">
  921 + <provider selected="true" editor-type-id="text-editor">
  922 + <state relative-caret-position="540">
  923 + <caret line="1844" column="9" lean-forward="false" selection-start-line="1844" selection-start-column="9" selection-end-line="1844" selection-end-column="9" />
  924 + <folding />
  925 + </state>
  926 + </provider>
  927 + </entry>
  928 + <entry file="file://$PROJECT_DIR$/simplewind/extend/wxapp/pay/WeixinPay.php">
  929 + <provider selected="true" editor-type-id="text-editor">
  930 + <state relative-caret-position="-1770">
  931 + <caret line="28" column="37" lean-forward="true" selection-start-line="28" selection-start-column="37" selection-end-line="28" selection-end-column="37" />
  932 + <folding>
  933 + <element signature="e#4049#4323#0#PHP" expanded="false" />
  934 + <element signature="e#4342#4805#0#PHP" expanded="false" />
  935 + <element signature="e#4835#5267#0#PHP" expanded="false" />
  936 + </folding>
  937 + </state>
  938 + </provider>
  939 + </entry>
1007 <entry file="file://$PROJECT_DIR$/api/index/controller/OrderController.php"> 940 <entry file="file://$PROJECT_DIR$/api/index/controller/OrderController.php">
1008 <provider selected="true" editor-type-id="text-editor"> 941 <provider selected="true" editor-type-id="text-editor">
1009 - <state relative-caret-position="480">  
1010 - <caret line="91" column="26" lean-forward="false" selection-start-line="91" selection-start-column="26" selection-end-line="91" selection-end-column="26" /> 942 + <state relative-caret-position="650">
  943 + <caret line="110" column="40" lean-forward="true" selection-start-line="110" selection-start-column="40" selection-end-line="110" selection-end-column="40" />
1011 <folding> 944 <folding>
1012 <element signature="e#131#162#0#PHP" expanded="true" /> 945 <element signature="e#131#162#0#PHP" expanded="true" />
1013 <element signature="e#336#608#0#PHP" expanded="false" /> 946 <element signature="e#336#608#0#PHP" expanded="false" />
1014 <element signature="e#614#976#0#PHP" expanded="false" /> 947 <element signature="e#614#976#0#PHP" expanded="false" />
1015 <element signature="e#981#2020#0#PHP" expanded="false" /> 948 <element signature="e#981#2020#0#PHP" expanded="false" />
1016 <element signature="e#2026#2263#0#PHP" expanded="false" /> 949 <element signature="e#2026#2263#0#PHP" expanded="false" />
1017 - <element signature="e#2268#2965#0#PHP" expanded="false" />  
1018 - <element signature="e#2971#3213#0#PHP" expanded="false" />  
1019 - <element signature="e#3219#3557#0#PHP" expanded="false" />  
1020 - <element signature="e#3562#4434#0#PHP" expanded="false" />  
1021 - <element signature="e#4440#4919#0#PHP" expanded="false" />  
1022 - <element signature="e#4924#5491#0#PHP" expanded="false" /> 950 + <element signature="e#3069#3407#0#PHP" expanded="false" />
  951 + <element signature="e#3412#4284#0#PHP" expanded="false" />
  952 + <element signature="e#4290#4769#0#PHP" expanded="false" />
  953 + <element signature="e#4774#5341#0#PHP" expanded="false" />
  954 + <element signature="e#5347#5589#0#PHP" expanded="false" />
1023 </folding> 955 </folding>
1024 </state> 956 </state>
1025 </provider> 957 </provider>
@@ -100,23 +100,15 @@ class OrderController extends RestBaseController @@ -100,23 +100,15 @@ class OrderController extends RestBaseController
100 $where['user_id'] = ['eq',$user_id]; 100 $where['user_id'] = ['eq',$user_id];
101 $data = Db::name('order')->where($where)->find(); 101 $data = Db::name('order')->where($where)->find();
102 if(empty($data)){ 102 if(empty($data)){
103 - $this->error(['code'=>41001,'msg'=>'数据错误']); 103 + $this->error(['code'=>41001,'msg'=>'数据错误,没有此订单']);
  104 + }
  105 + if($data['status'] == 2){
  106 + $this->error('您已经支付过了,无需重复支付');
104 } 107 }
105 //微信支付 108 //微信支付
106 $openid = $this->getOpenid(); 109 $openid = $this->getOpenid();
107 $pay = new WeixinPay(); 110 $pay = new WeixinPay();
108 - $this->success('SUCCESS',$pay->pay($openid['openid'],$data['num'],"废品回收",$data['total'],cmf_api_url('index/pay/notify','','',true)));  
109 - }  
110 -  
111 - public function getOpenid()  
112 - {  
113 - $user_id = $this->getUserId();  
114 -  
115 - $openid = Db::name('third_party_user')  
116 - ->where('user_id',$user_id)  
117 - ->field('openid')  
118 - ->find();  
119 - return $openid; 111 + $this->success('SUCCESS',$pay->pay($openid['openid'],$data['num'],"废品回收",$data['total']*100,cmf_api_url('index/pay/notify','','',true)));
120 } 112 }
121 113
122 /** 114 /**
@@ -192,4 +184,15 @@ class OrderController extends RestBaseController @@ -192,4 +184,15 @@ class OrderController extends RestBaseController
192 } 184 }
193 $this->success('SUCCESS',$list); 185 $this->success('SUCCESS',$list);
194 } 186 }
  187 +
  188 + public function getOpenid()
  189 + {
  190 + $user_id = $this->getUserId();
  191 +
  192 + $openid = Db::name('third_party_user')
  193 + ->where('user_id',$user_id)
  194 + ->field('openid')
  195 + ->find();
  196 + return $openid;
  197 + }
195 } 198 }