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

修改微信支付

... ... @@ -2,6 +2,7 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="e93f11c2-a7d9-4d35-8b1c-8dd18e7f5fef" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/application/api/controller/Pay.php" afterPath="$PROJECT_DIR$/application/api/controller/Pay.php" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
... ... @@ -16,25 +17,26 @@
<file leaf-file-name="Pay.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="368">
<caret line="713" column="53" lean-forward="true" selection-start-line="713" selection-start-column="53" selection-end-line="713" selection-end-column="53" />
<state relative-caret-position="-150">
<caret line="687" column="4" lean-forward="false" selection-start-line="687" selection-start-column="4" selection-end-line="687" selection-end-column="4" />
<folding>
<element signature="e#699#1012#0#PHP" expanded="false" />
<element signature="e#1017#3093#0#PHP" expanded="false" />
<element signature="e#3099#3419#0#PHP" expanded="false" />
<element signature="e#3424#5506#0#PHP" expanded="false" />
<element signature="e#5512#5930#0#PHP" expanded="false" />
<element signature="e#5935#16029#0#PHP" expanded="false" />
<element signature="e#16035#16455#0#PHP" expanded="false" />
<element signature="e#16460#26484#0#PHP" expanded="false" />
<element signature="e#26501#26798#0#PHP" expanded="false" />
<element signature="e#26803#27196#0#PHP" expanded="false" />
<element signature="e#27223#30701#0#PHP" expanded="false" />
<element signature="e#30730#33635#0#PHP" expanded="false" />
<element signature="e#37558#37945#0#PHP" expanded="false" />
<element signature="e#38006#38962#0#PHP" expanded="false" />
<element signature="e#39623#46795#0#PHP" expanded="false" />
<element signature="e#46818#47035#0#PHP" expanded="false" />
<element signature="e#706#1019#0#PHP" expanded="false" />
<element signature="e#1024#3100#0#PHP" expanded="false" />
<element signature="e#3106#3426#0#PHP" expanded="false" />
<element signature="e#3431#5513#0#PHP" expanded="false" />
<element signature="e#5519#5937#0#PHP" expanded="false" />
<element signature="e#5942#16036#0#PHP" expanded="false" />
<element signature="e#16042#16462#0#PHP" expanded="false" />
<element signature="e#16467#26491#0#PHP" expanded="false" />
<element signature="e#26508#26805#0#PHP" expanded="false" />
<element signature="e#26810#27203#0#PHP" expanded="false" />
<element signature="e#27230#30708#0#PHP" expanded="false" />
<element signature="e#30737#33642#0#PHP" expanded="false" />
<element signature="e#35491#38996#0#PHP" expanded="false" />
<element signature="e#37570#37957#0#PHP" expanded="false" />
<element signature="e#38018#38974#0#PHP" expanded="false" />
<element signature="e#39635#46807#0#PHP" expanded="false" />
<element signature="e#46830#47047#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ... @@ -274,7 +276,7 @@
<workItem from="1575773423431" duration="694000" />
<workItem from="1575776183372" duration="2267000" />
<workItem from="1575790089275" duration="377000" />
<workItem from="1575851041026" duration="13593000" />
<workItem from="1575851041026" duration="14136000" />
</task>
<task id="LOCAL-00001" summary="调试">
<created>1574145133364</created>
... ... @@ -283,11 +285,25 @@
<option name="project" value="LOCAL" />
<updated>1574145133364</updated>
</task>
<option name="localTasksCounter" value="2" />
<task id="LOCAL-00002" summary="调试">
<created>1575869249706</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1575869249706</updated>
</task>
<task id="LOCAL-00003" summary="调试">
<created>1575869422308</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1575869422308</updated>
</task>
<option name="localTasksCounter" value="4" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="354060000" />
<option name="totallyTimeSpent" value="354603000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
... ... @@ -799,25 +815,26 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="368">
<caret line="713" column="53" lean-forward="true" selection-start-line="713" selection-start-column="53" selection-end-line="713" selection-end-column="53" />
<state relative-caret-position="-150">
<caret line="687" column="4" lean-forward="false" selection-start-line="687" selection-start-column="4" selection-end-line="687" selection-end-column="4" />
<folding>
<element signature="e#699#1012#0#PHP" expanded="false" />
<element signature="e#1017#3093#0#PHP" expanded="false" />
<element signature="e#3099#3419#0#PHP" expanded="false" />
<element signature="e#3424#5506#0#PHP" expanded="false" />
<element signature="e#5512#5930#0#PHP" expanded="false" />
<element signature="e#5935#16029#0#PHP" expanded="false" />
<element signature="e#16035#16455#0#PHP" expanded="false" />
<element signature="e#16460#26484#0#PHP" expanded="false" />
<element signature="e#26501#26798#0#PHP" expanded="false" />
<element signature="e#26803#27196#0#PHP" expanded="false" />
<element signature="e#27223#30701#0#PHP" expanded="false" />
<element signature="e#30730#33635#0#PHP" expanded="false" />
<element signature="e#37558#37945#0#PHP" expanded="false" />
<element signature="e#38006#38962#0#PHP" expanded="false" />
<element signature="e#39623#46795#0#PHP" expanded="false" />
<element signature="e#46818#47035#0#PHP" expanded="false" />
<element signature="e#706#1019#0#PHP" expanded="false" />
<element signature="e#1024#3100#0#PHP" expanded="false" />
<element signature="e#3106#3426#0#PHP" expanded="false" />
<element signature="e#3431#5513#0#PHP" expanded="false" />
<element signature="e#5519#5937#0#PHP" expanded="false" />
<element signature="e#5942#16036#0#PHP" expanded="false" />
<element signature="e#16042#16462#0#PHP" expanded="false" />
<element signature="e#16467#26491#0#PHP" expanded="false" />
<element signature="e#26508#26805#0#PHP" expanded="false" />
<element signature="e#26810#27203#0#PHP" expanded="false" />
<element signature="e#27230#30708#0#PHP" expanded="false" />
<element signature="e#30737#33642#0#PHP" expanded="false" />
<element signature="e#35491#38996#0#PHP" expanded="false" />
<element signature="e#37570#37957#0#PHP" expanded="false" />
<element signature="e#38018#38974#0#PHP" expanded="false" />
<element signature="e#39635#46807#0#PHP" expanded="false" />
<element signature="e#46830#47047#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ...
... ... @@ -685,12 +685,7 @@ class Pay extends Api
});
$response->send();
}
public function test() {
$pic_id = cache('pic_id');
var_dump($pic_id);
}
//图片支付订单结果通知(无需调用)
public function picOrderNotify(){
$config = config('verify.wx_pay');
... ... @@ -698,7 +693,7 @@ class Pay extends Api
$response = $app->handlePaidNotify(function($message, $fail){
//找到该订单信息
$data = Db::name('order')->where('id',$message['out_trade_no'])->find();
$data = Db::name('order')->where('num',$message['out_trade_no'])->find();
$pic_id = explode(',',$data['pic_id']);
$video_id = unserialize($data['video_id']);
//查询该用户信息以及是否为会员身份
... ... @@ -710,7 +705,6 @@ class Pay extends Api
if ($message['return_code'] === 'SUCCESS') {
if ($message['result_code'] === 'SUCCESS') {
//图片
cache('pic_id',$pic_id);
if(!empty($pic_id)){
//将购买次数加1
foreach ($pic_id as $key => $v){
... ...