feat : wechatPay callback
This commit is contained in:
@@ -72,10 +72,12 @@ class RefundOrder extends Model
|
||||
return $this
|
||||
->where('order_id', $orderId)
|
||||
->where('order_type', $type)
|
||||
->whereIn('refund_status',[
|
||||
RefundCode::WAIT_BY_PAY_TOOL,
|
||||
RefundCode::REFUND_SUCCESS
|
||||
])->sum('refund_money') ?? 0;
|
||||
->where('refund_status',RefundCode::REFUND_SUCCESS)
|
||||
// ->whereIn('refund_status',[
|
||||
// RefundCode::WAIT_BY_PAY_TOOL,
|
||||
// RefundCode::REFUND_SUCCESS
|
||||
// ])
|
||||
->sum('refund_money') ?? 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -95,6 +97,6 @@ class RefundOrder extends Model
|
||||
*/
|
||||
public function getInfoByOrderSnoAndType(string $orderSno, int $type): \Hyperf\Database\Model\Model|null
|
||||
{
|
||||
return $this->where('order_sno',$orderSno)->where('order_type',$type)->first();
|
||||
return $this->where('refund_order_sno',$orderSno)->where('refund_type',$type)->first();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user