作者 郭盛
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="e93f11c2-a7d9-4d35-8b1c-8dd18e7f5fef" name="Default" comment=""> 4 <list default="true" id="e93f11c2-a7d9-4d35-8b1c-8dd18e7f5fef" 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$/application/api/controller/Pay.php" afterPath="$PROJECT_DIR$/application/api/controller/Pay.php" /> 5 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/application/api/controller/Pay.php" afterPath="$PROJECT_DIR$/application/api/controller/Pay.php" />
7 </list> 6 </list>
8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 7 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -90,8 +89,8 @@ @@ -90,8 +89,8 @@
90 <file leaf-file-name="Pay.php" pinned="false" current-in-tab="true"> 89 <file leaf-file-name="Pay.php" pinned="false" current-in-tab="true">
91 <entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php"> 90 <entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
92 <provider selected="true" editor-type-id="text-editor"> 91 <provider selected="true" editor-type-id="text-editor">
93 - <state relative-caret-position="194">  
94 - <caret line="789" column="26" lean-forward="true" selection-start-line="789" selection-start-column="26" selection-end-line="789" selection-end-column="26" /> 92 + <state relative-caret-position="-106">
  93 + <caret line="786" column="40" lean-forward="true" selection-start-line="786" selection-start-column="40" selection-end-line="786" selection-end-column="40" />
95 <folding> 94 <folding>
96 <element signature="e#574#693#0#PHP" expanded="false" /> 95 <element signature="e#574#693#0#PHP" expanded="false" />
97 <element signature="e#699#1012#0#PHP" expanded="false" /> 96 <element signature="e#699#1012#0#PHP" expanded="false" />
@@ -99,11 +98,11 @@ @@ -99,11 +98,11 @@
99 <element signature="e#3099#3419#0#PHP" expanded="false" /> 98 <element signature="e#3099#3419#0#PHP" expanded="false" />
100 <element signature="e#3424#5506#0#PHP" expanded="false" /> 99 <element signature="e#3424#5506#0#PHP" expanded="false" />
101 <element signature="e#5512#5930#0#PHP" expanded="false" /> 100 <element signature="e#5512#5930#0#PHP" expanded="false" />
  101 + <element signature="e#5935#16029#0#PHP" expanded="false" />
102 <element signature="e#6179#6269#0#PHP" expanded="false" /> 102 <element signature="e#6179#6269#0#PHP" expanded="false" />
103 <element signature="e#6347#6443#0#PHP" expanded="false" /> 103 <element signature="e#6347#6443#0#PHP" expanded="false" />
104 <element signature="e#11546#11997#0#PHP" expanded="false" /> 104 <element signature="e#11546#11997#0#PHP" expanded="false" />
105 <element signature="e#13212#13330#0#PHP" expanded="false" /> 105 <element signature="e#13212#13330#0#PHP" expanded="false" />
106 - <element signature="e#14187#15962#0#PHP" expanded="false" />  
107 <element signature="e#16035#16455#0#PHP" expanded="false" /> 106 <element signature="e#16035#16455#0#PHP" expanded="false" />
108 <element signature="e#16460#26484#0#PHP" expanded="false" /> 107 <element signature="e#16460#26484#0#PHP" expanded="false" />
109 <element signature="e#18227#19634#0#PHP" expanded="false" /> 108 <element signature="e#18227#19634#0#PHP" expanded="false" />
@@ -114,16 +113,26 @@ @@ -114,16 +113,26 @@
114 <element signature="e#26803#27196#0#PHP" expanded="false" /> 113 <element signature="e#26803#27196#0#PHP" expanded="false" />
115 <element signature="e#27223#30701#0#PHP" expanded="false" /> 114 <element signature="e#27223#30701#0#PHP" expanded="false" />
116 <element signature="e#30730#33635#0#PHP" expanded="false" /> 115 <element signature="e#30730#33635#0#PHP" expanded="false" />
117 - <element signature="e#34478#35794#0#PHP" expanded="false" />  
118 - <element signature="e#35815#39319#0#PHP" expanded="false" />  
119 - <element signature="e#37893#38280#0#PHP" expanded="false" />  
120 - <element signature="e#38341#39297#0#PHP" expanded="false" />  
121 - <element signature="e#39958#47130#0#PHP" expanded="false" /> 116 + <element signature="e#34441#35758#0#PHP" expanded="false" />
  117 + <element signature="e#35804#39309#0#PHP" expanded="false" />
  118 + <element signature="e#37883#38270#0#PHP" expanded="false" />
  119 + <element signature="e#38331#39287#0#PHP" expanded="false" />
  120 + <element signature="e#39948#47120#0#PHP" expanded="false" />
122 </folding> 121 </folding>
123 </state> 122 </state>
124 </provider> 123 </provider>
125 </entry> 124 </entry>
126 </file> 125 </file>
  126 + <file leaf-file-name="verify.php" pinned="false" current-in-tab="false">
  127 + <entry file="file://$PROJECT_DIR$/application/extra/verify.php">
  128 + <provider selected="true" editor-type-id="text-editor">
  129 + <state relative-caret-position="375">
  130 + <caret line="18" column="45" lean-forward="false" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
  131 + <folding />
  132 + </state>
  133 + </provider>
  134 + </entry>
  135 + </file>
127 </leaf> 136 </leaf>
128 </component> 137 </component>
129 <component name="FindInProjectRecents"> 138 <component name="FindInProjectRecents">
@@ -211,9 +220,9 @@ @@ -211,9 +220,9 @@
211 <sorting>DEFINITION_ORDER</sorting> 220 <sorting>DEFINITION_ORDER</sorting>
212 </component> 221 </component>
213 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" /> 222 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
214 - <component name="ProjectFrameBounds" extendedState="1">  
215 - <option name="x" value="2" />  
216 - <option name="y" value="11" /> 223 + <component name="ProjectFrameBounds" extendedState="7">
  224 + <option name="x" value="96" />
  225 + <option name="y" value="92" />
217 <option name="width" value="1871" /> 226 <option name="width" value="1871" />
218 <option name="height" value="996" /> 227 <option name="height" value="996" />
219 </component> 228 </component>
@@ -263,8 +272,7 @@ @@ -263,8 +272,7 @@
263 <item name="areial" type="b2602c69:ProjectViewProjectNode" /> 272 <item name="areial" type="b2602c69:ProjectViewProjectNode" />
264 <item name="areial" type="2a2b976b:PhpTreeStructureProvider$1" /> 273 <item name="areial" type="2a2b976b:PhpTreeStructureProvider$1" />
265 <item name="application" type="2a2b976b:PhpTreeStructureProvider$1" /> 274 <item name="application" type="2a2b976b:PhpTreeStructureProvider$1" />
266 - <item name="api" type="2a2b976b:PhpTreeStructureProvider$1" />  
267 - <item name="lang" type="2a2b976b:PhpTreeStructureProvider$1" /> 275 + <item name="extra" type="2a2b976b:PhpTreeStructureProvider$1" />
268 </path> 276 </path>
269 <path> 277 <path>
270 <item name="areial" type="b2602c69:ProjectViewProjectNode" /> 278 <item name="areial" type="b2602c69:ProjectViewProjectNode" />
@@ -370,7 +378,7 @@ @@ -370,7 +378,7 @@
370 <workItem from="1575599624364" duration="95000" /> 378 <workItem from="1575599624364" duration="95000" />
371 <workItem from="1575680867057" duration="23412000" /> 379 <workItem from="1575680867057" duration="23412000" />
372 <workItem from="1575708184460" duration="1768000" /> 380 <workItem from="1575708184460" duration="1768000" />
373 - <workItem from="1575771325770" duration="637000" /> 381 + <workItem from="1575771325770" duration="1401000" />
374 </task> 382 </task>
375 <task id="LOCAL-00001" summary="调试"> 383 <task id="LOCAL-00001" summary="调试">
376 <created>1574145133364</created> 384 <created>1574145133364</created>
@@ -383,7 +391,7 @@ @@ -383,7 +391,7 @@
383 <servers /> 391 <servers />
384 </component> 392 </component>
385 <component name="TimeTrackingManager"> 393 <component name="TimeTrackingManager">
386 - <option name="totallyTimeSpent" value="335716000" /> 394 + <option name="totallyTimeSpent" value="336480000" />
387 </component> 395 </component>
388 <component name="TodoView"> 396 <component name="TodoView">
389 <todo-panel id="selected-file"> 397 <todo-panel id="selected-file">
@@ -395,17 +403,16 @@ @@ -395,17 +403,16 @@
395 </todo-panel> 403 </todo-panel>
396 </component> 404 </component>
397 <component name="ToolWindowManager"> 405 <component name="ToolWindowManager">
398 - <frame x="2" y="11" width="1871" height="996" extended-state="1" />  
399 - <editor active="true" /> 406 + <frame x="-8" y="-8" width="1936" height="1056" extended-state="7" />
400 <layout> 407 <layout>
401 - <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.17393705" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" /> 408 + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16791044" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
402 <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32912987" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" /> 409 <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32912987" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
403 <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="0" side_tool="true" content_ui="tabs" /> 410 <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="0" side_tool="true" content_ui="tabs" />
404 <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> 411 <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
405 <window_info id="Version Control" 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="1" side_tool="false" content_ui="tabs" /> 412 <window_info id="Version Control" 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="1" side_tool="false" content_ui="tabs" />
406 <window_info id="Run" 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="5" side_tool="false" content_ui="tabs" /> 413 <window_info id="Run" 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="5" side_tool="false" content_ui="tabs" />
407 <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> 414 <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
408 - <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.15813954" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> 415 + <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.1577802" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
409 <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" /> 416 <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
410 <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> 417 <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
411 <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> 418 <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
@@ -448,7 +455,7 @@ @@ -448,7 +455,7 @@
448 </component> 455 </component>
449 <component name="XDebuggerManager"> 456 <component name="XDebuggerManager">
450 <breakpoint-manager> 457 <breakpoint-manager>
451 - <option name="time" value="18" /> 458 + <option name="time" value="19" />
452 </breakpoint-manager> 459 </breakpoint-manager>
453 <watches-manager /> 460 <watches-manager />
454 </component> 461 </component>
@@ -510,13 +517,6 @@ @@ -510,13 +517,6 @@
510 </state> 517 </state>
511 </provider> 518 </provider>
512 </entry> 519 </entry>
513 - <entry file="file://$PROJECT_DIR$/application/extra/verify.php">  
514 - <provider selected="true" editor-type-id="text-editor">  
515 - <state relative-caret-position="450">  
516 - <caret line="18" column="45" lean-forward="false" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />  
517 - </state>  
518 - </provider>  
519 - </entry>  
520 <entry file="file://$PROJECT_DIR$/application/admin/library/traits/Backend.php"> 520 <entry file="file://$PROJECT_DIR$/application/admin/library/traits/Backend.php">
521 <provider selected="true" editor-type-id="text-editor"> 521 <provider selected="true" editor-type-id="text-editor">
522 <state relative-caret-position="225"> 522 <state relative-caret-position="225">
@@ -862,10 +862,18 @@ @@ -862,10 +862,18 @@
862 </state> 862 </state>
863 </provider> 863 </provider>
864 </entry> 864 </entry>
  865 + <entry file="file://$PROJECT_DIR$/application/extra/verify.php">
  866 + <provider selected="true" editor-type-id="text-editor">
  867 + <state relative-caret-position="375">
  868 + <caret line="18" column="45" lean-forward="false" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
  869 + <folding />
  870 + </state>
  871 + </provider>
  872 + </entry>
865 <entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php"> 873 <entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
866 <provider selected="true" editor-type-id="text-editor"> 874 <provider selected="true" editor-type-id="text-editor">
867 - <state relative-caret-position="194">  
868 - <caret line="789" column="26" lean-forward="true" selection-start-line="789" selection-start-column="26" selection-end-line="789" selection-end-column="26" /> 875 + <state relative-caret-position="-106">
  876 + <caret line="786" column="40" lean-forward="true" selection-start-line="786" selection-start-column="40" selection-end-line="786" selection-end-column="40" />
869 <folding> 877 <folding>
870 <element signature="e#574#693#0#PHP" expanded="false" /> 878 <element signature="e#574#693#0#PHP" expanded="false" />
871 <element signature="e#699#1012#0#PHP" expanded="false" /> 879 <element signature="e#699#1012#0#PHP" expanded="false" />
@@ -873,11 +881,11 @@ @@ -873,11 +881,11 @@
873 <element signature="e#3099#3419#0#PHP" expanded="false" /> 881 <element signature="e#3099#3419#0#PHP" expanded="false" />
874 <element signature="e#3424#5506#0#PHP" expanded="false" /> 882 <element signature="e#3424#5506#0#PHP" expanded="false" />
875 <element signature="e#5512#5930#0#PHP" expanded="false" /> 883 <element signature="e#5512#5930#0#PHP" expanded="false" />
  884 + <element signature="e#5935#16029#0#PHP" expanded="false" />
876 <element signature="e#6179#6269#0#PHP" expanded="false" /> 885 <element signature="e#6179#6269#0#PHP" expanded="false" />
877 <element signature="e#6347#6443#0#PHP" expanded="false" /> 886 <element signature="e#6347#6443#0#PHP" expanded="false" />
878 <element signature="e#11546#11997#0#PHP" expanded="false" /> 887 <element signature="e#11546#11997#0#PHP" expanded="false" />
879 <element signature="e#13212#13330#0#PHP" expanded="false" /> 888 <element signature="e#13212#13330#0#PHP" expanded="false" />
880 - <element signature="e#14187#15962#0#PHP" expanded="false" />  
881 <element signature="e#16035#16455#0#PHP" expanded="false" /> 889 <element signature="e#16035#16455#0#PHP" expanded="false" />
882 <element signature="e#16460#26484#0#PHP" expanded="false" /> 890 <element signature="e#16460#26484#0#PHP" expanded="false" />
883 <element signature="e#18227#19634#0#PHP" expanded="false" /> 891 <element signature="e#18227#19634#0#PHP" expanded="false" />
@@ -888,11 +896,11 @@ @@ -888,11 +896,11 @@
888 <element signature="e#26803#27196#0#PHP" expanded="false" /> 896 <element signature="e#26803#27196#0#PHP" expanded="false" />
889 <element signature="e#27223#30701#0#PHP" expanded="false" /> 897 <element signature="e#27223#30701#0#PHP" expanded="false" />
890 <element signature="e#30730#33635#0#PHP" expanded="false" /> 898 <element signature="e#30730#33635#0#PHP" expanded="false" />
891 - <element signature="e#34478#35794#0#PHP" expanded="false" />  
892 - <element signature="e#35815#39319#0#PHP" expanded="false" />  
893 - <element signature="e#37893#38280#0#PHP" expanded="false" />  
894 - <element signature="e#38341#39297#0#PHP" expanded="false" />  
895 - <element signature="e#39958#47130#0#PHP" expanded="false" /> 899 + <element signature="e#34441#35758#0#PHP" expanded="false" />
  900 + <element signature="e#35804#39309#0#PHP" expanded="false" />
  901 + <element signature="e#37883#38270#0#PHP" expanded="false" />
  902 + <element signature="e#38331#39287#0#PHP" expanded="false" />
  903 + <element signature="e#39948#47120#0#PHP" expanded="false" />
896 </folding> 904 </folding>
897 </state> 905 </state>
898 </provider> 906 </provider>
@@ -690,10 +690,8 @@ class Pay extends Api @@ -690,10 +690,8 @@ class Pay extends Api
690 public function picOrderNotify(){ 690 public function picOrderNotify(){
691 $config = config('verify.wx_pay'); 691 $config = config('verify.wx_pay');
692 $app = Factory::payment($config); 692 $app = Factory::payment($config);
  693 +
693 $response = $app->handlePaidNotify(function($message, $fail){ 694 $response = $app->handlePaidNotify(function($message, $fail){
694 - //return_code 表示通信状态  
695 - if ($message['return_code'] === 'SUCCESS') {  
696 - if ($message['result_code'] === 'SUCCESS') {  
697 //找到该订单信息 695 //找到该订单信息
698 $data = Db::name('order')->where('id',$message['out_trade_no'])->find(); 696 $data = Db::name('order')->where('id',$message['out_trade_no'])->find();
699 $pic_id = explode(',',$data['pic_id']); 697 $pic_id = explode(',',$data['pic_id']);
@@ -702,7 +700,12 @@ class Pay extends Api @@ -702,7 +700,12 @@ class Pay extends Api
702 $user = Db::name('user')->where('id',$data['user_id'])->find(); 700 $user = Db::name('user')->where('id',$data['user_id'])->find();
703 $mobile = $user['mobile']; 701 $mobile = $user['mobile'];
704 $str = "【仁甲看见】"; 702 $str = "【仁甲看见】";
705 - if(empty($pic_id)){ 703 +
  704 + //return_code 表示通信状态
  705 + if ($message['return_code'] === 'SUCCESS') {
  706 + if ($message['result_code'] === 'SUCCESS') {
  707 + //图片
  708 + if(!empty($pic_id)){
706 //将购买次数加1 709 //将购买次数加1
707 foreach ($pic_id as $key => $v){ 710 foreach ($pic_id as $key => $v){
708 //非会员 711 //非会员
@@ -723,7 +726,8 @@ class Pay extends Api @@ -723,7 +726,8 @@ class Pay extends Api
723 $str .= "图片标题:$pic[title],云盘地址:$pic[url],提取码:$pic[code],"; 726 $str .= "图片标题:$pic[title],云盘地址:$pic[url],提取码:$pic[code],";
724 } 727 }
725 } 728 }
726 - if(empty($video_id)){ 729 + //视频
  730 + if(!empty($video_id)){
727 //判断是否为会员 731 //判断是否为会员
728 if($user['is_vip'] == 0){ 732 if($user['is_vip'] == 0){
729 //不是会员的情况 733 //不是会员的情况
@@ -6612,7 +6612,7 @@ @@ -6612,7 +6612,7 @@
6612 6612
6613 <div class="row mt0 footer"> 6613 <div class="row mt0 footer">
6614 <div class="col-md-6" align="left"> 6614 <div class="col-md-6" align="left">
6615 - Generated on 2019-12-07 17:02:33 </div> 6615 + Generated on 2019-12-08 10:38:45 </div>
6616 <div class="col-md-6" align="right"> 6616 <div class="col-md-6" align="right">
6617 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a> 6617 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
6618 </div> 6618 </div>