[更新]调整命名规则

This commit is contained in:
Anyon 2018-10-30 18:42:47 +08:00
parent 3747468813
commit fcb2cdbb08
26 changed files with 44 additions and 45 deletions

View File

@ -14,14 +14,14 @@
namespace AliPay;
use AliPay\Contracts\Ali;
use WeChat\Contracts\BasicAliPay;
/**
* 支付宝App支付网关
* Class App
* @package AliPay
*/
class App extends Ali
class App extends BasicAliPay
{
/**

View File

@ -14,14 +14,14 @@
namespace AliPay;
use AliPay\Contracts\Ali;
use WeChat\Contracts\BasicAliPay;
/**
* 支付宝电子面单下载
* Class Bill
* @package AliPay
*/
class Bill extends Ali
class Bill extends BasicAliPay
{
/**
* Bill constructor.

View File

@ -14,14 +14,14 @@
namespace AliPay;
use AliPay\Contracts\Ali;
use WeChat\Contracts\BasicAliPay;
/**
* 支付宝刷卡支付
* Class Pos
* @package AliPay
*/
class Pos extends Ali
class Pos extends BasicAliPay
{
/**
* Pos constructor.

View File

@ -14,14 +14,15 @@
namespace AliPay;
use AliPay\Contracts\Ali;
use WeChat\Contracts\BasicAliPay;
/**
* 支付宝扫码支付
* Class Scan
* @package AliPay
*/
class Scan extends Ali
class Scan extends BasicAliPay
{
/**

View File

@ -14,14 +14,15 @@
namespace AliPay;
use AliPay\Contracts\Ali;
use WeChat\Contracts\BasicAliPay;
/**
* 支付宝转账到账户
* Class Transfer
* @package AliPay
*/
class Transfer extends Ali
class Transfer extends BasicAliPay
{
/**

View File

@ -14,14 +14,14 @@
namespace AliPay;
use AliPay\Contracts\Ali;
use WeChat\Contracts\BasicAliPay;
/**
* 手机WAP网站支付支持
* Class Wap
* @package AliPay
*/
class Wap extends Ali
class Wap extends BasicAliPay
{
/**

View File

@ -14,14 +14,14 @@
namespace AliPay;
use AliPay\Contracts\Ali;
use WeChat\Contracts\BasicAliPay;
/**
* 支付宝网站支付
* Class Web
* @package AliPay
*/
class Web extends Ali
class Web extends BasicAliPay
{
/**

2
We.php
View File

@ -30,7 +30,7 @@ use WeChat\Exceptions\InvalidInstanceException;
* @method \WeChat\Media WeChatMedia($options = []) static 微信素材管理
* @method \WeChat\Menu WeChatMenu($options = []) static 微信菜单管理
* @method \WeChat\Oauth WeChatOauth($options = []) static 微信网页授权
* @method \WeChat\Pay WeChatPay($options = []) static 微信支付商户
* @method \WeChat\WePay WeChatPay($options = []) static 微信支付商户
* @method \WeChat\Product WeChatProduct($options = []) static 微信商店管理
* @method \WeChat\Qrcode WeChatQrcode($options = []) static 微信二维码管理
* @method \WeChat\Receive WeChatReceive($options = []) static 微信推送管理

View File

@ -12,10 +12,8 @@
// | github开源项目https://github.com/zoujingli/WeChatDeveloper
// +----------------------------------------------------------------------
namespace AliPay\Contracts;
namespace WeChat\Contracts;
use WeChat\Contracts\DataArray;
use WeChat\Contracts\Tools;
use WeChat\Exceptions\InvalidArgumentException;
/**
@ -23,7 +21,7 @@ use WeChat\Exceptions\InvalidArgumentException;
* Class AliPay
* @package AliPay\Contracts
*/
abstract class Ali
abstract class BasicAliPay
{
/**
@ -228,5 +226,4 @@ abstract class Ali
*/
abstract public function apply($options);
}

View File

@ -22,7 +22,7 @@ use WeChat\Exceptions\InvalidResponseException;
* Class BasicPay
* @package WeChat\Contracts
*/
class BasicPay
class BasicWePay
{
/**
* 商户配置

View File

@ -14,7 +14,7 @@
namespace WeChat;
use WeChat\Contracts\BasicPay;
use WeChat\Contracts\BasicWePay;
use WeChat\Exceptions\InvalidResponseException;
use WePay\Bill;
use WePay\Order;
@ -27,7 +27,7 @@ use WePay\TransfersBank;
* Class Pay
* @package WeChat\Contracts
*/
class Pay extends BasicPay
class WePay extends BasicWePay
{
/**

View File

@ -14,7 +14,7 @@
namespace WePay;
use WeChat\Contracts\BasicPay;
use WeChat\Contracts\BasicWePay;
use WeChat\Contracts\Tools;
use WeChat\Exceptions\InvalidResponseException;
@ -23,7 +23,7 @@ use WeChat\Exceptions\InvalidResponseException;
* Class Bill
* @package WePay
*/
class Bill extends BasicPay
class Bill extends BasicWePay
{
/**
* 下载对账单

View File

@ -14,14 +14,14 @@
namespace WePay;
use WeChat\Contracts\BasicPay;
use WeChat\Contracts\BasicWePay;
/**
* 微信商户代金券
* Class Coupon
* @package WePay
*/
class Coupon extends BasicPay
class Coupon extends BasicWePay
{
/**
* 发放代金券

View File

@ -14,7 +14,7 @@
namespace WePay;
use WeChat\Contracts\BasicPay;
use WeChat\Contracts\BasicWePay;
use WeChat\Contracts\Tools;
/**
@ -22,7 +22,7 @@ use WeChat\Contracts\Tools;
* Class Order
* @package WePay
*/
class Order extends BasicPay
class Order extends BasicWePay
{
/**

View File

@ -14,14 +14,14 @@
namespace WePay;
use WeChat\Contracts\BasicPay;
use WeChat\Contracts\BasicWePay;
/**
* 微信红包支持
* Class Redpack
* @package WePay
*/
class Redpack extends BasicPay
class Redpack extends BasicWePay
{
/**

View File

@ -14,7 +14,7 @@
namespace WePay;
use WeChat\Contracts\BasicPay;
use WeChat\Contracts\BasicWePay;
use WeChat\Contracts\Tools;
use WeChat\Exceptions\InvalidResponseException;
@ -23,7 +23,7 @@ use WeChat\Exceptions\InvalidResponseException;
* Class Refund
* @package WePay
*/
class Refund extends BasicPay
class Refund extends BasicWePay
{
/**

View File

@ -14,14 +14,14 @@
namespace WePay;
use WeChat\Contracts\BasicPay;
use WeChat\Contracts\BasicWePay;
/**
* 微信商户打款到零钱
* Class Transfers
* @package WePay
*/
class Transfers extends BasicPay
class Transfers extends BasicWePay
{
/**

View File

@ -14,7 +14,7 @@
namespace WePay;
use WeChat\Contracts\BasicPay;
use WeChat\Contracts\BasicWePay;
use WeChat\Contracts\Tools;
use WeChat\Exceptions\InvalidArgumentException;
use WeChat\Exceptions\InvalidDecryptException;
@ -25,7 +25,7 @@ use WeChat\Exceptions\InvalidResponseException;
* Class TransfersBank
* @package WePay
*/
class TransfersBank extends BasicPay
class TransfersBank extends BasicWePay
{
/**

View File

@ -21,7 +21,7 @@ try {
$config = include "./config.php";
// 3. 创建接口实例
$wechat = new \WeChat\Pay($config);
$wechat = new \WeChat\WePay($config);
// 4. 组装参数,可以参考官方商户文档
$options = [

View File

@ -21,7 +21,7 @@ try {
$config = include "./config.php";
// 3. 创建接口实例
$wechat = new \WeChat\Pay($config);
$wechat = new \WeChat\WePay($config);
// 4. 组装参数,可以参考官方商户文档
$options = '1217752501201407033233368018';

View File

@ -21,7 +21,7 @@ try {
$config = include "./config.php";
// 3. 创建接口实例
$wechat = new \WeChat\Pay($config);
$wechat = new \WeChat\WePay($config);
// 4. 组装参数,可以参考官方商户文档
$options = [

View File

@ -21,7 +21,7 @@ try {
$config = include "./config.php";
// 3. 创建接口实例
$wechat = new \WeChat\Pay($config);
$wechat = new \WeChat\WePay($config);
// 4. 组装参数,可以参考官方商户文档
$options = [

View File

@ -21,7 +21,7 @@ try {
$config = include "./config.php";
// 3. 创建接口实例
$wechat = new \WeChat\Pay($config);
$wechat = new \WeChat\WePay($config);
// 4. 组装参数,可以参考官方商户文档
$options = [

View File

@ -21,7 +21,7 @@ try {
$config = include "./config.php";
// 3. 创建接口实例
$wechat = new \WeChat\Pay($config);
$wechat = new \WeChat\WePay($config);
// 4. 组装参数,可以参考官方商户文档
$options = [

View File

@ -21,7 +21,7 @@ try {
$config = include "./config.php";
// 3. 创建接口实例
$wechat = new \WeChat\Pay($config);
$wechat = new \WeChat\WePay($config);
// 4. 组装参数,可以参考官方商户文档
$options = [

View File

@ -21,7 +21,7 @@ try {
$config = include "./config.php";
// 3. 创建接口实例
$wechat = new \WeChat\Pay($config);
$wechat = new \WeChat\WePay($config);
// 4. 组装参数,可以参考官方商户文档
$options = [