[Deprecated] PixivURL 将旧版Search接口设为弃用;

This commit is contained in:
LamGC 2020-06-01 15:58:54 +08:00
parent 3f6c87da3c
commit ee02072b2d

View File

@ -27,21 +27,30 @@ public class PixivURL {
/** /**
* P站搜索请求url * P站搜索请求url
* @deprecated 该接口已被替换, 请使用{@link PixivSearchBuilder}构造搜索Url
* @see PixivSearchBuilder
*/ */
@Deprecated
private static final String PIXIV_SEARCH_URL = "https://www.pixiv.net/search.php"; private static final String PIXIV_SEARCH_URL = "https://www.pixiv.net/search.php";
/** /**
* P站搜索用户url * P站搜索用户url
* 需要替换的参数: * 需要替换的参数:
* {nick} - 用户昵称部分名称 * {nick} - 用户昵称部分名称
* @deprecated 该接口已被替换, 请使用{@link PixivSearchBuilder}构造搜索Url
* @see PixivSearchBuilder
*/ */
@Deprecated
public static final String PIXIV_SEARCH_USER_URL = PIXIV_SEARCH_URL + "?s_mode=s_usr&nick={nick}"; public static final String PIXIV_SEARCH_USER_URL = PIXIV_SEARCH_URL + "?s_mode=s_usr&nick={nick}";
/** /**
* P站搜索插画url * P站搜索插画url
* 需要替换的参数: * 需要替换的参数:
* {word} - 插画相关文本 * {word} - 插画相关文本
* @deprecated 该接口已被替换, 请使用{@link PixivSearchBuilder}构造搜索Url
* @see PixivSearchBuilder
*/ */
@Deprecated
public static final String PIXIV_SEARCH_TAG_URL = PIXIV_SEARCH_URL + "?s_mode=s_tag&word={word}"; public static final String PIXIV_SEARCH_TAG_URL = PIXIV_SEARCH_URL + "?s_mode=s_tag&word={word}";
/** /**