| | |
| | |
|
| | | 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;
|
| | |
|
| | |
| | | @Override
|
| | | public void run() {
|
| | | try {
|
| | | iosPushService.addDeviceToken(null, null, acceptData.getDevice());
|
| | | if ("ios".equalsIgnoreCase(acceptData.getPlatform()))
|
| | | iosPushService.addDeviceToken(null, Integer.parseInt(acceptData.getVersion()), null,
|
| | | acceptData.getDevice());
|
| | | } catch (Exception e) {
|
| | | }
|
| | | }
|