|
@@ -59,12 +59,9 @@ public class HeliPayUtil {
|
|
|
|
|
|
// 采美
|
|
// 采美
|
|
private final String publicCode = "wx91c4152b60ca91a3";
|
|
private final String publicCode = "wx91c4152b60ca91a3";
|
|
- // 联合丽格
|
|
|
|
- // private final String mcareCode = "wxaa4acc852618da69";
|
|
|
|
|
|
|
|
//小程序/公众号线上公用方法 p8 openid在自己方法传
|
|
//小程序/公众号线上公用方法 p8 openid在自己方法传
|
|
public AppPayPublicCreateOrderVo setOnlineValue(AppPayPublicCreateOrderVo pay, HeliDto heliDto, String payFlag, HttpHeaders headers) {
|
|
public AppPayPublicCreateOrderVo setOnlineValue(AppPayPublicCreateOrderVo pay, HeliDto heliDto, String payFlag, HttpHeaders headers) {
|
|
-
|
|
|
|
String orderId = "";
|
|
String orderId = "";
|
|
// 时间戳
|
|
// 时间戳
|
|
long time = System.currentTimeMillis() / 1000;
|
|
long time = System.currentTimeMillis() / 1000;
|
|
@@ -156,15 +153,10 @@ public class HeliPayUtil {
|
|
pay.setP13_successToUrl(heliDto.getReturnUrl());
|
|
pay.setP13_successToUrl(heliDto.getReturnUrl());
|
|
if ("GZH".equals(heliDto.getPayType())) {
|
|
if ("GZH".equals(heliDto.getPayType())) {
|
|
//公众号appid
|
|
//公众号appid
|
|
- if (0 != heliDto.getOrganizeId()) {
|
|
|
|
- // 联合丽格
|
|
|
|
- pay.setP5_appid(publicCode);
|
|
|
|
- } else {
|
|
|
|
- pay.setP5_appid(publicCode);
|
|
|
|
- }
|
|
|
|
|
|
+ pay.setP5_appid(publicCode);
|
|
} else if ("XCX".equals(heliDto.getPayType())) {
|
|
} else if ("XCX".equals(heliDto.getPayType())) {
|
|
//小程序appid
|
|
//小程序appid
|
|
- if (0 != heliDto.getOrganizeId()) {
|
|
|
|
|
|
+ if (null != heliDto.getOrganizeId() && 0 != heliDto.getOrganizeId()) {
|
|
// 联合丽格
|
|
// 联合丽格
|
|
pay.setP5_appid(mcareAppId);
|
|
pay.setP5_appid(mcareAppId);
|
|
} else {
|
|
} else {
|