shaoguo 9 달 전
부모
커밋
1e06927b78
4개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 12 0
      hua_fei/2024-01-26pay.log
  2. BIN
      hua_fei/config/huafei.sqlite3
  3. 2 0
      hua_fei/pay.php
  4. 1 1
      hua_fei/static/js/recharge_flow_new.min.js

+ 12 - 0
hua_fei/2024-01-26pay.log

@@ -16,3 +16,15 @@
 18:34:11请求:client_ip=127.0.0.1&format=json&from_name=%E6%B5%8B%E8%AF%95&goods_desc=%E6%B5%8B%E8%AF%95&mch_id=tongue&money=30&notify_url=http%3A%2F%2Ftest.com&order_sn=order_sn65b38aa32b381&pay_backurl=http%3A%2F%2F127.0.0.1%3A8000%2Fpay&ptype=82&time=1706265251&key=37cd2d09c84f6ff7f1d28960ef82c4e533a3c047&sign=a25bc8cbbfa0162e8df8e94564f98f57
 18:34:36请求:client_ip=127.0.0.1&format=json&from_name=%E6%B5%8B%E8%AF%95&goods_desc=%E6%B5%8B%E8%AF%95&mch_id=tongue&money=30&notify_url=http%3A%2F%2Ftest.com&order_sn=order_sn65b38abc02f8d&pay_backurl=http%3A%2F%2F127.0.0.1%3A8000%2Fpay&ptype=82&time=1706265276&key=37cd2d09c84f6ff7f1d28960ef82c4e533a3c047&sign=5576ac2aaa959fbace5b539b3c978296
 18:34:37响应{"code":"1","msg":"\u4e0b\u5355\u6210\u529f","data":{"order_sn":"ZZHF20240126183436808","ptype":"82","ptype_name":"","realname":null,"account":null,"money":"30","bank":"","branch_name":"","qrcode":"https:\/\/hh5ad.hnapay.com\/pay\/order.shtml?orderId=2024012676093324&orderKey=e7e1e69242a234c3e766438b507b70a6f7b6cd2a"}}
+21:42:27请求:client_ip=127.0.0.1&format=json&from_name=%E5%85%85%E5%80%BC&goods_desc=%E5%85%85%E5%80%BC&mch_id=tongue&money=30&notify_url=http%3A%2F%2F127.0.0.1%3A8000%2Fnotify&order_sn=order_sn65b3b6c32d3bd&pay_backurl=http%3A%2F%2F127.0.0.1%3A8000&ptype=82&time=1706276547&sign=c515cf947b269f50af252648178f2b86
+21:42:28响应
+
+{"code":"1","msg":"下单成功","data":{"order_sn":"ZZHF20240126214229167","ptype":"82","ptype_name":"","realname":null,"account":null,"money":"30","bank":"","branch_name":"","qrcode":"https:\/\/hh5ad.hnapay.com\/pay\/order.shtml?orderId=2024012676146517&orderKey=7dd6c71998f7a9a84be071461f864ae47e095383"}}
+21:42:33请求:client_ip=127.0.0.1&format=json&from_name=%E5%85%85%E5%80%BC&goods_desc=%E5%85%85%E5%80%BC&mch_id=tongue&money=30&notify_url=http%3A%2F%2F127.0.0.1%3A8000%2Fnotify&order_sn=order_sn65b3b6c9a7799&pay_backurl=http%3A%2F%2F127.0.0.1%3A8000&ptype=82&time=1706276553&sign=7fb9142290c0069d1e65eab00f660efd
+21:42:34响应
+
+{"code":"1","msg":"下单成功","data":{"order_sn":"ZZHF20240126214236751","ptype":"82","ptype_name":"","realname":null,"account":null,"money":"30","bank":"","branch_name":"","qrcode":"https:\/\/hh5ad.hnapay.com\/pay\/order.shtml?orderId=2024012676148866&orderKey=4a51d881b089af27b24944de1d1419182067a2ad"}}
+21:44:04请求:client_ip=127.0.0.1&format=json&from_name=%E5%85%85%E5%80%BC&goods_desc=%E5%85%85%E5%80%BC&mch_id=tongue&money=30&notify_url=http%3A%2F%2F127.0.0.1%3A8000%2Fnotify&order_sn=order_sn65b3b724a96b7&pay_backurl=http%3A%2F%2F127.0.0.1%3A8000&ptype=82&time=1706276644&sign=3900794227c802f7da6481edd7ce2fc1
+21:44:05响应
+
+{"code":"1","msg":"下单成功","data":{"order_sn":"ZZHF20240126214407639","ptype":"82","ptype_name":"","realname":null,"account":null,"money":"30","bank":"","branch_name":"","qrcode":"https:\/\/hh5ad.hnapay.com\/pay\/order.shtml?orderId=2024012676143559&orderKey=fef8f40cc98edd2dffc4041dedcd1d2b3aac9eb0"}}

BIN
hua_fei/config/huafei.sqlite3


+ 2 - 0
hua_fei/pay.php

@@ -52,6 +52,8 @@ $res=curl_request("http://47.236.143.199/?c=Pay&".http_build_query($request_data
 file_put_contents(date("Y-m-d").'pay.log',date("H:i:s")."响应".$res."\r\n",FILE_APPEND);
 $res=json_decode($res,true);
 
+//$res=json_decode('{"code":"1","msg":"下单成功","data":{"order_sn":"ZZHF20240126214407639","ptype":"82","ptype_name":"","realname":null,"account":null,"money":"30","bank":"","branch_name":"","qrcode":"https:\/\/hh5ad.hnapay.com\/pay\/order.shtml?orderId=2024012676143559&orderKey=fef8f40cc98edd2dffc4041dedcd1d2b3aac9eb0"}}',true);
+
 if($res['code']!=1)exit(json_encode(['code'=>0,"msg"=>"下单失败"]));
 $statement=$pdo->exec("update recharge set `app_order_sn`='{$res['data']['order_sn']}' where id={$id}");
 

+ 1 - 1
hua_fei/static/js/recharge_flow_new.min.js

@@ -133,7 +133,7 @@ $(function () {
                        window.location.reload();
                    },4*1000)
                }else{
-                   window.open=res.data.pay_url
+                   window.location.href=res.data.pay_url
                }
             })