|
@@ -241,11 +241,11 @@ class Refund
|
|
|
|
|
|
$total = Dever::db($this->goods_table)->total(array('order_id' => $order['id'], 'status' => 1));
|
|
|
|
|
|
- if ($order['status'] == 5) {
|
|
|
- $update['status'] = 6;
|
|
|
- } elseif ($total <= 0) {
|
|
|
+ if ($total <= 0) {
|
|
|
$update['operdate'] = time();
|
|
|
$update['status'] = 8;
|
|
|
+ } elseif ($order['status'] == 5) {
|
|
|
+ $update['status'] = 6;
|
|
|
}
|
|
|
|
|
|
if ($update) {
|