1. 完善易支付API调用全流程

2. 确定支付插件继承基础类和接口规范
3. 引入Yansongda\Pay支付快捷工具
4. 重新整理代码和功能结构
This commit is contained in:
技术老胡
2026-03-12 19:18:21 +08:00
parent 5dae6e7174
commit fa3abdcaff
19 changed files with 1042 additions and 578 deletions

210
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "49b81bfe43345cf72dbd33c88720b5a2",
"content-hash": "ef4cd33c0940c77fc8b5fffd35cd9bb7",
"packages": [
{
"name": "brick/math",
@@ -6115,6 +6115,214 @@
}
],
"time": "2026-01-09T03:26:15+00:00"
},
{
"name": "yansongda/artful",
"version": "v1.1.3",
"source": {
"type": "git",
"url": "https://github.com/yansongda/artful.git",
"reference": "ddc203ef34ab369a5a31df057a0fda697d3ed855"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yansongda/artful/zipball/ddc203ef34ab369a5a31df057a0fda697d3ed855",
"reference": "ddc203ef34ab369a5a31df057a0fda697d3ed855",
"shasum": ""
},
"require": {
"guzzlehttp/psr7": "^2.6",
"php": ">=8.0",
"psr/container": "^1.1 || ^2.0",
"psr/event-dispatcher": "^1.0",
"psr/http-client": "^1.0",
"psr/http-message": "^1.1 || ^2.0",
"psr/log": "^1.1 || ^2.0 || ^3.0",
"yansongda/supports": "~4.0.10"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.44",
"guzzlehttp/guzzle": "^7.0",
"hyperf/pimple": "^2.2",
"mockery/mockery": "^1.4",
"monolog/monolog": "^2.2",
"phpstan/phpstan": "^1.0.0 || ^2.0.0",
"phpunit/phpunit": "^9.0",
"symfony/event-dispatcher": "^5.2.0",
"symfony/http-foundation": "^5.2.0",
"symfony/psr-http-message-bridge": "^2.1",
"symfony/var-dumper": "^5.1"
},
"suggest": {
"hyperf/pimple": "其它/无框架下使用 SDK请安装任选其一",
"illuminate/container": "其它/无框架下使用 SDK请安装任选其一"
},
"type": "library",
"autoload": {
"files": [
"src/Functions.php"
],
"psr-4": {
"Yansongda\\Artful\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "yansongda",
"email": "me@yansongda.cn"
}
],
"description": "Artful 是一个简单易用的 API 请求框架 PHP Api RequesT Framwork U Like。",
"keywords": [
"api",
"artful",
"framework",
"request"
],
"support": {
"homepage": "https://artful.yansongda.cn",
"issues": "https://github.com/yansongda/artful/issues",
"source": "https://github.com/yansongda/artful"
},
"time": "2025-07-24T09:39:17+00:00"
},
{
"name": "yansongda/pay",
"version": "v3.7.19",
"source": {
"type": "git",
"url": "https://github.com/yansongda/pay.git",
"reference": "57eaeff84bd4a19c4d09656a3c45250c9a032aa2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yansongda/pay/zipball/57eaeff84bd4a19c4d09656a3c45250c9a032aa2",
"reference": "57eaeff84bd4a19c4d09656a3c45250c9a032aa2",
"shasum": ""
},
"require": {
"ext-bcmath": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-openssl": "*",
"ext-simplexml": "*",
"php": ">=8.0",
"yansongda/artful": "~1.1.3",
"yansongda/supports": "~4.0.10"
},
"conflict": {
"hyperf/framework": "<3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.44",
"guzzlehttp/guzzle": "^7.0",
"hyperf/pimple": "^2.2",
"jetbrains/phpstorm-attributes": "^1.1",
"mockery/mockery": "^1.4",
"monolog/monolog": "^2.2",
"phpstan/phpstan": "^1.0.0 || ^2.0.0",
"phpunit/phpunit": "^9.0",
"symfony/event-dispatcher": "^5.2.0",
"symfony/http-foundation": "^5.2.0",
"symfony/psr-http-message-bridge": "^2.1",
"symfony/var-dumper": "^5.1"
},
"type": "library",
"autoload": {
"files": [
"src/Functions.php"
],
"psr-4": {
"Yansongda\\Pay\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "yansongda",
"email": "me@yansongda.cn"
}
],
"description": "可能是我用过的最优雅的 Alipay 和 WeChat 的支付 SDK 扩展包了",
"keywords": [
"alipay",
"pay",
"wechat"
],
"support": {
"homepage": "https://pay.yansongda.cn",
"issues": "https://github.com/yansongda/pay/issues",
"source": "https://github.com/yansongda/pay"
},
"time": "2025-12-22T03:30:53+00:00"
},
{
"name": "yansongda/supports",
"version": "v4.0.12",
"source": {
"type": "git",
"url": "https://github.com/yansongda/supports.git",
"reference": "308de376d20cb1cd4f959644793e0582ccd1ef6d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yansongda/supports/zipball/308de376d20cb1cd4f959644793e0582ccd1ef6d",
"reference": "308de376d20cb1cd4f959644793e0582ccd1ef6d",
"shasum": ""
},
"require": {
"ext-ctype": "*",
"ext-mbstring": "*",
"php": ">=8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"mockery/mockery": "^1.4",
"phpstan/phpstan": "^1.1.0",
"phpunit/phpunit": "^9.0"
},
"suggest": {
"monolog/monolog": "Use logger",
"symfony/console": "Use stdout logger"
},
"type": "library",
"autoload": {
"files": [
"src/Functions.php"
],
"psr-4": {
"Yansongda\\Supports\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "yansongda",
"email": "me@yansongda.cn"
}
],
"description": "common components",
"keywords": [
"array",
"collection",
"config",
"support"
],
"support": {
"issues": "https://github.com/yansongda/supports/issues",
"source": "https://github.com/yansongda/supports"
},
"time": "2025-01-08T08:55:20+00:00"
}
],
"packages-dev": [],