From 9be461598d6dcda31939b22fa5de1f2a256e4efb Mon Sep 17 00:00:00 2001 From: 13503867375 <13503867375> Date: Sat, 17 Sep 2022 18:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=94=99=E5=88=AB=E5=AD=97?= =?UTF-8?q?=E3=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SQL01-数据表结构.sql | 2 +- app/data/service/PaymentService.php | 6 +++--- ...{BalancePyamentService.php => BalancePaymentService.php} | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename app/data/service/payment/{BalancePyamentService.php => BalancePaymentService.php} (97%) diff --git a/SQL01-数据表结构.sql b/SQL01-数据表结构.sql index ad7dbf769..a324c83cb 100644 --- a/SQL01-数据表结构.sql +++ b/SQL01-数据表结构.sql @@ -378,7 +378,7 @@ CREATE TABLE `data_user_payment` ( `payment_trade` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '支付单号', `payment_status` tinyint(1) NULL DEFAULT 0 COMMENT '支付状态', `payment_amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '支付金额', - `payment_datatime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '支付时间', + `payment_datetime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '支付时间', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_user_payment_order_no`(`order_no`) USING BTREE, diff --git a/app/data/service/PaymentService.php b/app/data/service/PaymentService.php index 8139d249a..d0378fe20 100644 --- a/app/data/service/PaymentService.php +++ b/app/data/service/PaymentService.php @@ -6,7 +6,7 @@ use app\data\model\BaseUserPayment; use app\data\model\DataUserPayment; use app\data\model\ShopOrder; use app\data\service\payment\AlipayPaymentService; -use app\data\service\payment\BalancePyamentService; +use app\data\service\payment\BalancePaymentService; use app\data\service\payment\EmptyPaymentService; use app\data\service\payment\JoinpayPaymentService; use app\data\service\payment\VoucherPaymentService; @@ -182,7 +182,7 @@ abstract class PaymentService $vars = ['code' => $code, 'type' => $type, 'params' => $params]; // 实例化具体支付参数类型 if (stripos($type, 'balance') === 0) { - return static::$driver[$code] = Library::$sapp->make(BalancePyamentService::class, $vars); + return static::$driver[$code] = Library::$sapp->make(BalancePaymentService::class, $vars); } elseif (stripos($type, 'voucher') === 0) { return static::$driver[$code] = Library::$sapp->make(VoucherPaymentService::class, $vars); } elseif (stripos($type, 'alipay_') === 0) { @@ -325,7 +325,7 @@ abstract class PaymentService 'payment_trade' => $payTrade, 'payment_amount' => $payAmount, 'payment_status' => 1, - 'payment_datatime' => date('Y-m-d H:i:s'), + 'payment_datetime' => date('Y-m-d H:i:s'), ], 'order_no', [ 'payment_code' => $this->code, 'payment_type' => $this->type, diff --git a/app/data/service/payment/BalancePyamentService.php b/app/data/service/payment/BalancePaymentService.php similarity index 97% rename from app/data/service/payment/BalancePyamentService.php rename to app/data/service/payment/BalancePaymentService.php index 4f3aa5c54..1eb9f8dda 100644 --- a/app/data/service/payment/BalancePyamentService.php +++ b/app/data/service/payment/BalancePaymentService.php @@ -11,10 +11,10 @@ use think\admin\extend\CodeExtend; /** * 账号余额支付参数处理 - * Class BalancePyamentService + * Class BalancePaymentService * @package app\data\service\payment */ -class BalancePyamentService extends PaymentService +class BalancePaymentService extends PaymentService { /** * 订单信息查询