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