Commit 93ce477e authored by hangjun83's avatar hangjun83

1、增加对期货商品的退货逻辑

parent 50c44cc5
......@@ -309,6 +309,9 @@ class BhOrdersService
if($sum > $dpdSum){
//期货数量
$futuresNum = $sum - $dpdSum;
if($futuresNum > 0 && $refundInfo->handle_fee > 0){
throw new \LogicException('包含期货数据,并且期货不支持手续费',500);
}
if($futuresNum == $refundInfo->refund_nums){
$spotNums = 0;
}elseif($refundInfo->refund_nums > $futuresNum){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment