修复可能的空指针遗产

This commit is contained in:
egzosn
2019-12-26 20:31:36 +08:00
parent 972a8f6294
commit f5accfbf60

View File

@@ -529,7 +529,7 @@ public class AliPayService extends BasePayService<AliPayConfigStorage> {
//获取公共参数
Map<String, Object> parameters = getPublicParameters(transactionType);
//设置请求参数的集合
parameters.put(BIZ_CONTENT, getContentToJson(tradeNoOrBillDate.toString(), outTradeNoBillType));
parameters.put(BIZ_CONTENT, getContentToJson((String) tradeNoOrBillDate, outTradeNoBillType));
//设置签名
setSign(parameters);
return requestTemplate.getForObject(getReqUrl() + "?" + UriVariables.getMapToParameters(parameters), JSONObject.class);