This commit is contained in:
linfso 2025-06-19 18:42:25 +08:00
parent 6a626af581
commit ee31ebefec
2 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@ public interface IEmisSettleBillPayLogService
* @return
* @throws EmisBizError
*/
public String genWxPayFromWxApp(String settleBillNo,String openId) throws EmisBizError;
public String genWxPayFromWxApp(String settleBillNo,String appId,String openId) throws EmisBizError;
/**

View File

@ -236,7 +236,7 @@ public class EmisSettleBillPayLogServiceImpl implements IEmisSettleBillPayLogSer
* @throws EmisBizError
*/
@Override
public String genWxPayFromWxApp(String settleBillNo,String openId) throws EmisBizError {
public String genWxPayFromWxApp(String settleBillNo,String appId,String openId) throws EmisBizError {
EmisSettleBill emisSettleBill=emisSettleBillMapper.selectSettleBillBySettleBillNo(settleBillNo);
@ -269,7 +269,7 @@ public class EmisSettleBillPayLogServiceImpl implements IEmisSettleBillPayLogSer
// 公众号及小程序支付
String channel="wxpay_pub";
String appId="";
// String appId="";
String notifyUrl= Config.ERP_API_PAY_NOTIFY_URL;
ApiRes res= null;
@ -280,14 +280,14 @@ public class EmisSettleBillPayLogServiceImpl implements IEmisSettleBillPayLogSer
log.info("支付代码生成==>{}",JSONObject.toJSONString(res));
emisSettleBillPayLogUpd.setResponseExtra(JSON.toJSONString(res));
if(res.isSuccess()){
String payCode=((Map)res.getData().get("credential")).get("qr_image_url").toString();
String prepayId=((Map)res.getData().get("credential")).get("prepay_id").toString();
emisSettleBillPayLogUpd.setCredential(JSON.toJSONString(res.getData().get("credential")));
emisSettleBillPayLogUpd.setStatus(10);
emisSettleBillPayLogUpd.setStatusDesc("支付中");
emisSettleBillPayLogMapper.updateEmisSettleBillPayLog(emisSettleBillPayLogUpd);
return payCode;
return prepayId;
}
else{
emisSettleBillPayLogUpd.setStatus(40);