资源简介
一套微信小程序商城源码+thinkPHP后台管理+Mysql数据库
中和管理 产品管理 品牌管理 会员管理 管理员设置 订单管理分内管理 优惠券管理 广告管理等
代码片段和文件信息
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 2018-04-09 15:59 thinkphp+小程序商城+前端+后台+mysql\
目录 0 2018-07-19 11:25 thinkphp+小程序商城+前端+后台+mysql\master\
目录 0 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\
文件 75 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\.gitignore
文件 203 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\.htaccess
文件 361782 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\20170630.sql
目录 0 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\
目录 0 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\
目录 0 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Common\
文件 1 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Common\index.html
目录 0 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Conf\
文件 206 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Conf\config.php
文件 1 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Conf\index.html
目录 0 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\
文件 3270 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\AdminuserController.class.php
文件 4539 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\BrandController.class.php
文件 5794 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\CategoryController.class.php
文件 312 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\EmptyController.class.php
文件 4199 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\GuanggaoController.class.php
文件 632 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\IndexController.class.php
文件 15804 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\InoutController.class.php
文件 1551 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\LoginController.class.php
文件 8001 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\MoreController.class.php
文件 10204 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\OrderController.class.php
文件 215 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\PageController.class.php
文件 10001 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\ProAttributeController.class.php
文件 26170 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\ProductController.class.php
文件 6157 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\PublicController.class.php
文件 3330 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\SccatController.class.php
文件 13137 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\ShangchangController.class.php
文件 10322 2017-07-13 08:44 thinkphp+小程序商城+前端+后台+mysql\master\wechat_shop-master\App\Admin\Controller\UploadController.class.php
............此处省略3408个文件信息
- 上一篇:仿金蝶电商ERP进销存V8带上传合同.zip
- 下一篇:黑马PHP39期.txt
相关资源
- 黑马PHP39期.txt
- 仿金蝶电商ERP进销存系统180842
- mysql、apache、php一键安装
- PHP众筹程序源码
- 2018版PHP自动发卡平台源码阿洋源码加
- 中英文php7.1 文档for Dash Mac
- 基于PHP+MYSQL的图书网站
- PHP网上订餐系统各种模板汇总
- php仿微信朋友圈网站源码
- 马良神笔开源自助建站cms系统php版v
- ThinkPHP5简易商城
- PHP售茶网站源码
- thinkphp3.2.3写的简易cms易扩展整合了百
- whatsns问答系统V3.7ask2问答系统前身)
- 推券客CMS淘宝优惠券网站源码 v2.0.1
- WampServer 2.2版本
- _ThinkPHP5.0入门教程
- php-5.4.8-Win32-VC9-x86.zip
- 一键安装php+mysql+apache
- ThinkPHP官方资料合集.rar
- PHP双轨直销系统源码
- asp和php八字源码集合
- php-5.5.5.tar.gz
- 三国霸业文字游戏PHP商业源码完整版
- php-5.4.15-Win32-VC9-x86
- PHP网页游戏《三国霸业》修正版源码
- PHP 电视直播管理系统源码
- 免费的开源商城php系统,带多种支付
- PHP+mysql实现谷歌地图的开发和编辑
- php-7.0.33.tar.gz
评论
共有 条评论