微信商城小程序含有后台微信商城小程序含有后台微信商城小程序含有后台
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-09-28 17:43 shop
文件 174 2017-09-28 15:49 shop.buildpath
文件 75 2017-09-28 15:58 shop.gitignore
文件 203 2017-09-28 15:58 shop.htaccess
文件 514 2017-09-28 15:49 shop.project
目录 0 2017-09-28 15:49 shop.settings
文件 80 2017-09-28 15:49 shop.settingsorg.eclipse.php.core.prefs
目录 0 2017-09-28 15:57 shopApp
目录 0 2017-09-28 15:57 shopAppAdmin
目录 0 2017-09-28 15:57 shopAppAdminCommon
文件 1 2017-09-28 15:57 shopAppAdminCommonindex.html
目录 0 2017-09-28 15:57 shopAppAdminConf
文件 206 2017-09-28 15:57 shopAppAdminConfconfig.php
文件 1 2017-09-28 15:57 shopAppAdminConfindex.html
目录 0 2017-09-28 15:57 shopAppAdminController
文件 3270 2017-09-28 15:57 shopAppAdminControllerAdminuserController.class.php
文件 4539 2017-09-28 15:57 shopAppAdminControllerBrandController.class.php
文件 5794 2017-09-28 15:57 shopAppAdminControllerCategoryController.class.php
文件 312 2017-09-28 15:57 shopAppAdminControllerEmptyController.class.php
文件 4199 2017-09-28 15:57 shopAppAdminControllerGuanggaoController.class.php
文件 632 2017-09-28 15:57 shopAppAdminControllerIndexController.class.php
文件 15804 2017-09-28 15:57 shopAppAdminControllerInoutController.class.php
文件 1551 2017-09-28 15:57 shopAppAdminControllerLoginController.class.php
文件 8001 2017-09-28 15:57 shopAppAdminControllerMoreController.class.php
文件 10204 2017-09-28 15:57 shopAppAdminControllerOrderController.class.php
文件 215 2017-09-28 15:57 shopAppAdminControllerPageController.class.php
文件 10001 2017-09-28 15:57 shopAppAdminControllerProAttributeController.class.php
文件 26170 2017-09-28 15:57 shopAppAdminControllerProductController.class.php
文件 6157 2017-09-28 15:57 shopAppAdminControllerPublicController.class.php
文件 3330 2017-09-28 15:57 shopAppAdminControllerSccatController.class.php
文件 13137 2017-09-28 15:57 shopAppAdminControllerShangchangController.class.php
............此处省略3453个文件信息
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 validCallbackName ( String name ) {
if ( name.matches( “^[a-zA-Z_]+[\w0-9_]*$“ ) ) {
return true;
}
retur
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-09-28 17:43 shop
文件 174 2017-09-28 15:49 shop.buildpath
文件 75 2017-09-28 15:58 shop.gitignore
文件 203 2017-09-28 15:58 shop.htaccess
文件 514 2017-09-28 15:49 shop.project
目录 0 2017-09-28 15:49 shop.settings
文件 80 2017-09-28 15:49 shop.settingsorg.eclipse.php.core.prefs
目录 0 2017-09-28 15:57 shopApp
目录 0 2017-09-28 15:57 shopAppAdmin
目录 0 2017-09-28 15:57 shopAppAdminCommon
文件 1 2017-09-28 15:57 shopAppAdminCommonindex.html
目录 0 2017-09-28 15:57 shopAppAdminConf
文件 206 2017-09-28 15:57 shopAppAdminConfconfig.php
文件 1 2017-09-28 15:57 shopAppAdminConfindex.html
目录 0 2017-09-28 15:57 shopAppAdminController
文件 3270 2017-09-28 15:57 shopAppAdminControllerAdminuserController.class.php
文件 4539 2017-09-28 15:57 shopAppAdminControllerBrandController.class.php
文件 5794 2017-09-28 15:57 shopAppAdminControllerCategoryController.class.php
文件 312 2017-09-28 15:57 shopAppAdminControllerEmptyController.class.php
文件 4199 2017-09-28 15:57 shopAppAdminControllerGuanggaoController.class.php
文件 632 2017-09-28 15:57 shopAppAdminControllerIndexController.class.php
文件 15804 2017-09-28 15:57 shopAppAdminControllerInoutController.class.php
文件 1551 2017-09-28 15:57 shopAppAdminControllerLoginController.class.php
文件 8001 2017-09-28 15:57 shopAppAdminControllerMoreController.class.php
文件 10204 2017-09-28 15:57 shopAppAdminControllerOrderController.class.php
文件 215 2017-09-28 15:57 shopAppAdminControllerPageController.class.php
文件 10001 2017-09-28 15:57 shopAppAdminControllerProAttributeController.class.php
文件 26170 2017-09-28 15:57 shopAppAdminControllerProductController.class.php
文件 6157 2017-09-28 15:57 shopAppAdminControllerPublicController.class.php
文件 3330 2017-09-28 15:57 shopAppAdminControllerSccatController.class.php
文件 13137 2017-09-28 15:57 shopAppAdminControllerShangchangController.class.php
............此处省略3453个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)