|
|
@ -1614,9 +1614,9 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
checkAddRate(config, "AlipayOnline", "alipayonline_rate_value", org, "min_alipayonline_rate");
|
|
|
|
checkAddRate(config, "AlipayOnline", "alipayonline_rate_value", org, "min_alipayonline_rate");
|
|
|
|
checkAddRate(config, "Bestpay", "bestpay_rate_value", org, "min_bestpay_rate");
|
|
|
|
checkAddRate(config, "Bestpay", "bestpay_rate_value", org, "min_bestpay_rate");
|
|
|
|
checkAddRate(config, "jd", "jd_rate_value", org, "min_jd_rate");
|
|
|
|
checkAddRate(config, "jd", "jd_rate_value", org, "min_jd_rate");
|
|
|
|
checkAddRate(config, "hf", "hf_rate_value", org, "min_hf_rate");
|
|
|
|
// checkAddRate(config, "hf", "hf_rate_value", org, "min_hf_rate");
|
|
|
|
checkAddRate(config, "Rpay", "Rpay_rate_value", org, "min_Rpay_rate");
|
|
|
|
checkAddRate(config, "Rpay", "Rpay_rate_value", org, "min_Rpay_rate");
|
|
|
|
checkAddRate(config, "Yeepay", "yeepay_rate_value", org, "min_yeepay_rate");
|
|
|
|
// checkAddRate(config, "Yeepay", "yeepay_rate_value", org, "min_yeepay_rate");
|
|
|
|
checkAddRate(config, "CB_BankPay", "min_cb_bankpay_value", org, "min_cb_bankpay_rate");
|
|
|
|
checkAddRate(config, "CB_BankPay", "min_cb_bankpay_value", org, "min_cb_bankpay_rate");
|
|
|
|
|
|
|
|
|
|
|
|
configNewClientRate(config, clientId, "Wechat", "wechat_rate_value", org, "min_wechat_rate");
|
|
|
|
configNewClientRate(config, clientId, "Wechat", "wechat_rate_value", org, "min_wechat_rate");
|
|
|
@ -1624,9 +1624,9 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
configNewClientRate(config, clientId, "AlipayOnline", "alipayonline_rate_value", org, "min_alipayonline_rate");
|
|
|
|
configNewClientRate(config, clientId, "AlipayOnline", "alipayonline_rate_value", org, "min_alipayonline_rate");
|
|
|
|
configNewClientRate(config, clientId, "Bestpay", "bestpay_rate_value", org, "min_bestpay_rate");
|
|
|
|
configNewClientRate(config, clientId, "Bestpay", "bestpay_rate_value", org, "min_bestpay_rate");
|
|
|
|
configNewClientRate(config, clientId, "jd", "jd_rate_value", org, "min_jd_rate");
|
|
|
|
configNewClientRate(config, clientId, "jd", "jd_rate_value", org, "min_jd_rate");
|
|
|
|
configNewClientRate(config, clientId, "hf", "hf_rate_value", org, "min_hf_rate");
|
|
|
|
// configNewClientRate(config, clientId, "hf", "hf_rate_value", org, "min_hf_rate");
|
|
|
|
configNewClientRate(config, clientId, "Rpay", "Rpay_rate_value", org, "min_Rpay_rate");
|
|
|
|
configNewClientRate(config, clientId, "Rpay", "Rpay_rate_value", org, "min_Rpay_rate");
|
|
|
|
configNewClientRate(config, clientId, "Yeepay", "yeepay_rate_value", org, "min_yeepay_rate");
|
|
|
|
// configNewClientRate(config, clientId, "Yeepay", "yeepay_rate_value", org, "min_yeepay_rate");
|
|
|
|
configNewClientRate(config, clientId, "CB_BankPay", "cb_bankpay_rate_value", org, "min_cb_bankpay_rate");
|
|
|
|
configNewClientRate(config, clientId, "CB_BankPay", "cb_bankpay_rate_value", org, "min_cb_bankpay_rate");
|
|
|
|
//todo 暂不更新Rpay+ 费率信息
|
|
|
|
//todo 暂不更新Rpay+ 费率信息
|
|
|
|
//rpayApi.modifySurchargeConfig(client);
|
|
|
|
//rpayApi.modifySurchargeConfig(client);
|
|
|
@ -4281,7 +4281,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
checkOrgPermission(manager, client);
|
|
|
|
checkOrgPermission(manager, client);
|
|
|
|
if (StringUtils.isEmpty(client.getString("cb_bankpay_url"))) {
|
|
|
|
if (StringUtils.isEmpty(client.getString("cb_bankpay_url"))) {
|
|
|
|
String longUrl = PlatformEnvironment.getEnv().concatUrl("/sys/partners/" + client.getString("client_moniker") + "/cb_bankpay/link");
|
|
|
|
String longUrl = PlatformEnvironment.getEnv().concatUrl("/sys/partners/" + client.getString("client_moniker") + "/cb_bankpay/link/pc");
|
|
|
|
String cb_bankpay_url = getCBBankShortLink(longUrl);
|
|
|
|
String cb_bankpay_url = getCBBankShortLink(longUrl);
|
|
|
|
client.put("cb_bankpay_url", cb_bankpay_url);
|
|
|
|
client.put("cb_bankpay_url", cb_bankpay_url);
|
|
|
|
client.put("enable_cb_bankpay_link", allow);
|
|
|
|
client.put("enable_cb_bankpay_link", allow);
|
|
|
@ -4305,6 +4305,21 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
return String.format(PlatformEnvironment.getEnv().concatUrl(paymentConfig.getString("path")), clientMoniker);
|
|
|
|
return String.format(PlatformEnvironment.getEnv().concatUrl(paymentConfig.getString("path")), clientMoniker);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void switchPaymentConfigPC(String clientMoniker, HttpServletResponse response) throws IOException {
|
|
|
|
|
|
|
|
JSONObject client = clientMapper.findClientByMoniker(clientMoniker);
|
|
|
|
|
|
|
|
if (client == null) {
|
|
|
|
|
|
|
|
throw new BadRequestException("partner code is not exists!");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
JSONObject paymentConfig = sysChannelConfigMapper.findOne(1);
|
|
|
|
|
|
|
|
if (paymentConfig == null) {
|
|
|
|
|
|
|
|
throw new BadRequestException("服务商未开启快捷支付");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
String path = paymentConfig.getString("path");
|
|
|
|
|
|
|
|
path = path.replaceAll("app","pc");
|
|
|
|
|
|
|
|
response.sendRedirect(String.format(PlatformEnvironment.getEnv().concatUrl(path), clientMoniker));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private TemplateMessage initClientMessage(JSONObject client, String newExpiryDate, String wechatOpenid, String templateId) {
|
|
|
|
private TemplateMessage initClientMessage(JSONObject client, String newExpiryDate, String wechatOpenid, String templateId) {
|
|
|
|
TemplateMessage notice = new TemplateMessage(wechatOpenid, templateId, null);
|
|
|
|
TemplateMessage notice = new TemplateMessage(wechatOpenid, templateId, null);
|
|
|
|
notice.put("first", "您好,您的合同费率已到期,根据合同协议系统已自动为您延期1年。", "#ff0000");
|
|
|
|
notice.put("first", "您好,您的合同费率已到期,根据合同协议系统已自动为您延期1年。", "#ff0000");
|
|
|
|