🛍️ ThinkPlugsWemall
ThinkPlugsWemall 是 ThinkAdmin 的分销商城插件,覆盖商品、订单、售后、会员等级、会员折扣、优惠券、推广海报、代理返佣与提现等功能。本插件为会员尊享插件,未授权不可商用。
当前 composer.json 要求 PHP >7.1 和 ext-json,并依赖 ThinkPlugsAccount 与 ThinkPlugsPayment。如果希望通过插件中心展示商城入口,项目还需要安装 ThinkPlugsCenter。
🚀 主要功能
- 商品管理: 商品分类、规格、库存和价格管理
- 订单管理: 下单、支付、发货、退款和售后管理
- 会员管理: 会员等级、会员折扣和会员关系管理
- 优惠推广: 优惠券、推广海报、代理返佣与提现
- 支付集成: 对接多端支付插件,支持余额、积分和线上支付
- 数据统计: 订单、会员、团队业绩和返佣数据统计
⚠️ 重要提示
测试版注意: 该插件测试版有数据库结构变化,未生成升级补丁,每次更新需要全新安装!
插件中心入口: 如果不安装《插件服务管理中心》将不显示商城插件中心入口,需要自行手动添加菜单或通过路由访问。
📱 多端支持
- 微信小程序: 原生小程序商城
- H5 商城: 移动端网页商城
- 管理后台: 完整的后台管理系统
- 开放接口: 提供商品、订单、购物车、会员中心、优惠券、推广、返佣、提现和帮助反馈等接口
🛍️ 商城特色
- 分销系统: 支持多级分销和返佣
- 营销工具: 支持优惠券、会员折扣和推广海报
- 库存管理: 支持商品规格库存、入库记录、销量同步和库存统计
- 订单流程: 完整的订单处理流程
- 会员体系: 完整的会员等级和权益管理
- 数据统计: 支持后台数据统计报表、团队业绩和返佣数据查看
- 物流跟踪: 支持发货记录、快递公司、邮费模板和订单物流查询
加入我们
我们的代码仓库已移至 Github,而 Gitee 则仅作为国内镜像仓库,方便广大开发者获取和使用。若想提交 PR 或 ISSUE 请在 ThinkAdminDeveloper 仓库进行操作,如果在其他仓库操作或提交问题将无法处理!。
配套前端
配套前端代码库,有需要的朋友请自行下载源码。
Gitee: https://gitee.com/zoujingli/ThinkAdminMobile

开放接口
接口文档: https://thinkadmin.apifox.cn
插件文档: https://thinkadmin.top/plugin/think-plugs-wemall.html
依赖插件
- 多终端用户管理插件:ThinkPlugsAccount
- 多终端支付管理插件:ThinkPlugsPayment
- 插件服务管理中心:ThinkPlugsCenter(插件入口展示需要)
标准安装
**安装前建议尝试更新所有组件**
composer update --optimize-autoloader
composer require zoujingli/think-plugs-wemall --optimize-autoloader定制安装
- 复制插件 ThinkPlugsWemall 所有源代码到
plugin/think-plugs-wemall目录。 - 修改插件
composer.json文件追加version配置项,插件 ThinkPlugsWemall 的完整配置如下:
{
"type": "think-admin-plugin",
"name": "zoujingli/think-plugs-wemall",
"version": "1.0.0",
"homepage": "https://thinkadmin.top",
"description": "Distribution mall plugin with goods, orders, members, coupons and rebates for ThinkAdmin",
"authors": [
{
"name": "Anyon",
"email": "zoujingli@qq.com"
}
],
"require": {
"php": ">7.1",
"ext-json": "*",
"zoujingli/think-plugs-account": "^1.0|@dev",
"zoujingli/think-plugs-payment": "^1.0|@dev"
},
"autoload": {
"files": [
"./src/helper.php"
],
"psr-4": {
"plugin\\wemall\\": "src"
}
},
"extra": {
"think": {
"services": [
"plugin\\wemall\\Service"
]
},
"config": {
"type": "module",
"name": "分销商城管理",
"document": "https://thinkadmin.top/plugin/think-plugs-wemall.html",
"description": "分销商城管理模块,提供商品、订单、会员、优惠、推广、返佣和售后管理。",
"license": [
"VIP"
]
},
"plugin": {
"copy": {
"stc/database": "database/migrations"
}
}
}
}- 修改项目根
composer.json配置,增加 ThinkPlugsWemall 插件本地化路径配置,完整配置如下:
{
"type": "project",
"name": "zoujingli/thinkadmin",
"version": "1.0.0",
"license": "MIT",
"homepage": "https://thinkadmin.top",
"description": "ThinkAdmin plugin aggregation and distribution project",
"keywords": [
"ThinkAdmin",
"ThinkLibrary",
"WeChatDeveloper"
],
"authors": [
{
"name": "Anyon",
"email": "zoujingli@qq.com"
}
],
"require": {
"php": ">7.1",
"ext-gd": "*",
"ext-json": "*",
"ext-openssl": "*",
"zoujingli/think-plugs-admin": "^1.0",
"zoujingli/think-plugs-wemall": "^1.0",
"zoujingli/think-plugs-account": "^1.0",
"zoujingli/think-plugs-payment": "^1.0"
},
"repositories": [
{
"type": "path",
"url": "plugin/think-plugs-wemall"
}
],
"config": {
"sort-packages": true,
"allow-plugins": {
"zoujingli/think-install": true
}
}
}- 在项目根目录终端执行
composer update完成安装。
卸载插件
**注意,插件卸载不会删除数据表,需要手动删除**
composer remove zoujingli/think-plugs-wemall插件数据
本插件涉及数据表有:
- 商城-配置:
plugin_wemall_config_agent,plugin_wemall_config_coupon,plugin_wemall_config_discount,plugin_wemall_config_level,plugin_wemall_config_notify,plugin_wemall_config_poster,plugin_wemall_config_rebate - 商城-商品:
plugin_wemall_goods,plugin_wemall_goods_cate,plugin_wemall_goods_item,plugin_wemall_goods_mark,plugin_wemall_goods_stock - 商城-订单:
plugin_wemall_order,plugin_wemall_order_cart,plugin_wemall_order_item,plugin_wemall_order_refund,plugin_wemall_order_sender - 商城-用户行为:
plugin_wemall_user_action_collect,plugin_wemall_user_action_comment,plugin_wemall_user_action_history,plugin_wemall_user_action_search - 商城-会员关系:
plugin_wemall_user_checkin,plugin_wemall_user_coupon,plugin_wemall_user_create,plugin_wemall_user_rebate,plugin_wemall_user_recharge,plugin_wemall_user_relation,plugin_wemall_user_transfer - 商城-快递:
plugin_wemall_express_company,plugin_wemall_express_template - 商城-帮助:
plugin_wemall_help_feedback,plugin_wemall_help_problem,plugin_wemall_help_question,plugin_wemall_help_question_x
服务注册
- 服务类:
plugin\wemall\Service - 注册命令:
xdata:mall:clear、xdata:mall:trans、xdata:mall:users - 中间件:在路由阶段检查注册推荐人参数
from、phone、fphone - 事件监听:
PluginAccountBind、PluginPaymentAudit、PluginPaymentRefuse、PluginPaymentSuccess、PluginPaymentCancel、PluginPaymentConfirm、PluginWemallOrderConfirm - 菜单节点覆盖商城配置、用户管理、商城管理、代理管理和帮助咨询,并合并支付插件菜单
版权说明
ThinkPlugsWemall 为 ThinkAdmin 会员插件。
未获得此插件授权时仅供参考学习不可商用,了解商用授权请阅读 《会员授权》。
版权所有 Copyright © 2014-2026 by ThinkAdmin (https://thinkadmin.top) All rights reserved。
