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