UPD:风控发送邮件模板无区别问题

master
duLingLing 5 years ago
parent 42cee0be15
commit bb397c2e09

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.2.3</version> <version>1.2.4</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -792,7 +792,7 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
ctx.setVariable("order_type", event.getIntValue("order_type")); ctx.setVariable("order_type", event.getIntValue("order_type"));
ctx.setVariable("bdNamesStr", bdNamesStr); ctx.setVariable("bdNamesStr", bdNamesStr);
ctx.setVariable("reply_date", reply_date); ctx.setVariable("reply_date", reply_date);
ctx.setVariable("is_resend",new Date().compareTo(event.getDate("reply_email_date")) < 0); ctx.setVariable("is_resend",new Date().compareTo(event.getDate("reply_email_date")));
ctx.setVariable("reply_date_english", reply_date_english); ctx.setVariable("reply_date_english", reply_date_english);
ctx.setVariable("client", client); ctx.setVariable("client", client);
ctx.setVariable("uploadUrl", uploadUrl); ctx.setVariable("uploadUrl", uploadUrl);

@ -1,12 +1,12 @@
<html xmlns:th="http://www.thymeleaf.org" lang="zh"> <html xmlns:th="http://www.thymeleaf.org" lang="zh">
<b>Dear RoyalPay Merchant/BD :</b> <b>Dear RoyalPay Merchant/BD :</b>
<p>您好,您的风控材料—<span th:text="${client.company_name}"></span><span th:text="${client.client_moniker}"></span> <p>您好,您的风控材料—<span th:text="${client.company_name}"></span><span th:text="${client.client_moniker}"></span>
<span th:text="${!client.is_resend}">已逾期</span> <span th:if="${client.is_resend>0}">已逾期</span>
<span th:text="${client.is_resend}">提交期限即将于<span style="background: #FCE824" th:text="${reply_date}"></span>到期</span> <span th:if="${client.is_resend<0}">提交期限即将于<span style="background: #FCE824" th:text="${reply_date}"></span>到期</span>
,请及时提交风控材料。未能按时提交完整证明材料,支付渠道将被关停,请您务必配合调查。感谢。</p> ,请及时提交风控材料。未能按时提交完整证明材料,支付渠道将被关停,请您务必配合调查。感谢。</p>
<p>Your deadline for submission of risk materials for <span th:text="${client.company_name}"></span><span th:text="${client.client_moniker}"></span> <p>Your deadline for submission of risk materials for <span th:text="${client.company_name}"></span><span th:text="${client.client_moniker}"></span>
<span th:text="${!client.is_resend}">has expired</span> <span th:if="${client.is_resend>0}">has expired</span>
<span th:text="${client.is_resend}">is about to expire by <span th:text="${reply_date_english}" style="background: #FCE824"></span></span> <span th:if="${client.is_resend<0}">is about to expire by <span th:text="${reply_date_english}" style="background: #FCE824"></span></span>
, please submit the risk materials in time.If you can not provide qualified materials on time, the payment channels would be suspended or restricted with amount limit. Please be sure to assist the investigation. Thanks.</p> , please submit the risk materials in time.If you can not provide qualified materials on time, the payment channels would be suspended or restricted with amount limit. Please be sure to assist the investigation. Thanks.</p>
<h4>Best Regards</h4> <h4>Best Regards</h4>
<p> <p>

@ -777,11 +777,9 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
$scope.is_send_client = false; $scope.is_send_client = false;
$scope.changeIsSendClient = function(flag) { $scope.changeIsSendClient = function(flag) {
$scope.is_send_client = flag $scope.is_send_client = flag
};
$scope.send_clean_days = false;
$scope.changeIsSendClient = function (flag) {
$scope.send_clean_days = flag $scope.send_clean_days = flag
}; };
$scope.send_clean_days = false;
$scope.save = function (form) { $scope.save = function (form) {
if (form.$invalid) { if (form.$invalid) {
angular.forEach(form, function (item, key) { angular.forEach(form, function (item, key) {
@ -813,6 +811,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
var saveRiskBtn = document.getElementById('save-risk-btn'); var saveRiskBtn = document.getElementById('save-risk-btn');
var saveRiskBtnInnerHtmlBak = saveRiskBtn.innerHTML; var saveRiskBtnInnerHtmlBak = saveRiskBtn.innerHTML;
saveRiskBtn.disabled = true; saveRiskBtn.disabled = true;
debugger
saveRiskBtn.innerHTML = "<i class='fa fa-spinner fa-spin '></i> Processing"; saveRiskBtn.innerHTML = "<i class='fa fa-spinner fa-spin '></i> Processing";
$http.post('/risk/business/events', $scope.riskEvent).then(function (resp) { $http.post('/risk/business/events', $scope.riskEvent).then(function (resp) {
saveRiskBtn.innerHTML = saveRiskBtnInnerHtmlBak; saveRiskBtn.innerHTML = saveRiskBtnInnerHtmlBak;

Loading…
Cancel
Save