md
This commit is contained in:
parent
6a626af581
commit
ee31ebefec
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user