!38 更新错别字

Merge pull request !38 from stranger/v6
This commit is contained in:
Anyon 2022-09-19 02:21:13 +00:00 committed by Gitee
commit b5cbc5255d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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
{
/**
* 订单信息查询