package com.novel.test;

import com.novel.clean.util.CleanUtil;

import java.util.Map;

public class Test {
    public static void main(String[] args) {
        String reqParam="{\"sign\":\"985d1ecef2eabd7917c6b4369e15905c\",\"fileType\":\"1\",\"time\":\"1570766944214\",\"is_ad_version\":\"1\",\"source\":\"dialog2\",\"readChapterNum\":\"1\",\"bookId\":\"4198300\",\"chapterNum\":\"2\",\"userPath\":\"dialog,dialog2,C2\"}";
        CleanUtil cleanUtil =new CleanUtil();
        Map<String, String> book=cleanUtil.getBook(reqParam);
        //System.out.println(book.get("bookId"));
        //System.out.println(book.get("chapterNum"));
        String ua="Mozilla/5.0 (Linux; Android 7.1.1; OD103 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/62.0.3202.84 Mobile Safari/537.36\t-999";
        String s1 = ua.split(";")[1].split(" ")[2];
        System.out.print(s1);
    }
}
