|
|
|
@ -276,6 +276,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
private static final String CLIENT_AGREE_FILE = "client_agree_file";
|
|
|
|
|
private static final String CLIENT_COMPANY_FILE = "client_company_file";
|
|
|
|
|
private static final String CLIENT_APPLY_FILE = "client_apply_file";
|
|
|
|
|
private static final List<String> tags = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
@Value("${app.agreetemplate.classic.path}")
|
|
|
|
|
private String agreetemplatePdfPath;
|
|
|
|
@ -818,6 +819,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
@Override
|
|
|
|
|
public void run() {
|
|
|
|
|
try {
|
|
|
|
|
tags.add("account");
|
|
|
|
|
SendMail sendMail = new SendMail();
|
|
|
|
|
Set<String> to = new HashSet<>();
|
|
|
|
|
to.add(mailTo);
|
|
|
|
@ -826,6 +828,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
sendMail.setMailCcs(emails);
|
|
|
|
|
sendMail.setTitle("Your RoyalPay Cross-border Payment has been set up");
|
|
|
|
|
sendMail.setContent(content);
|
|
|
|
|
sendMail.setTags(tags);
|
|
|
|
|
JSONObject mailResult = mailGunService.sendMail(sendMail);
|
|
|
|
|
clientModifySupport.processClientModify(new EmailModify(account, client.getString("client_moniker"), 3, mailResult.getString("mail_id")));
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
@ -880,6 +883,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
sendMail.setMailCcs(emails);
|
|
|
|
|
sendMail.setTitle("Your Partner Account Has Been Authenticated Successfully");
|
|
|
|
|
sendMail.setContent(content);
|
|
|
|
|
sendMail.setTags(tags);
|
|
|
|
|
JSONObject mailResult = mailGunService.sendMail(sendMail);
|
|
|
|
|
clientModifySupport.processClientModify(new EmailModify(account, client.getString("client_moniker"), 3, mailResult.getString("mail_id")));
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
@ -1621,8 +1625,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
@Override
|
|
|
|
|
public String getQrCodeBoard(JSONObject client, QRCodeConfig config,JSONObject account,String plantform) {
|
|
|
|
|
// JSONObject org = orgMapper.findOne(client.getIntValue("org_id"));
|
|
|
|
|
// return merchantInfoProvider.getQrCodeBoard(client, config);
|
|
|
|
|
return merchantInfoProvider.getQrCodeBoard(client, config,account,plantform);
|
|
|
|
|
return merchantInfoProvider.getQrCodeBoard(client, config);
|
|
|
|
|
// return merchantInfoProvider.getQrCodeBoard(client, config,account,plantform);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -1646,8 +1650,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
qrboardConfig.put("brandw", "600");
|
|
|
|
|
qrboardConfig.put("brandh", "200");
|
|
|
|
|
String type = qrboardConfig.getString("type");
|
|
|
|
|
QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config,mongoTemplate,manager,plantform);
|
|
|
|
|
// QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config);
|
|
|
|
|
// QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config,mongoTemplate,manager,plantform);
|
|
|
|
|
QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config);
|
|
|
|
|
board.drawBoardImage(ous);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw new ServerErrorException("QR board config not set for current organize", e);
|
|
|
|
@ -1667,8 +1671,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
JSONObject qrboardConfig = JSON.parseObject(qrBoardConfigString);
|
|
|
|
|
|
|
|
|
|
String type = qrboardConfig.getString("type");
|
|
|
|
|
QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config,mongoTemplate,manager,plantform);
|
|
|
|
|
// QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config);
|
|
|
|
|
// QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config,mongoTemplate,manager,plantform);
|
|
|
|
|
QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config);
|
|
|
|
|
board.drawBoardImage(ous);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw new ServerErrorException("QR board config not set for current organize", e);
|
|
|
|
|