Administrator
2018-11-20 ffd597eeaeca0727182720af4be6bb4e608fd44a
参数类型修改
2个文件已修改
37 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/LostOrderController.java 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/SystemClientController.java 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/LostOrderController.java
@@ -48,9 +48,14 @@
     * @param out
     */
    @RequestMapping(value = "getLostOrderList", method = RequestMethod.POST)
    public void getLostOrderList(AcceptData acceptData, Long uid, int page, PrintWriter out) {
    public void getLostOrderList(AcceptData acceptData, Long uid, Integer page, PrintWriter out) {
        if (uid == null || uid <= 0) {
            out.print(JsonUtil.loadFalseResult(1, "用户未登录"));
            return;
        }
        if (page == null || page <= 0) {
            out.print(JsonUtil.loadFalseResult(1, "page格式错误"));
            return;
        }
@@ -99,7 +104,13 @@
    }
    @RequestMapping(value = "deleteLostOrder", method = RequestMethod.POST)
    public void deleteLostOrder(AcceptData acceptData, Long uid, long id, PrintWriter out) {
    public void deleteLostOrder(AcceptData acceptData, Long uid, Long id, PrintWriter out) {
        if (id == null || id <= 0) {
            out.print(JsonUtil.loadFalseResult(1, "请选择删除项"));
            return;
        }
        if (uid == null || uid <= 0) {
            out.print(JsonUtil.loadFalseResult(1, "用户未登录"));
            return;
fanli/src/main/java/com/yeshi/fanli/controller/client/SystemClientController.java
@@ -71,17 +71,17 @@
        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 {
                    if ("ios".equalsIgnoreCase(acceptData.getPlatform()))
                        iosPushService.addDeviceToken(null, Integer.parseInt(acceptData.getVersion()), 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;
    }