|
@ -205,8 +205,10 @@ public class OnePayController extends WeixinBaseController {
|
|
|
@RequestParam String feeDetail) throws Exception {
|
|
|
try {
|
|
|
// 获取居民个人信息
|
|
|
String patient = getUID();
|
|
|
String openId = getOpenid();
|
|
|
// String patient = getUID();
|
|
|
// String openId = getOpenid();
|
|
|
String patient = "0cc6e4562de2437ab2dbbf51a9fc3b49";
|
|
|
String openId = "oULM4xAj9sOsHJ95ttKYd_Fjh6Hc";
|
|
|
if (StringUtils.isNotEmpty(openId)) {
|
|
|
String settleNo = pay.charge(orgCode, chargeType, chargeRelation, totalAmount, feeDetail, patient, openId); //ohNH9sh4uwuJCxIwcLJtGTX-BaSk getUID(),getOpenid()
|
|
|
return write(200, "家庭医生签约支付成功!", "data", settleNo);
|
|
@ -380,8 +382,10 @@ public class OnePayController extends WeixinBaseController {
|
|
|
OnepayDefaultClient client = new OnepayDefaultClient("", appId, appSecret, encryptRes.getSignType(), encryptRes.getEncryptType());
|
|
|
|
|
|
try {
|
|
|
/* client.execute(encryptRes);
|
|
|
LOGGER.info("解密前:{}", JSON.toJSONString(encryptRes));
|
|
|
/* ResponseParams<?> decryptRes = client.decryptNotifyResponse(encryptRes);
|
|
|
|
|
|
ResponseParams<?> decryptRes = client.decryptNotifyResponse(encryptRes);
|
|
|
LOGGER.info("解密后:{}", JSON.toJSONString(decryptRes));
|
|
|
boolean isDecrypt = ("-1".equals(decryptRes.getRespCode()) ? false : true); // 是否解密失败
|
|
|
if (!isDecrypt) {
|