mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
commit
b5cbc5255d
@ -378,7 +378,7 @@ CREATE TABLE `data_user_payment` (
|
|||||||
`payment_trade` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '支付单号',
|
`payment_trade` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '支付单号',
|
||||||
`payment_status` tinyint(1) NULL DEFAULT 0 COMMENT '支付状态',
|
`payment_status` tinyint(1) NULL DEFAULT 0 COMMENT '支付状态',
|
||||||
`payment_amount` decimal(20, 2) NULL DEFAULT 0.00 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 '创建时间',
|
`create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
PRIMARY KEY (`id`) USING BTREE,
|
||||||
INDEX `idx_data_user_payment_order_no`(`order_no`) USING BTREE,
|
INDEX `idx_data_user_payment_order_no`(`order_no`) USING BTREE,
|
||||||
|
@ -6,7 +6,7 @@ use app\data\model\BaseUserPayment;
|
|||||||
use app\data\model\DataUserPayment;
|
use app\data\model\DataUserPayment;
|
||||||
use app\data\model\ShopOrder;
|
use app\data\model\ShopOrder;
|
||||||
use app\data\service\payment\AlipayPaymentService;
|
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\EmptyPaymentService;
|
||||||
use app\data\service\payment\JoinpayPaymentService;
|
use app\data\service\payment\JoinpayPaymentService;
|
||||||
use app\data\service\payment\VoucherPaymentService;
|
use app\data\service\payment\VoucherPaymentService;
|
||||||
@ -182,7 +182,7 @@ abstract class PaymentService
|
|||||||
$vars = ['code' => $code, 'type' => $type, 'params' => $params];
|
$vars = ['code' => $code, 'type' => $type, 'params' => $params];
|
||||||
// 实例化具体支付参数类型
|
// 实例化具体支付参数类型
|
||||||
if (stripos($type, 'balance') === 0) {
|
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) {
|
} elseif (stripos($type, 'voucher') === 0) {
|
||||||
return static::$driver[$code] = Library::$sapp->make(VoucherPaymentService::class, $vars);
|
return static::$driver[$code] = Library::$sapp->make(VoucherPaymentService::class, $vars);
|
||||||
} elseif (stripos($type, 'alipay_') === 0) {
|
} elseif (stripos($type, 'alipay_') === 0) {
|
||||||
@ -325,7 +325,7 @@ abstract class PaymentService
|
|||||||
'payment_trade' => $payTrade,
|
'payment_trade' => $payTrade,
|
||||||
'payment_amount' => $payAmount,
|
'payment_amount' => $payAmount,
|
||||||
'payment_status' => 1,
|
'payment_status' => 1,
|
||||||
'payment_datatime' => date('Y-m-d H:i:s'),
|
'payment_datetime' => date('Y-m-d H:i:s'),
|
||||||
], 'order_no', [
|
], 'order_no', [
|
||||||
'payment_code' => $this->code,
|
'payment_code' => $this->code,
|
||||||
'payment_type' => $this->type,
|
'payment_type' => $this->type,
|
||||||
|
@ -11,10 +11,10 @@ use think\admin\extend\CodeExtend;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 账号余额支付参数处理
|
* 账号余额支付参数处理
|
||||||
* Class BalancePyamentService
|
* Class BalancePaymentService
|
||||||
* @package app\data\service\payment
|
* @package app\data\service\payment
|
||||||
*/
|
*/
|
||||||
class BalancePyamentService extends PaymentService
|
class BalancePaymentService extends PaymentService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 订单信息查询
|
* 订单信息查询
|
Loading…
x
Reference in New Issue
Block a user