mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-24 02:16:14 +08:00
Update PaymentService.php
This commit is contained in:
parent
de46b9a862
commit
7a72760f83
@ -185,14 +185,14 @@ abstract class PaymentService extends Service
|
|||||||
protected function createPaymentAction(string $param, string $orderNo, string $payTitle, string $payAmount)
|
protected function createPaymentAction(string $param, string $orderNo, string $payTitle, string $payAmount)
|
||||||
{
|
{
|
||||||
if (is_numeric(stripos($param, '-'))) {
|
if (is_numeric(stripos($param, '-'))) {
|
||||||
[$paymentType, $paymentId] = explode('-', $param);
|
[$paymentType, $paymentCode] = explode('-', $param);
|
||||||
} else {
|
} else {
|
||||||
[$paymentType, $paymentId] = [$param ?: static::$type, static::$code];
|
[$paymentType, $paymentCode] = [$param ?: static::$type, static::$code];
|
||||||
}
|
}
|
||||||
// 创建支付记录
|
// 创建支付记录
|
||||||
$this->app->db->name('DataPaymentItem')->insert([
|
$this->app->db->name('DataPaymentItem')->insert([
|
||||||
'order_no' => $orderNo, 'order_name' => $payTitle, 'order_amount' => $payAmount,
|
'payment_code' => $paymentCode, 'payment_type' => $paymentType,
|
||||||
'payment_id' => $paymentId, 'payment_type' => $paymentType,
|
'order_name' => $payTitle, 'order_amount' => $payAmount, 'order_no' => $orderNo,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user