|
|
@@ -257,6 +257,7 @@ public class ChinaumsSenselessPayService extends SuperService {
|
|
|
*/
|
|
|
@SneakyThrows
|
|
|
public ResultContent senselessPay(String projectOid, String oid, String userId, BigDecimal total, String orderNo, String remark) {
|
|
|
+ log.info("开始构建参数:{}", DateUtils.paresTime(System.currentTimeMillis(), DateUtils.patternyyyySSS));
|
|
|
String projectAccountName = orgPayAccountService.queryOgPayAccount(projectOid, PaymentType.UnionFrictionlessPay);
|
|
|
//获取银联支付产品账户及需要签约的商户号
|
|
|
String orgAccountName = orgPayAccountService.queryOgPayAccount(oid, PaymentType.UnionFrictionlessPay);
|
|
|
@@ -273,6 +274,7 @@ public class ChinaumsSenselessPayService extends SuperService {
|
|
|
}
|
|
|
ChinaumsSenselessConf projectConf = (ChinaumsSenselessConf) projectAccountModelResultContent.getContent().getConf();
|
|
|
String mid = projectConf.getMchId();
|
|
|
+ log.info("获取项目及机构配置:{}", DateUtils.paresTime(System.currentTimeMillis(), DateUtils.patternyyyySSS));
|
|
|
|
|
|
//获取用户签约协议号
|
|
|
ChinaumsSenselessUserSignInfo userSignInfo = chinaumsSenselessUserSignInfoDao.findTopByUserIdAndMidAndExpire(userId, mid, false);
|
|
|
@@ -311,6 +313,7 @@ public class ChinaumsSenselessPayService extends SuperService {
|
|
|
shareOrderDao.save(shareOrder);
|
|
|
request.setSrcReserve(JsonUtil.toJson(Map.of("userId", userId, "oid", oid, "projectOid", projectOid, "orderNo", orderNo)));
|
|
|
payProductParameter.setMeta(BeanUtil.bean2Map(request));
|
|
|
+ log.info("构建参数完成:{}", DateUtils.paresTime(System.currentTimeMillis(), DateUtils.patternyyyySSS));
|
|
|
com.github.microservice.pay.client.ret.ResultContent<Object> collectionResultContent = senselessPayService.collection(payProductParameter);
|
|
|
if (!collectionResultContent.getState().equals(ResultState.Success)){
|
|
|
return ResultContent.buildFail("请求失败");
|
|
|
@@ -319,6 +322,7 @@ public class ChinaumsSenselessPayService extends SuperService {
|
|
|
if (bodyMap.get("respCode").equals("0000")){
|
|
|
return ResultContent.buildContent(collectionResultContent.getContent());
|
|
|
}
|
|
|
+ log.info("返回支付接口结果:{}", DateUtils.paresTime(System.currentTimeMillis(), DateUtils.patternyyyySSS));
|
|
|
return ResultContent.buildFail(bodyMap.get("respDesc").toString());
|
|
|
}
|
|
|
|