|
|
|
@ -331,9 +331,9 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
|
JSONObject type = new JSONObject();
|
|
|
|
|
type.put("send_type", "risk");
|
|
|
|
|
type.put("id", event.getString("risk_id"));
|
|
|
|
|
apnsMessageHelper.sendAppleMessageDetail(
|
|
|
|
|
LocaleSupport.localeMessage("app.message.title.risk"), LocaleSupport.localeMessage("app.message.body.risk"),
|
|
|
|
|
token, event, type);
|
|
|
|
|
// apnsMessageHelper.sendAppleMessageDetail(
|
|
|
|
|
// LocaleSupport.localeMessage("app.message.title.risk"), LocaleSupport.localeMessage("app.message.body.risk"),
|
|
|
|
|
// token, event, type);
|
|
|
|
|
AppMsgSender sender = senderMap.get(devToken.getString("client_type"));
|
|
|
|
|
if (token == null || sender == null) {
|
|
|
|
|
continue;
|
|
|
|
@ -352,7 +352,7 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
logger.error("出错了:" + e.getMessage());
|
|
|
|
|
appMessageLogMapper.updateStatus(log.getString("send_id"), 1, e.getMessage());
|
|
|
|
|
throw new ServerErrorException("Send App " + devToken.getString("client_type") + " Failed", e);
|
|
|
|
|
throw new ServerErrorException("Send App " + devToken.getString("client_type") + " Failed" + ",token" + token, e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|