rabin 1 year ago
parent
commit
766cc46637
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/Yspay.php

+ 3 - 0
lib/Yspay.php

@@ -41,10 +41,13 @@ class Yspay extends Core
 			$input = json_decode('{"msgType":"wx.notify","payTime":"2021-12-29 18:24:42","buyerCashPayAmt":"1","connectSys":"UNIONPAY","sign":"E82978003E0121B320D3520B1930FB4C2072B639126F3427351631F1D0A998CF","merName":"中食民安(北京)科技有限公司","mid":"89810007372106N","invoiceAmount":"1","settleDate":"2021-12-29","billFunds":"现金:1","buyerId":"otdJ_uD-zTNmDn7-u13oActXu8lA","mchntUuid":"2d9081bd7db8ad75017dbbe68981314f","tid":"DM098308","instMid":"MINIDEFAULT","receiptAmount":"1","couponAmount":"0","targetOrderId":"4200001344202112290882463274","signType":"SHA256","billFundsDesc":"现金支付0.01元。","subBuyerId":"oGlMn5e_vdYK8uAaCgyexarFKBrY","orderDesc":"中食民安(北京)科技有限公司","seqId":"25267273719N","merOrderId":"138K_G202112297347788956443487","targetSys":"WXPay","bankInfo":"OTHERS","totalAmount":"1","createTime":"2021-12-29 18:24:38","buyerPayAmount":"1","iB":"KRHn","notifyId":"d4122965-b772-4f8f-b5c4-f3d483da0962","subInst":"100000","status":"TRADE_SUCCESS"}', true);
 
 			$input = json_decode('{"bankInfo":"OTHERS","billDate":"2022-01-06","billDesc":"中食民安(北京)科技有限公司","billNo":"138KG202201064666839470673943","billPayment":"{\"payTime\":\"2022-01-06 13:24:56\",\"buyerCashPayAmt\":1,\"paySeqId\":\"25394941600N\",\"invoiceAmount\":1,\"settleDate\":\"2022-01-06\",\"buyerId\":\"otdJ_uHh75dIaI6EKu-6usw0hjD4\",\"receiptAmount\":1,\"totalAmount\":1,\"couponAmount\":0,\"billBizType\":\"bills\",\"buyerPayAmount\":1,\"targetOrderId\":\"4200001348202201065614123115\",\"payDetail\":\"现金支付0.01元。\",\"merOrderId\":\"138KG2022010646668394706739430\",\"status\":\"TRADE_SUCCESS\",\"targetSys\":\"WXPay\"}","billQRCode":"https:\/\/qr.95516.com\/48020000\/138K2201066502428138291294","billStatus":"PAID","createTime":"2022-01-06 13:24:28","instMid":"QRPAYDEFAULT","mchntUuid":"2d9081bd7db8ad75017dbbe68981314f","merName":"中食民安(北京)科技有限公司","mid":"89810007372106N","notifyId":"49a83755-b476-47c3-a0b6-629dc7a43742","qrCodeId":"138K2201066502428138291294","qrCodeType":"BILLPAY","receiptAmount":"1","seqId":"25394941600N","signType":"SHA256","subInst":"100000","tid":"DM098308","totalAmount":"1","vE":"Bclv","sign":"1D048E292E17225A4EEF4AB438630601A19E50CDA71DF9E7A4304AABBD134A38","e_sign":"1D048E292E17225A4EEF4AB438630601A19E50CDA71DF9E7A4304AABBD134A38"}', true);
+
+			$input = json_decode('{"billDate":"2023-08-08","billDesc":"北京正力中食科技有限公司","billNo":"138KC2023080864622010717928","billPayment":"{\"buyerUsername\":\"bin***@sina.com\",\"payTime\":\"2023-08-08 11:17:29\",\"buyerCashPayAmt\":1,\"connectSys\":\"UNIONPAY\",\"paySeqId\":\"35701309460N\",\"invoiceAmount\":1,\"settleDate\":\"2023-08-08\",\"buyerId\":\"2088202281488124\",\"receiptAmount\":1,\"totalAmount\":1,\"couponAmount\":0,\"billBizType\":\"bills\",\"buyerPayAmount\":1,\"targetOrderId\":\"2023080822001488121426563975\",\"payDetail\":\"支付宝余额支付0.01元。\",\"merOrderId\":\"138KC20230808646220107179280\",\"status\":\"TRADE_SUCCESS\",\"targetSys\":\"Alipay 2.0\"}","billQRCode":"https:\/\/qr.95516.com\/48020000\/138K2308081881702119606249","billStatus":"PAID","cardAttr":"BALANCE","createTime":"2023-08-08 11:17:02","instMid":"QRPAYDEFAULT","li":"MRBR","mchntUuid":"2d9081bc879e5394018808c18bd75086","merName":"北京正力中食科技有限公司","mid":"89810005331AU6B","notifyId":"74c0985b-3071-4d71-9b11-a44573929371","qrCodeId":"138K2308081881702119606249","qrCodeType":"BILLPAY","receiptAmount":"1","seqId":"35701309460N","signType":"SHA256","subInst":"100000","tid":"DM760642","totalAmount":"1","sign":"3C2F3BB6C5F5BA20DEFC8B282C988ECA1CBFDAC7920B2AAE04B423EBA95BC0A2","e_sign":"70123DF2F9911DD4EEC408C11F33C29C53F4C49E2AD628FD0365AE146654CFD8"}')
 		}
 		$sign = $input['sign'];
 		unset($input['sign']);
 		if (isset($input['e_sign'])) {
+			$sign = $input['e_sign'];
 			unset($input['e_sign']);
 		}