• 大小: 14.73MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-21
  • 语言: PHP
  • 标签: TP3  thinkphp  

资源简介

该系统是基于thinkphp3框架所开发的网上商城系统,模仿新百伦制作。

资源截图

代码片段和文件信息

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        210  2018-05-22 11:20  NewBlancC备份\MyMall\.htaccess

     文件       1436  2018-05-25 08:39  NewBlancC备份\MyMall\.project

     文件        485  2018-05-24 15:46  NewBlancC备份\MyMall\App\Admin\Conf\config.php

     文件        270  2018-07-08 18:06  NewBlancC备份\MyMall\App\Admin\Controller\AdmuserController.class.php

     文件        949  2018-07-08 19:37  NewBlancC备份\MyMall\App\Admin\Controller\AdorderController.class.php

     文件       2258  2018-07-08 17:36  NewBlancC备份\MyMall\App\Admin\Controller\CateController.class.php

     文件       5434  2018-07-08 18:11  NewBlancC备份\MyMall\App\Admin\Controller\GoodsupanddownController.class.php

     文件       1872  2018-06-11 20:26  NewBlancC备份\MyMall\App\Admin\Controller\HoutaiController.class.php

     文件        183  2018-05-30 13:41  NewBlancC备份\MyMall\App\Admin\Controller\IndexController.class.php

     文件        123  2018-05-24 15:54  NewBlancC备份\MyMall\App\Admin\Model\AdminModel.class.php

     文件       1152  2018-06-06 12:31  NewBlancC备份\MyMall\App\Admin\Model\CateModel.class.php

     文件       2335  2018-06-27 19:07  NewBlancC备份\MyMall\App\Admin\Model\GoodsModel.class.php

     文件         99  2018-06-05 11:41  NewBlancC备份\MyMall\App\Admin\Model\Goods_stockModel.class.php

     文件       1748  2018-07-08 19:00  NewBlancC备份\MyMall\App\Admin\View\Admuser\Admuser.html

     文件       2121  2018-07-08 19:37  NewBlancC备份\MyMall\App\Admin\View\Adorder\orderdoen.html

     文件       2989  2018-07-08 19:36  NewBlancC备份\MyMall\App\Admin\View\Adorder\orderreader.html

     文件       8132  2018-07-08 19:13  NewBlancC备份\MyMall\App\Admin\View\Cate\catelist.html

     文件       6247  2018-07-08 17:30  NewBlancC备份\MyMall\App\Admin\View\Goodsupanddown\adm_goodslist.html

     文件       5944  2018-06-08 15:25  NewBlancC备份\MyMall\App\Admin\View\Goodsupanddown\goodsup.html

     文件       6915  2018-07-08 18:58  NewBlancC备份\MyMall\App\Admin\View\Houtai\index.html

     文件       1924  2018-05-31 10:53  NewBlancC备份\MyMall\App\Admin\View\Index\login.html

     文件          1  2018-05-22 11:21  NewBlancC备份\MyMall\App\Common\Common\index.html

     文件         50  2018-05-22 11:22  NewBlancC备份\MyMall\App\Common\Conf\config.php

     文件          1  2018-05-22 11:21  NewBlancC备份\MyMall\App\Common\Conf\index.html

     文件          1  2018-05-22 11:21  NewBlancC备份\MyMall\App\Common\index.html

     文件        328  2018-05-22 11:30  NewBlancC备份\MyMall\App\Home\Conf\config.php

     文件       1712  2018-07-07 22:28  NewBlancC备份\MyMall\App\Home\Controller\AddrAndOrderController.class.php

     文件       5823  2018-07-07 14:43  NewBlancC备份\MyMall\App\Home\Controller\CarController.class.php

     文件       2513  2018-07-04 11:20  NewBlancC备份\MyMall\App\Home\Controller\GoodslistController.class.php

     文件        770  2018-07-08 19:49  NewBlancC备份\MyMall\App\Home\Controller\IndexController.class.php

............此处省略1925个文件信息

评论

共有 条评论