Giter Club home page Giter Club logo

framework's Introduction

关于项目合并

  • framework v1 合并到 ThinkAdmin v4
  • framework v2 合并到 ThinkAdmin master 分支
  • framework 仅用于 项目基础框架研究与开发,需要进行二开的朋友请移步 ThinkAdmin

ThinkAdmin 版本

体验账号及密码都是admin

  • v1 基于 ThinkPHP5.0 开发

在线体验地址:https://v1.thinkadmin.top

Gitee 代码地址:https://gitee.com/zoujingli/ThinkAdmin/tree/v1

Github 代码地址:https://github.com/zoujingli/ThinkAdmin/tree/v1

  • v2 基于 ThinkPHP5.0 开发

在线体验地址:https://v2.thinkadmin.top

Gitee 代码地址:https://gitee.com/zoujingli/ThinkAdmin/tree/v2

Github 代码地址:https://github.com/zoujingli/ThinkAdmin/tree/v2

  • v3 基于 ThinkPHP5.1 开发

在线体验地址:https://v3.thinkadmin.top

Gitee 代码地址:https://gitee.com/zoujingli/ThinkAdmin/tree/v3

Github 代码地址:https://github.com/zoujingli/ThinkAdmin/tree/v3

  • v4 基于 ThinkPHP5.1 开发

在线体验地址:https://v4.thinkadmin.top

Gitee 代码地址:https://gitee.com/zoujingli/ThinkAdmin/tree/v4

Github 代码地址:https://github.com/zoujingli/ThinkAdmin/tree/v4

大道至简 · 原生框架

framework V2.0 是一个基于 ThinkPHP5.1 开发的后台管理系统。

我们致力于二次开发底层框架,提供完整的组件及API,基于此框架可以快速开发应用。

另外项目安装及二次开发可以参考 ThinkPHP 官方文档,数据库文件摆放在项目根目录下。

注意事项

  • 项目测试需要自行搭建环境导入数据库( framework.sql )并修改配置( config/database.php );
  • 若操作提示“测试系统禁止操作”等字样,需要删除演示路由配置( route/demo.php )或清空路由文件;
  • 当前版本使用 ThinkPHP5.1.x,对 PHP 版本标注不低于 PHP5.6,具体请阅读 ThinkPHP 官方文档;
  • 环境需开启 PATHINFO,不再支持 ThinkPHP 的 URL 兼容模式运行(源于如何优雅的展示);

权限管理

  • 此版本的权限使用注解实现管理
  • 注释必需使用标准的块注释,如:
/**
* 操作的名称
* @auth true  # 表示需要验证权限
* @menu true  # 在菜单编辑的节点可选项
*/
public function index(){
   // @todo
}
  • 其中@auth true表示需要权限验证
  • 其中@menu true显示在菜单编辑的节点可选项

技术支持

开发前请认真阅读 ThinkPHP 官方文档会对您有帮助哦!

本地开发命令php think run,使用http://127.0.0.1:8000访问项目。

PHP 开发技术交流( QQ 群 513350915)

PHP微信开发群 (SDK)

代码仓库

framework 为 MIT 协议开源项目,安装使用或二次开发不受约束,欢迎 fork 项目。

部分代码来自互联网,若有异议可以联系作者进行删除。

框架指令

  • 执行 build.cmd 可更新 Composer 插件,会删除并替换 vendor 目录

  • 执行 php think run 启用本地开发环境,访问 http://127.0.0.1:8000

  • 线上代码更新

  • 执行 php think xsync:admin 从线上服务更新 admin 模块的所有文件(注意文件安全)
  • 执行 php think xsync:wechat 从线上服务更新 wechat 模块的所有文件(注意文件安全)
  • 执行 php think xsync:service 从线上服务更新 service 模块的所有文件(注意文件安全)
  • 执行 php think xsync:plugs 从线上服务更新 plugs 静态插件的部分文件(注意文件安全)
  • 执行 php think xsync:config 从线上服务更新 config 项目配置的部分文件(注意文件安全)
  • 微信资料管理
  • 执行 php think xfans:all 更新已经对接的公众号全部列表
  • 执行 php think xfans:list 更新已经对接的公众号粉丝列表
  • 执行 php think xfans:tags 更新已经对接的公众号标签列表
  • 执行 php think xfans:black 更新已经对接的公众号黑名单列表
  • 守护进程管理
  • 执行 php think xtask:reset 重启消息任务守护进程
  • 执行 php think xtask:start 启动消息任务守护进程
  • 执行 php think xtask:state 查询消息任务守护进程
  • 执行 php think xtask:stop 暂停消息任务守护进程
  • 其它自定工具
  • 执行 php think xclean:session 清理无效的会话SESSION文件
  • 执行 php think xclean:store 清理无效的订单信息及定时任务

特别感谢

名称 版本 描述 链接
Layui 2.4.5 UI组件库 https://github.com/sentsin/layui
Ckeditor 4.10.1 富文件编辑器 https://github.com/ckeditor/ckeditor-dev
PluPloader 3.1.2 文件上传工具1 https://www.plupload.com
WebUploader 0.1.5 文件上传工具2 https://github.com/fex-team/webuploader
Font-Awesome 4.7.0 字体图标库 https://github.com/FortAwesome/Font-Awesome
ThinkPHP 5.1.35 PHP基础框架 https://github.com/top-think/framework
ThinkLibrary 5.1.x-dev ThinkPHP扩展组件 https://github.com/zoujingli/ThinkLibrary
WeChatDeveloper 1.2.9 微信公众号组件 https://github.com/zoujingli/WeChatDeveloper
WeOpenDeveloper dev-master 微信开放平台组件 https://github.com/zoujingli/WeOpenDeveloper

赞助打赏

赞助

framework's People

Contributors

zoujingli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

framework's Issues

本地部署时,新添加商品时post报500错误

新添加商品时post报500错误,
目录下application/store/controller/goods/的function _form_filter(&$data)方法,
报**Invalid argument supplied for foreach()**错
图片

protected function _form_filter(&$data){
if ($this->request->isGet()) {
..............
}elseif ($this->request->isPost()) {
Db::name('StoreGoodsList')->where(['goods_id' => $data['id']])->update(['status' => '0']);
foreach (json_decode($data['lists'], true) as $vo) Data::save('StoreGoodsList', [
'goods_id' => $data['id'],
'goods_spec' => $vo[0]['key'],
'price_market' => $vo[0]['market'],
'price_selling' => $vo[0]['selling'],
'number_virtual' => $vo[0]['virtual'],
'status' => $vo[0]['status'] ? 1 : 0,
], 'goods_spec', ['goods_id' => $data['id']]);
}
}

你好

现在这个趋于稳定了吗 想使用您的项目来做项目

上传控件变量冲突

WebUploader上传控件server参数中的name值
与uploadBeforeSend事件中data参数的name冲突,导致图片上传失败。

参考解决:
更改server参数。
server: '{:url("@")}?s=admin/plugs/upload&name={$name|default="file"}',

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.