PHPackages                             hlw2326/think-plugin-mp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. hlw2326/think-plugin-mp

ActiveThink-admin-plugin

hlw2326/think-plugin-mp
=======================

小程序通用插件包

1.0.1(2d ago)12↑1400%MITPHPPHP &gt;8.2

Since Apr 6Pushed yesterdayCompare

[ Source](https://github.com/hlw2326/think-plugin-mp)[ Packagist](https://packagist.org/packages/hlw2326/think-plugin-mp)[ Docs](https://www.hlw2326.com)[ RSS](/packages/hlw2326-think-plugin-mp/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

小程序插件
=====

[](#小程序插件)

ThinkAdmin 小程序插件，适用于微信小程序（其他小程序未测试），提供用户管理、广告配置、通知管理、卡密系统等通用模块。

模块说明
----

[](#模块说明)

### 数据概览

[](#数据概览)

展示系统核心数据的统计图表，包括用户、会员、广告、通知、卡密、查询记录等维度。

### 小程序管理

[](#小程序管理)

管理多个微信小程序的配置信息。

- **小程序列表** — 名称、AppID、AppSecret，支持排序和状态控制

### 广告配置

[](#广告配置)

配置微信流量主广告单元，支持多类型广告。

- **广告列表** — 按小程序Tab筛选，支持广告类型、状态筛选
- **广告类型** — Banner、插屏、激励视频、原生模板、格子广告

### 通知管理

[](#通知管理)

向小程序用户推送通知公告。

- **通知列表** — 支持按类型、状态筛选
- **通知类型** — 系统通知、活动公告、版本更新
- **跳转方式** — 支持多种小程序跳转类型

### 用户管理

[](#用户管理)

管理注册用户，支持积分、会员、状态管理。

- **用户列表** — 昵称、手机号、设备信息，支持状态筛选
- **查询记录** — 用户查询历史，支持退积分
- **积分日志** — 用户积分变动流水
- **登录日志** — 用户登录设备管理

### 卡密系统

[](#卡密系统)

积分卡密和会员卡密的管理与发放。

#### 积分卡密

[](#积分卡密)

- **积分卡密** — 生成积分充值卡密，支持批量生成
- **批次管理** — 按批次号追踪卡密
- **使用限制** — 支持最大使用人数、每人使用次数、有效期控制

#### 会员卡密

[](#会员卡密)

- **会员卡密** — 生成会员天数充值卡密，支持批量生成
- **自动续期** — 使用后自动累加会员天数

### 充值记录

[](#充值记录)

查看所有卡密使用记录。

安装
--

[](#安装)

```
composer require hlw2326/think-plugin-mp
```

安装完成后访问 **系统管理 → 插件中心**，找到"小程序插件"，点击安装。

数据库表
----

[](#数据库表)

表名说明`plugin_mini_mp`小程序配置`plugin_mini_user`小程序用户`plugin_mini_ad`广告配置`plugin_mini_notice`通知公告`plugin_mini_card_score`积分卡密`plugin_mini_card_vip`会员卡密`plugin_mini_card_log`卡密使用记录`plugin_mini_user_token`用户登录Token`plugin_mini_user_query`用户查询记录`plugin_mini_user_score_log`用户积分流水API 接口
------

[](#api-接口)

### 广告配置

[](#广告配置-1)

```
GET /api/v1/ad/config?appid=xxx

```

### 通知列表

[](#通知列表)

```
GET /api/v1/notice/list?appid=xxx&type=xxx

```

### 用户登录

[](#用户登录)

```
POST /api/v1/login/in?appid=xxx

```

路由前缀
----

[](#路由前缀)

插件路由统一以 `{code}/` 为前缀，`{code}` 由插件中心自动分配。

版本要求
----

[](#版本要求)

- PHP &gt;= 8.2
- ThinkAdmin v6
- ThinkPHP &gt;= 6.0

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance100

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee6da66b65746f35ea0bae8c4ed1625bd4e07d1eed206d19161ba4e22a412574?d=identicon)[hlw2326](/maintainers/hlw2326)

---

Top Contributors

[![hlw2326](https://avatars.githubusercontent.com/u/273061548?v=4)](https://github.com/hlw2326 "hlw2326 (2 commits)")

### Embed Badge

![Health badge](/badges/hlw2326-think-plugin-mp/health.svg)

```
[![Health](https://phpackages.com/badges/hlw2326-think-plugin-mp/health.svg)](https://phpackages.com/packages/hlw2326-think-plugin-mp)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
