| | |
| | |
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.yeshi.utils.JsonUtil;
|
| | |
|
| | | import com.google.gson.Gson;
|
| | | import com.google.gson.GsonBuilder;
|
| | |
| | | import com.yeshi.fanli.service.inter.config.SystemClientParamsService;
|
| | | import com.yeshi.fanli.service.inter.config.SystemService;
|
| | | import com.yeshi.fanli.service.inter.push.IOSPushService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.ThreadUtil;
|
| | | import org.yeshi.utils.JsonUtil;
|
| | |
|
| | | import net.sf.json.JSONObject;
|
| | |
|
| | |
| | | data.put("count", list.size());
|
| | | data.put("systemClientParamsList", gson.toJson(list));
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | ThreadUtil.run(new Runnable() {
|
| | | @Override
|
| | | public void run() {
|
| | | try {
|
| | | iosPushService.addDeviceToken(null, null, acceptData.getDevice());
|
| | | } catch (Exception e) {
|
| | | }
|
| | | }
|
| | | });
|
| | | // ThreadUtil.run(new Runnable() {
|
| | | // @Override
|
| | | // public void run() {
|
| | | // try {
|
| | | // if ("ios".equalsIgnoreCase(acceptData.getPlatform()))
|
| | | // iosPushService.addDeviceToken(null, Integer.parseInt(acceptData.getVersion()), null,
|
| | | // acceptData.getDevice());
|
| | | // } catch (Exception e) {
|
| | | // }
|
| | | // }
|
| | | // });
|
| | |
|
| | | return;
|
| | | }
|