资源简介
微信小程序商城版前台+php后台完整版 有文档说明 下载后可根据说明进行配置
代码片段和文件信息
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 75 2017-07-13 08:44 前后台\master\wechat_shop-master\.gitignore
....... 203 2017-07-13 08:44 前后台\master\wechat_shop-master\.htaccess
....... 361782 2017-07-13 08:44 前后台\master\wechat_shop-master\20170630.sql
....... 1 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Common\index.html
....... 206 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Conf\config.php
....... 1 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Conf\index.html
....... 3270 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\AdminuserController.class.php
....... 4539 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\BrandController.class.php
....... 5794 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\CategoryController.class.php
....... 312 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\EmptyController.class.php
....... 4199 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\GuanggaoController.class.php
....... 632 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\IndexController.class.php
....... 15804 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\InoutController.class.php
....... 1551 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\LoginController.class.php
....... 8001 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\MoreController.class.php
....... 10204 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\OrderController.class.php
....... 215 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\PageController.class.php
....... 10001 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\ProAttributeController.class.php
....... 26170 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\ProductController.class.php
....... 6157 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\PublicController.class.php
....... 3330 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\SccatController.class.php
....... 13137 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\ShangchangController.class.php
....... 10322 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\UploadController.class.php
....... 2224 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\UserController.class.php
....... 6563 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Controller\VoucherController.class.php
....... 497 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Model\AdvertisementModel.class.php
....... 1 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\Model\index.html
....... 4521 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\View\Adminuser\add.html
....... 7710 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\View\Adminuser\adminuser.html
....... 6470 2017-07-13 08:44 前后台\master\wechat_shop-master\App\Admin\View\Baidumap\Css\public.css
............此处省略3719个文件信息
- 上一篇:php51购商城源码前后台
- 下一篇:小程序前台+thinkphp后台
相关资源
- 小程序前台+thinkphp后台
- php51购商城源码前后台
- 狮子鱼社区团购小程序独立版_13.7.0
- wampserver3.0.6的index.php测试页面文件
- (NK游戏推广)NK发布站PHP版 v3.5 Bet
- 电子商务系统Php+Mysql)
- 国外DDOSweb源码反射你懂的!
- php的最简单的调查问卷功能
- phpweb排版掉背景及排版自动被保存补
- PHP 简单验证码(支持跨域名调用)
- laravel框架:phpoffice/phpspreadsheet/phpexce
- htmlaspphp编码批量转换工具
- PHP实现EXCEL的导出与导入
- mysql-connector-odbc-3.51.30-win32.msi
- Thinkphp5整合excel导入导出
- 易得网站数据采集系统 v1.07 UTF-8
- php_pdo_sqlsrv_55_nts.dll_连接mssql专用
- PHP微信转盘抽奖前后台+数据库(完整
- 微信同城拼车小程序源码 [带后台+T
- PHPManagerForIIS-1.2.0-x64.msi
- 微信公众号第三方代授权API范例PHP
- PHP高级开发详细思维导图18张
- php HTTP请求类
- 105个微信QQ默认表情图片包emoji对照表
- PHP+MySQL私服发布站78479
- php私服发布站 代码
- CF image host 1.6.6汉化版 php图床源码无需
- 私服发布网站管理系统php版v1.2
- 酒店网站源码模板php版v1.0
- 校园兼职招聘系统源码PHP MYSQL.rar
评论
共有 条评论