yujian
2019-11-26 0b22bf61e42c7966f5395e784c796409930556da
ios 版本区分
1个文件已修改
41 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/BrandControllerV2.java 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/BrandControllerV2.java
@@ -352,11 +352,17 @@
     */
    @RequestMapping(value = "getList", method = RequestMethod.POST)
    public void getList(AcceptData acceptData, Integer page, Long cid, Long uid, PrintWriter out) {
        if (VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(), acceptData.getVersion())) {
            getListV3(acceptData, page, cid, uid, out);
            return;
        if ("ios".equalsIgnoreCase(acceptData.getPlatform())) {
            if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
                getListV3(acceptData, page, cid, uid, out);
                return;
            }
        } else {
            if (VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(), acceptData.getVersion())) {
                getListV3(acceptData, page, cid, uid, out);
                return;
            }
        }
        
        if (page == null || page < 1) {
            out.print(JsonUtil.loadFalseResult("页码不正确"));
@@ -400,9 +406,17 @@
     */
    @RequestMapping(value = "getShopInfoV2", method = RequestMethod.POST)
    public void getShopInfoV2(AcceptData acceptData, Integer page, Long id, Long uid, PrintWriter out) {
        if (VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(), acceptData.getVersion())) {
            getShopInfoV3(acceptData, page, id, uid, out);
            return;
        if ("ios".equalsIgnoreCase(acceptData.getPlatform())) {
            if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
                getShopInfoV3(acceptData, page, id, uid, out);
                return;
            }
        } else {
            if (VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(), acceptData.getVersion())) {
                getShopInfoV3(acceptData, page, id, uid, out);
                return;
            }
        }
        
        if (id == null) {
@@ -563,9 +577,16 @@
     */
    @RequestMapping(value = "getHistoryV2", method = RequestMethod.POST)
    public void getHistoryV2(AcceptData acceptData, Integer page, Long uid, Integer type, PrintWriter out) {
        if (VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(), acceptData.getVersion())) {
            getHistoryV3(acceptData, page, uid, type, out);
            return;
        if ("ios".equalsIgnoreCase(acceptData.getPlatform())) {
            if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
                getHistoryV3(acceptData, page, uid, type, out);
                return;
            }
        } else {
            if (VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(), acceptData.getVersion())) {
                getHistoryV3(acceptData, page, uid, type, out);
                return;
            }
        }
        
        if (type == null) {