|
|
@ -289,7 +289,7 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
JSONObject client = null;
|
|
|
|
JSONObject client = null;
|
|
|
|
String clientMoniker = params.getString("client_moniker");
|
|
|
|
String clientMoniker = params.getString("client_moniker");
|
|
|
|
if (clientMoniker != null) {
|
|
|
|
if (clientMoniker != null) {
|
|
|
|
client = clientMapper.findClientByMoniker(clientMoniker);
|
|
|
|
client = clientMapper.findClientByMonikerAll(clientMoniker);
|
|
|
|
if(client == null){
|
|
|
|
if(client == null){
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -436,6 +436,7 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
MpWechatApi paymentApi = mpWechatApiProvider.getNewPaymentApi();
|
|
|
|
MpWechatApi paymentApi = mpWechatApiProvider.getNewPaymentApi();
|
|
|
|
TemplateMessage msg = initSendPartnerCloseChannelAndPartnerTemplate(account.getString("wx_openid"), paymentApi.getTemplateId("risk-forbidden-channelAndPartner"),client);
|
|
|
|
TemplateMessage msg = initSendPartnerCloseChannelAndPartnerTemplate(account.getString("wx_openid"), paymentApi.getTemplateId("risk-forbidden-channelAndPartner"),client);
|
|
|
|
paymentApi.sendTemplateMessage(msg);
|
|
|
|
paymentApi.sendTemplateMessage(msg);
|
|
|
|
|
|
|
|
logger.info("I'm send now to partner accounts : " + account.getString("wx_openid"));
|
|
|
|
} catch (WechatException e) {
|
|
|
|
} catch (WechatException e) {
|
|
|
|
logger.error("Wechat Message Error,风控关闭通道" + e.getMessage());
|
|
|
|
logger.error("Wechat Message Error,风控关闭通道" + e.getMessage());
|
|
|
|
publisher.publishEvent(new WechatExceptionEvent(this, e, "风控关闭通道"));
|
|
|
|
publisher.publishEvent(new WechatExceptionEvent(this, e, "风控关闭通道"));
|
|
|
|