|
|
|
@ -627,9 +627,12 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void sendNoticeMessage(final NoticeInfo notice, final String[] client_monikers) {
|
|
|
|
|
sendingAppleMsgPool.execute(() -> {
|
|
|
|
|
for (String clientMoniker : client_monikers) {
|
|
|
|
|
JSONObject client = clientManager.getClientInfoByMoniker(clientMoniker);
|
|
|
|
|
if(client==null){
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
sendingAppleMsgPool.execute(() -> {
|
|
|
|
|
List<JSONObject> tokens = clientDeviceTokenMapper.listAllTokensByClient_id(client.getIntValue("client_id"));
|
|
|
|
|
if (tokens != null && tokens.size() > 0) {
|
|
|
|
|
for (JSONObject devToken : tokens) {
|
|
|
|
@ -667,9 +670,9 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void sendCashbackMessage(final String cashbackAmount, final JSONObject order) {
|
|
|
|
|