|
@@ -287,6 +287,10 @@ class Refund
|
|
|
} else {
|
|
|
$update['where_id'] = $order['id'];
|
|
|
$update['operdate'] = time();
|
|
|
+ if (isset($order['ps_cash']) && $order['ps_cash'] > 0 && $order['status'] < 4) {
|
|
|
+
|
|
|
+ $update['ps_cash'] = 0;
|
|
|
+ }
|
|
|
$update['status'] = 8;
|
|
|
$state = Dever::db($this->order_table)->update($update);
|
|
|
if ($state) {
|