|
@@ -70,7 +70,7 @@ class Refund
|
|
|
|
|
|
$data['status'] = $status;
|
|
|
$data['cash'] = $price;
|
|
|
- if ($p_price && $p_price > 0) {
|
|
|
+ if ($p_price) {
|
|
|
$data['p_cash'] = $p_price;
|
|
|
}
|
|
|
|
|
@@ -192,7 +192,7 @@ class Refund
|
|
|
$update['where_id'] = $data['id'];
|
|
|
$update['refund_cash'] = $data['refund_cash'] + $cash;
|
|
|
if (isset($data['refund_p_cash'])) {
|
|
|
- $update['refund_p_cash'] = $data['refund_p_cash'] + $cash;
|
|
|
+ $update['refund_p_cash'] = $data['refund_p_cash'] + $p_cash;
|
|
|
}
|
|
|
$update['refund_status'] = 2;
|
|
|
if ($dec > 0) {
|
|
@@ -309,7 +309,7 @@ class Refund
|
|
|
Dever::load('shop/lib/goods')->oper($order, 1, 1, $data);
|
|
|
}
|
|
|
|
|
|
- return 'ok';
|
|
|
+ return 'reload';
|
|
|
}
|
|
|
|
|
|
|