資源簡介
千圖千庫等12網素材解析源碼程序
支持解析網站:千圖/90設計/千庫/覓元素/包圖/攝圖/全圖/圖品匯等網站
支持千圖其他各站圖片解析,解析需要配置相應的官方會員cookie。
后臺支持批量生產網站會員賬號密碼以及會員各種權限!
支持解析網站:千圖/90設計/千庫/覓元素/包圖/攝圖/全圖/圖品匯等網站
支持千圖其他各站圖片解析,解析需要配置相應的官方會員cookie。
后臺支持批量生產網站會員賬號密碼以及會員各種權限!
代碼片段和文件信息
package?com.baidu.ueditor;
import?java.util.Map;
import?javax.servlet.http.HttpServletRequest;
import?com.baidu.ueditor.define.ActionMap;
import?com.baidu.ueditor.define.AppInfo;
import?com.baidu.ueditor.define.baseState;
import?com.baidu.ueditor.define.State;
import?com.baidu.ueditor.hunter.FileManager;
import?com.baidu.ueditor.hunter.ImageHunter;
import?com.baidu.ueditor.upload.Uploader;
public?class?ActionEnter?{
private?HttpServletRequest?request?=?null;
private?String?rootPath?=?null;
private?String?contextPath?=?null;
private?String?actionType?=?null;
private?ConfigManager?configManager?=?null;
public?ActionEnter?(?HttpServletRequest?request?String?rootPath?)?{
this.request?=?request;
this.rootPath?=?rootPath;
this.actionType?=?request.getParameter(?“action“?);
this.contextPath?=?request.getContextPath();
this.configManager?=?ConfigManager.getInstance(?this.rootPath?this.contextPath?request.getRequestURI()?);
}
public?String?exec?()?{
String?callbackName?=?this.request.getParameter(“callback“);
if?(?callbackName?!=?null?)?{
if?(?!validCallbackName(?callbackName?)?)?{
return?new?baseState(?false?AppInfo.ILLEGAL?).toJSONString();
}
return?callbackName+“(“+this.invoke()+“);“;
}?else?{
return?this.invoke();
}
}
public?String?invoke()?{
if?(?actionType?==?null?||?!ActionMap.mapping.containsKey(?actionType?)?)?{
return?new?baseState(?false?AppInfo.INVALID_ACTION?).toJSONString();
}
if?(?this.configManager?==?null?||?!this.configManager.valid()?)?{
return?new?baseState(?false?AppInfo.CONFIG_ERROR?).toJSONString();
}
State?state?=?null;
int?actionCode?=?ActionMap.getType(?this.actionType?);
Mapject>?conf?=?null;
switch?(?actionCode?)?{
case?ActionMap.CONFIG:
return?this.configManager.getAllConfig().toString();
case?ActionMap.UPLOAD_IMAGE:
case?ActionMap.UPLOAD_SCRAWL:
case?ActionMap.UPLOAD_VIDEO:
case?ActionMap.UPLOAD_FILE:
conf?=?this.configManager.getConfig(?actionCode?);
state?=?new?Uploader(?request?conf?).doExec();
break;
case?ActionMap.CATCH_IMAGE:
conf?=?configManager.getConfig(?actionCode?);
String[]?list?=?this.request.getParameterValues(?(String)conf.get(?“fieldName“?)?);
state?=?new?ImageHunter(?conf?).capture(?list?);
break;
case?ActionMap.LIST_IMAGE:
case?ActionMap.LIST_FILE:
conf?=?configManager.getConfig(?actionCode?);
int?start?=?this.getStartIndex();
state?=?new?FileManager(?conf?).listFile(?start?);
break;
}
return?state.toJSONString();
}
public?int?getStartIndex?()?{
String?start?=?this.request.getParameter(?“start“?);
try?{
return?Integer.parseInt(?start?);
}?catch?(?Exception?e?)?{
return?0;
}
}
/**
?*?callback參數驗證
?*/
public?boolean?valid
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????.CA....??????8196??2019-03-05?21:41??千圖千庫等12網素材解析源碼程序\.DS_Store
????.CA....?????????6??2019-02-11?17:36??千圖千庫等12網素材解析源碼程序\.git\COMMIT_EDITMSG
????.CA....???????307??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\config
????.CA....????????73??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\desc
????.CA....????????99??2019-03-06?11:43??千圖千庫等12網素材解析源碼程序\.git\FETCH_HEAD
????.CA....????????23??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\HEAD
????.CA....???????478??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\applypatch-msg.sample
????.CA....???????896??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\commit-msg.sample
????.CA....??????3327??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\fsmonitor-watchman.sample
????.CA....???????189??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\post-update.sample
????.CA....???????424??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\pre-applypatch.sample
????.CA....??????1642??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\pre-commit.sample
????.CA....??????1348??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\pre-push.sample
????.CA....??????4898??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\pre-reba
????.CA....???????544??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\pre-receive.sample
????.CA....??????1492??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\prepare-commit-msg.sample
????.CA....??????3610??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\hooks\update.sample
????.CA....????178159??2019-03-06?11:43??千圖千庫等12網素材解析源碼程序\.git\index
????.CA....???????240??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\info\exclude
????.CA....??????3889??2019-03-06?11:43??千圖千庫等12網素材解析源碼程序\.git\logs\HEAD
????.CA....??????3889??2019-03-06?11:43??千圖千庫等12網素材解析源碼程序\.git\logs\refs\heads\master
????.CA....???????173??2019-02-11?17:30??千圖千庫等12網素材解析源碼程序\.git\logs\refs\remotes\origin\HEAD
????.CA....??????3174??2019-03-06?11:43??千圖千庫等12網素材解析源碼程序\.git\logs\refs\remotes\origin\master
????.CA....???????719??2019-02-11?17:36??千圖千庫等12網素材解析源碼程序\.git\ob
????.CA....??????8089??2019-02-11?17:36??千圖千庫等12網素材解析源碼程序\.git\ob
????.CA....?????34078??2019-02-11?17:36??千圖千庫等12網素材解析源碼程序\.git\ob
????.CA....???????857??2019-02-11?17:36??千圖千庫等12網素材解析源碼程序\.git\ob
????.CA....??????1072??2019-02-11?17:36??千圖千庫等12網素材解析源碼程序\.git\ob
????.CA....?????74267??2019-02-11?17:36??千圖千庫等12網素材解析源碼程序\.git\ob
????.CA....???????502??2019-02-11?17:36??千圖千庫等12網素材解析源碼程序\.git\ob
............此處省略5932個文件信息
評論
共有 條評論