ComposerUpdate

This commit is contained in:
邹景立 2021-03-09 18:14:47 +08:00
parent 10774ceed6
commit 72e4af1c6a
10 changed files with 73 additions and 29 deletions

View File

@ -60,7 +60,7 @@ abstract class PaymentService
],
self::PAYMENT_VOUCHER => [
'type' => 'VOUCHER',
'name' => '凭证单据支付',
'name' => '单据凭证支付',
'bind' => [
UserService::APITYPE_WAP, UserService::APITYPE_WEB,
UserService::APITYPE_WXAPP, UserService::APITYPE_WECHAT,

View File

@ -173,6 +173,11 @@ return array(
'WeMini\\Soter' => $vendorDir . '/zoujingli/wechat-developer/WeMini/Soter.php',
'WeMini\\Template' => $vendorDir . '/zoujingli/wechat-developer/WeMini/Template.php',
'WeMini\\Total' => $vendorDir . '/zoujingli/wechat-developer/WeMini/Total.php',
'WePayV3\\Cert' => $vendorDir . '/zoujingli/wechat-developer/WePayV3/Cert.php',
'WePayV3\\Contracts\\BasicWePay' => $vendorDir . '/zoujingli/wechat-developer/WePayV3/Contracts/BasicWePay.php',
'WePayV3\\Contracts\\DecryptAes' => $vendorDir . '/zoujingli/wechat-developer/WePayV3/Contracts/DecryptAes.php',
'WePayV3\\Order' => $vendorDir . '/zoujingli/wechat-developer/WePayV3/Order.php',
'WePayV3\\Refund' => $vendorDir . '/zoujingli/wechat-developer/WePayV3/Refund.php',
'WePay\\Bill' => $vendorDir . '/zoujingli/wechat-developer/WePay/Bill.php',
'WePay\\Coupon' => $vendorDir . '/zoujingli/wechat-developer/WePay/Coupon.php',
'WePay\\Order' => $vendorDir . '/zoujingli/wechat-developer/WePay/Order.php',
@ -243,7 +248,8 @@ return array(
'app\\data\\service\\payment\\AlipayPaymentService' => $baseDir . '/app/data/service/payment/AlipayPaymentService.php',
'app\\data\\service\\payment\\BalancePyamentService' => $baseDir . '/app/data/service/payment/BalancePyamentService.php',
'app\\data\\service\\payment\\EmptyPaymentService' => $baseDir . '/app/data/service/payment/EmptyPaymentService.php',
'app\\data\\service\\payment\\JoinPaymentService' => $baseDir . '/app/data/service/payment/JoinPaymentService.php',
'app\\data\\service\\payment\\JoinpayPaymentService' => $baseDir . '/app/data/service/payment/JoinpayPaymentService.php',
'app\\data\\service\\payment\\VoucherPaymentService' => $baseDir . '/app/data/service/payment/VoucherPaymentService.php',
'app\\data\\service\\payment\\WechatPaymentService' => $baseDir . '/app/data/service/payment/WechatPaymentService.php',
'app\\index\\controller\\Index' => $baseDir . '/app/index/controller/Index.php',
'app\\wechat\\command\\Fans' => $baseDir . '/app/wechat/command/Fans.php',

View File

@ -11,6 +11,7 @@ return array(
'think\\' => array($vendorDir . '/topthink/framework/src/think', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src', $vendorDir . '/topthink/think-template/src'),
'app\\' => array($baseDir . '/app'),
'WePay\\' => array($vendorDir . '/zoujingli/wechat-developer/WePay'),
'WePayV3\\' => array($vendorDir . '/zoujingli/wechat-developer/WePayV3'),
'WeMini\\' => array($vendorDir . '/zoujingli/wechat-developer/WeMini'),
'WeChat\\' => array($vendorDir . '/zoujingli/wechat-developer/WeChat'),
'Symfony\\Component\\OptionsResolver\\' => array($vendorDir . '/symfony/options-resolver'),

View File

@ -26,6 +26,7 @@ class ComposerStaticInit4f89fd0e0503ccf740f2fa5757825d7b
'W' =>
array (
'WePay\\' => 6,
'WePayV3\\' => 8,
'WeMini\\' => 7,
'WeChat\\' => 7,
),
@ -79,6 +80,10 @@ class ComposerStaticInit4f89fd0e0503ccf740f2fa5757825d7b
array (
0 => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePay',
),
'WePayV3\\' =>
array (
0 => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePayV3',
),
'WeMini\\' =>
array (
0 => __DIR__ . '/..' . '/zoujingli/wechat-developer/WeMini',
@ -297,6 +302,11 @@ class ComposerStaticInit4f89fd0e0503ccf740f2fa5757825d7b
'WeMini\\Soter' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WeMini/Soter.php',
'WeMini\\Template' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WeMini/Template.php',
'WeMini\\Total' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WeMini/Total.php',
'WePayV3\\Cert' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePayV3/Cert.php',
'WePayV3\\Contracts\\BasicWePay' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePayV3/Contracts/BasicWePay.php',
'WePayV3\\Contracts\\DecryptAes' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePayV3/Contracts/DecryptAes.php',
'WePayV3\\Order' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePayV3/Order.php',
'WePayV3\\Refund' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePayV3/Refund.php',
'WePay\\Bill' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePay/Bill.php',
'WePay\\Coupon' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePay/Coupon.php',
'WePay\\Order' => __DIR__ . '/..' . '/zoujingli/wechat-developer/WePay/Order.php',
@ -367,7 +377,8 @@ class ComposerStaticInit4f89fd0e0503ccf740f2fa5757825d7b
'app\\data\\service\\payment\\AlipayPaymentService' => __DIR__ . '/../..' . '/app/data/service/payment/AlipayPaymentService.php',
'app\\data\\service\\payment\\BalancePyamentService' => __DIR__ . '/../..' . '/app/data/service/payment/BalancePyamentService.php',
'app\\data\\service\\payment\\EmptyPaymentService' => __DIR__ . '/../..' . '/app/data/service/payment/EmptyPaymentService.php',
'app\\data\\service\\payment\\JoinPaymentService' => __DIR__ . '/../..' . '/app/data/service/payment/JoinPaymentService.php',
'app\\data\\service\\payment\\JoinpayPaymentService' => __DIR__ . '/../..' . '/app/data/service/payment/JoinpayPaymentService.php',
'app\\data\\service\\payment\\VoucherPaymentService' => __DIR__ . '/../..' . '/app/data/service/payment/VoucherPaymentService.php',
'app\\data\\service\\payment\\WechatPaymentService' => __DIR__ . '/../..' . '/app/data/service/payment/WechatPaymentService.php',
'app\\index\\controller\\Index' => __DIR__ . '/../..' . '/app/index/controller/Index.php',
'app\\wechat\\command\\Fans' => __DIR__ . '/../..' . '/app/wechat/command/Fans.php',

View File

@ -918,17 +918,17 @@
},
{
"name": "zoujingli/wechat-developer",
"version": "v1.2.27",
"version_normalized": "1.2.27.0",
"version": "v1.2.28",
"version_normalized": "1.2.28.0",
"source": {
"type": "git",
"url": "https://github.com/zoujingli/WeChatDeveloper.git",
"reference": "94de6626f1c9e3d12f16640c30fb9319b37ff34c"
"reference": "463c677cfdf8a3f3b21264babca034edb9fc7c3c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/94de6626f1c9e3d12f16640c30fb9319b37ff34c",
"reference": "94de6626f1c9e3d12f16640c30fb9319b37ff34c",
"url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/463c677cfdf8a3f3b21264babca034edb9fc7c3c",
"reference": "463c677cfdf8a3f3b21264babca034edb9fc7c3c",
"shasum": "",
"mirrors": [
{
@ -948,7 +948,7 @@
"ext-xml": "*",
"php": ">=5.4"
},
"time": "2020-12-24T09:44:04+00:00",
"time": "2021-03-09T10:04:53+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -959,7 +959,8 @@
"WePay\\": "WePay",
"WeChat\\": "WeChat",
"WeMini\\": "WeMini",
"AliPay\\": "AliPay"
"AliPay\\": "AliPay",
"WePayV3\\": "WePayV3"
}
},
"notification-url": "https://packagist.org/downloads/",

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?php
// This file is automatically generated at:2021-03-08 14:48:39
// This file is automatically generated at:2021-03-09 18:14:18
declare (strict_types = 1);
return array (
0 => 'think\\admin\\Library',

View File

@ -87,7 +87,7 @@ class We
* 定义当前版本
* @var string
*/
const VERSION = '1.2.27';
const VERSION = '1.2.28';
/**
* 静态配置

View File

@ -19,13 +19,13 @@ return [
'sign_type' => "RSA2",
// 应用ID
'appid' => '2016090900468879',
// 支付宝公钥 (1行填写特别注意这里是支付宝公钥,不是应用公钥,最好从开发者中心的网页上去复制)
// 支付宝公钥内容 (1行填写特别注意这里是支付宝公钥,不是应用公钥,最好从开发者中心的网页上去复制)
'public_key' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtU71NY53UDGY7JNvLYAhsNa+taTF6KthIHJmGgdio9bkqeJGhHk6ttkTKkLqFgwIfgAkHpdKiOv1uZw6gVGZ7TCu5LfHTqKrCd6Uz+N7hxhY+4IwicLgprcV1flXQLmbkJYzFMZqkXGkSgOsR2yXh4LyQZczgk9N456uuzGtRy7MoB4zQy34PLUkkxR6W1B2ftNbLRGXv6tc7p/cmDcrY6K1bSxnGmfRxFSb8lRfhe0V0UM6pKq2SGGSeovrKHN0OLp+Nn5wcULVnFgATXGCENshRlp96piPEBFwneXs19n+sX1jx60FTR7/rME3sW3AHug0fhZ9mSqW4x401WjdnwIDAQAB',
// 支付宝私钥 (1行填写)
// 支付宝私钥内容 (1行填写)
'private_key' => 'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC3pbN7esinxgjE8uxXAsccgGNKIq+PR1LteNTFOy0fsete43ObQCrzd9DO0zaUeBUzpIOnxrKxez7QoZROZMYrinttFZ/V5rbObEM9E5AR5Tv/Fr4IBywoS8ZtN16Xb+fZmibfU91yq9O2RYSvscncU2qEYmmaTenM0QlUO80ZKqPsM5JkgCNdcYZTUeHclWeyER3dSImNtlSKiSBSSTHthb11fkudjzdiUXua0NKVWyYuAOoDMcpXbD6NJmYqEA/iZ/AxtQt08pv0Mow581GPB0Uop5+qA2hCV85DpagE94a067sKcRui0rtkJzHem9k7xVL+2RoFm1fv3RnUkMwhAgMBAAECggEAAetkddzxrfc+7jgPylUIGb8pyoOUTC4Vqs/BgZI9xYAJksNT2QKRsFvHPfItNt4Ocqy8h4tnIL3GCU43C564B4p6AcjhE85GiN/O0BudPOKlfuQQ9mqExqMMHuYeQfz0cmzPDTSGMwWiv9v4KBH2pyvkCCAzNF6uG+rvawb4/NNVuiI7C8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钥证书内容(新版资金类接口转 app_cert_sn
'app_cert' => '',
// 支付宝根证书(新版资金类接口转 alipay_root_cert_sn
// 支付宝根证书内容(新版资金类接口转 alipay_root_cert_sn
'root_cert' => '',
// 支付成功通知地址
'notify_url' => '',

View File

@ -38,7 +38,8 @@
"WePay\\": "WePay",
"WeChat\\": "WeChat",
"WeMini\\": "WeMini",
"AliPay\\": "AliPay"
"AliPay\\": "AliPay",
"WePayV3\\": "WePayV3"
}
}
}

View File

@ -1,10 +1,11 @@
[![Latest Stable Version](https://poser.pugx.org/zoujingli/wechat-developer/v/stable)](https://packagist.org/packages/zoujingli/wechat-developer)
[![Latest Unstable Version](https://poser.pugx.org/zoujingli/wechat-developer/v/unstable)](https://packagist.org/packages/zoujingli/wechat-developer)
[![Total Downloads](https://poser.pugx.org/zoujingli/wechat-developer/downloads)](https://packagist.org/packages/zoujingli/wechat-developer)
[![Latest Stable Version](https://poser.pugx.org/zoujingli/wechat-developer/v/stable)](https://packagist.org/packages/zoujingli/wechat-developer)
[![Latest Unstable Version](https://poser.pugx.org/zoujingli/wechat-developer/v/unstable)](https://packagist.org/packages/zoujingli/wechat-developer)
[![Total Downloads](https://poser.pugx.org/zoujingli/wechat-developer/downloads)](https://packagist.org/packages/zoujingli/wechat-developer)
[![License](https://poser.pugx.org/zoujingli/wechat-developer/license)](https://packagist.org/packages/zoujingli/wechat-developer)
WeChatDeveloper for PHP
----
* WeChatDeveloper 是基于 [wechat-php-sdk](https://github.com/zoujingli/wechat-php-sdk) 重构,优化并完善;
* 运行最底要求 PHP 版本 5.4 , 建议在 PHP7 上运行以获取最佳性能;
* WeChatDeveloper 针对 access_token 失效增加了自动刷新机制;
@ -15,6 +16,7 @@ WeChatDeveloper for PHP
功能描述
----
* 微信小程序,服务端接口支持
* 微信认证服务号,服务端接口支持
* 微信支付账单、卡券、红包、退款、转账、App支付、JSAPI支付、Web支付、扫码支付等
@ -24,20 +26,22 @@ WeChatDeveloper for PHP
----
PHP开发技术交流QQ群 513350915
[![PHP微信开发群 (SDK)](http://pub.idqqimg.com/wpa/images/group.png)](http://shang.qq.com/wpa/qunwpa?idkey=ae25cf789dafbef62e50a980ffc31242f150bc61a61164458216dd98c411832a)
[![PHP微信开发群 (SDK)](http://pub.idqqimg.com/wpa/images/group.png)](http://shang.qq.com/wpa/qunwpa?idkey=ae25cf789dafbef62e50a980ffc31242f150bc61a61164458216dd98c411832a)
WeChatDeveloper 是基于官方接口封装,在做微信开发前,必需先阅读微信官方文档。
* 微信官方文档https://mp.weixin.qq.com/wiki
* 商户支付文档https://pay.weixin.qq.com/wiki/doc/api/index.html
针对 WeChatDeveloper 也有一准备了帮助资料可供参考。
* ThinkAdminhttps://github.com/zoujingli/ThinkAdmin
* WeChatDeveloperhttps://www.kancloud.cn/zoujingli/wechat-developer
代码仓库
----
WeChatDeveloper 为开源项目,允许把它用于任何地方,不受任何约束,欢迎 fork 项目。
* Gitee 托管地址https://gitee.com/zoujingli/WeChatDeveloper
* GitHub 托管地址https://github.com/zoujingli/WeChatDeveloper
@ -82,10 +86,10 @@ WeChatDeveloper 为开源项目,允许把它用于任何地方,不受任何
| Template.php | WeMini\Template | 微信小程序模板消息支持 | 微信小程序 | \We::WeMiniTemplate() |
| Total.php | WeMini\Total | 微信小程序数据接口 | 微信小程序 | \We::WeMiniTotal() |
安装使用
----
1.1 通过 Composer 来管理安装
```shell
# 首次安装 线上版本(稳定)
composer require zoujingli/wechat-developer
@ -98,12 +102,14 @@ composer update zoujingli/wechat-developer
```
1.2 如果不使用 Composer 可以下载 WeChatDeveloper 并解压到项目中
```php
# 在项目中加载初始化文件
include "您的目录/WeChatDeveloper/include.php";
```
2.1 接口实例所需参数
```php
$config = [
'token' => 'test',
@ -122,6 +128,7 @@ $config = [
```
3.1 实例指定接口
```php
try {
@ -145,6 +152,7 @@ try {
微信支付
---
```php
// 创建接口实例
$wechat = new \WeChat\Pay($config);
@ -177,28 +185,39 @@ try {
}
```
* 更多功能请阅读测试代码或SDK封装源码
支付宝支付
----
* 支付参数配置(可用沙箱模式)
```php
$config = [
// 沙箱模式
'debug' => true,
// 签名类型RSA|RSA2
'sign_type' => "RSA2",
// 应用ID
'appid' => '2016090900468879',
// 支付宝公钥(1行填写)
'public_key' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtU71NY53UDGY7JNvLYAhsNa+taTF6KthIHJmGgdio9bkqeJGhHk6ttkTKkLqFgwIfgAkHpdKiOv1uZw6gVGZ7TCu5LfHTqKrCd6Uz+N7hxhY+4IwicLgprcV1flXQLmbkJYzFMZqkXGkSgOsR2yXh4LyQZczgk9N456uuzGtRy7MoB4zQy34PLUkkxR6W1B2ftNbLRGXv6tc7p/cmDcrY6K1bSxnGmfRxFSb8lRfhe0V0UM6pKq2SGGSeovrKHN0OLp+Nn5wcULVnFgATXGCENshRlp96piPEBFwneXs19n+sX1jx60FTR7/rME3sW3AHug0fhZ9mSqW4x401WjdnwIDAQAB',
// 支付宝私钥(1行填写)
'private_key' => 'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC3pbN7esinxgjE8uxXAsccgGNKIq+PR1LteNTFOy0fsete43ObQCrzd9DO0zaUeBUzpIOnxrKxez7QoZROZMYrinttFZ/V5rbObEM9E5AR5Tv/Fr4IBywoS8ZtN16Xb+fZmibfU91yq9O2RYSvscncU2qEYmmaTenM0QlUO80ZKqPsM5JkgCNdcYZTUeHclWeyER3dSImNtlSKiSBSSTHthb11fkudjzdiUXua0NKVWyYuAOoDMcpXbD6NJmYqEA/iZ/AxtQt08pv0Mow581GPB0Uop5+qA2hCV85DpagE94a067sKcRui0rtkJzHem9k7xVL+2RoFm1fv3RnUkMwhAgMBAAECggEAAetkddzxrfc+7jgPylUIGb8pyoOUTC4Vqs/BgZI9xYAJksNT2QKRsFvHPfItNt4Ocqy8h4tnIL3GCU43C564B4p6AcjhE85GiN/O0BudPOKlfuQQ9mqExqMMHuYeQfz0cmzPDTSGMwWiv9v4K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// 支付宝公钥文字内容 (1行填写特别注意这里是支付宝公钥不是应用公钥最好从开发者中心的网页上去复制)
'public_key' => 'MIIBIjANBgkqhkiG9...',
// 支付宝私钥文字内容 (1行填写)
'private_key' => 'MIIEvQIBADANBgkqh...',
// 应用公钥证书完整内容(新版资金类接口转 app_cert_sn
'app_cert' => '',
// 支付宝根证书完整内容(新版资金类接口转 alipay_root_cert_sn
'root_cert' => '',
// 支付成功通知地址
'notify_url' => '', // 可以应用的时候配置哦
'notify_url' => '',
// 网页支付回跳地址
'return_url' => '', // 可以应用的时候配置哦
'return_url' => '',
];
```
* 支付宝发起PC网站支付
```php
// 参考公共参数 https://docs.open.alipay.com/203/107090/
$config['notify_url'] = 'http://pay.thinkadmin.top/test/alipay-notify.php';
@ -226,7 +245,9 @@ try {
}
```
* 支付宝发起手机网站支付
```php
// 参考公共参数 https://docs.open.alipay.com/203/107090/
$config['notify_url'] = 'http://pay.thinkadmin.top/test/alipay-notify.php';
@ -254,12 +275,15 @@ try {
}
```
* 更多功能请阅读测试代码或SDK封装源码
开源协议
----
* WeChatDeveloper 基于`MIT`协议发布,任何人可以用在任何地方,不受约束
* WeChatDeveloper 部分代码来自互联网,若有异议,可以联系作者进行删除
## 赞助打赏
![赞助](https://thinkadmin.top/static/img/pay.png)