技术老胡 fd1f53f2ee feat: 完善支付通道和收款监听链路
新增 ChannelNotifyPayloadInterface 等支付插件通知契约,规范 pay_no 定位和插件返回校验。

新增微信、支付宝、收钱吧、Postar 个人收款插件适配,支持余额识别与备注识别。

新增 receipt-watcher 后端进程、Redis 队列 job 和平台事件监听,覆盖收款流水通知、商户通知、退款派发、转账派发与清算完成。

补齐个人收款监听相关系统配置、仓储、服务费冻结明细、订单后台操作和通道测试能力。

重构支付单创建、回调、费用、风控、结算和通道统计链路,统一状态流转与幂等处理。
2026-05-11 16:28:48 +08:00
2026-04-15 11:45:46 +08:00
2026-04-27 16:20:41 +08:00
2026-04-15 11:45:46 +08:00
2026-04-15 11:45:46 +08:00
2026-04-15 11:45:46 +08:00
2026-02-24 13:37:35 +08:00
2026-04-15 11:45:46 +08:00
2026-04-15 11:45:46 +08:00
2026-04-15 11:45:46 +08:00
2026-04-15 11:45:46 +08:00
2026-02-23 11:33:27 +08:00
2026-02-27 08:49:38 +00:00
2026-04-15 12:15:19 +08:00
2025-06-27 10:02:46 +08:00
2026-01-23 22:41:17 +08:00
2025-06-27 10:02:46 +08:00
2025-06-27 10:02:46 +08:00

MPay V2 Webman

A payment system backend management API developed based on the Webman framework.

Project Overview

MPay V2 Webman is a payment system backend management API built with the high-performance PHP framework Webman, providing core functionalities such as user authentication, permission management, system configuration, and menu routing.

Technology Stack

  • Backend Framework: Webman
  • PHP Version: PHP 8.0+
  • Database: MySQL
  • Cache: Redis
  • Authentication: JWT

Project Structure

app/
├── command/          # Command-line controllers
├── common/           # Common base classes
│   ├── base/         # Base classes (Controller, Model, Service, Repository)
│   ├── constants/    # Constant definitions
│   ├── enums/        # Enum classes
│   ├── middleware/   # Middleware
│   └── utils/        # Utility classes
├── events/           # Event classes
├── exceptions/       # Exception classes
├── http/             # HTTP controllers
│   └── admin/        # Backend management APIs
│       ├── controller/  # Controllers
│       └── middleware/  # Middleware
├── models/           # Data models
├── process/          # Process management
├── repositories/     # Data repositories
├── services/         # Business services
└── validation/       # Validators
config/               # Configuration files
database/             # Database scripts
doc/                  # Documentation
public/               # Public resources
support/              # Framework support classes

Core Features

Authentication Module

  • User login/logout
  • CAPTCHA generation and verification
  • JWT token authentication
  • User information retrieval

Permission Management

  • Menu and route management
  • User-role association

System Configuration

  • System parameter configuration
  • Dictionary management
  • Form configuration
  • Cache management for configurations

Middleware

  • CORS cross-origin handling
  • Static file handling
  • Authentication and authorization

Quick Start

System Requirements

  • PHP >= 8.0
  • Composer
  • Redis
  • MySQL >= 5.7

Installation Steps

  1. Clone the project
git clone https://gitee.com/technical-laohu/mpay_v2_webman.git
cd mpay_v2_webman
  1. Install dependencies
composer install
  1. Configure the database Edit config/database.php to set up your database connection details.

  2. Configure Redis Edit config/redis.php to set up your Redis connection details.

  3. Import the database

mysql -uusername -p database_name < database/ma_system_config.sql
  1. Start the server
# Linux/Mac
php start.php start

# Windows
windows.bat

API Endpoints

Authentication API

Endpoint Method Description
/admin/auth/captcha GET Get CAPTCHA
/admin/auth/login POST User login

User API

Endpoint Method Description
/admin/user/info GET Get current user information

Menu API

Endpoint Method Description
/admin/menu/routers GET Get menu routes

System API

Endpoint Method Description
/admin/system/dict/{code} GET Get dictionary data
/admin/system/tabs GET Get tab configuration
/admin/system/config/{tabKey} GET/POST Get/submit form configuration

Exception Handling

The project defines the following custom exception classes:

  • BadRequestException - Invalid request parameters (400)
  • UnauthorizedException - Unauthorized access (401)
  • ForbiddenException - Access forbidden (403)
  • NotFoundException - Resource not found (404)
  • ValidationException - Parameter validation failed (422)
  • InternalServerException - Internal server error (500)

Configuration Reference

Main configuration files are located in the config/ directory:

  • app.php - Application configuration
  • database.php - Database configuration
  • redis.php - Redis configuration
  • jwt.php - JWT configuration
  • route.php - Routing configuration
  • middleware.php - Middleware configuration
  • cache.php - Cache configuration
  • log.php - Log configuration

License

This project is open-sourced under the MIT License.

Description
No description provided
Readme MIT 4.2 MiB
Languages
PHP 99.9%