|
|
|
@ -421,6 +421,7 @@ class Orders extends SoftDeletesModel
|
|
|
|
//todo:根据交易状态是否可以退款、以及多次退款金额是否足够进行更精准筛选
|
|
|
|
//todo:根据交易状态是否可以退款、以及多次退款金额是否足够进行更精准筛选
|
|
|
|
//but:出问题的几率微乎其微可以忽略
|
|
|
|
//but:出问题的几率微乎其微可以忽略
|
|
|
|
$recharge = Recharge::where("order_id", $this->id)
|
|
|
|
$recharge = Recharge::where("order_id", $this->id)
|
|
|
|
|
|
|
|
->where("merchant_id", "<>", "1621928535") //忽略微信支付的琳颖账户,2024-08-29
|
|
|
|
->whereNotNull("paid_at")
|
|
|
|
->whereNotNull("paid_at")
|
|
|
|
->whereIn("payment", ["weixin", "alipay"])
|
|
|
|
->whereIn("payment", ["weixin", "alipay"])
|
|
|
|
->whereNotNull("merchant_id")
|
|
|
|
->whereNotNull("merchant_id")
|
|
|
|
|