feat : wechatPay callback

This commit is contained in:
2025-03-18 16:27:24 +08:00
parent 63b6cce2bd
commit c7b667dc61
4 changed files with 10 additions and 5 deletions

View File

@@ -74,13 +74,13 @@ class CouponDispenseUser extends Model
}
/**
* @param array $userIds
* @param int $userId
* @return array
*/
public function getNoReceiveCountByUserIds(array $userIds): array
public function getNoReceiveCountByUserId(int $userId): array
{
return $this
->whereIn('user_id', $userIds)
->where('user_id', $userId)
->where('receive_count',CouponCode::DISPENSE_STATUS_IS_NO_RECEIVED)
->pluck('coupon_dispense_id')
->toArray();

View File

@@ -67,6 +67,11 @@ class RefundOrder extends Model
])->sum('refund_money') ?? 0;
}
/**
* @param int $orderId
* @param int $type
* @return float|int|string
*/
public function getSuccessMoneyByOrderId(int $orderId, int $type): float|int|string
{
return $this