add rservice app notify

master
luoyang 5 years ago
parent 372a4346bb
commit f1b9f8d9be

@ -217,7 +217,7 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
String title = params.getString("title");
String body = params.getString("body");
String url = decData(params.getString("url"), key, svcInfo.getString("platform_pri_key"));
sendRServiceNotifyMessage(client,title,body,url);
sendRServiceNotifyMessage(client, title, body, url);
result.put("result_status", "SUCCESS");
} catch (Exception e) {
logger.error("geek notify app fail:{} - {}",sourceCode,e.getMessage());
@ -253,7 +253,11 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
}
private void sendRServiceNotifyMessage(JSONObject client, String title, String body, String url) {
logger.debug("sendAnnualMessage Begin");
logger.debug("sendGeekMessage Begin");
// List<JSONObject> clientTokens = clientDeviceTokenMapper.listTokensByClient_id(client.getIntValue("client_id"));
// for (JSONObject token : clientTokens) {
//
// }
JSONObject devToken = clientDeviceTokenMapper.getTestTokens();
Runnable task = () -> {
String token = devToken.getString("token");

Loading…
Cancel
Save