|
@@ -111,6 +111,10 @@ class Refund
|
|
|
}
|
|
|
|
|
|
$data = Dever::load($this->lib)->set($type, 1)->getView($id, $order_id, false);
|
|
|
+
|
|
|
+ if (isset($data['withdraw']) && $data['withdraw'] == 2) {
|
|
|
+ Dever::alert('当前订单状态不允许退货退款');
|
|
|
+ }
|
|
|
$auth = false;
|
|
|
if ($this->type == 'sell' && $type == 1) {
|
|
|
if ($data['status'] == 2) {
|
|
@@ -235,6 +239,10 @@ class Refund
|
|
|
Dever::alert('您没有权限操作');
|
|
|
}
|
|
|
|
|
|
+ if (isset($order['withdraw']) && $order['withdraw'] == 2) {
|
|
|
+ Dever::alert('当前订单状态不允许退货退款');
|
|
|
+ }
|
|
|
+
|
|
|
$state = Dever::db($this->refund_table)->update(array('where_id' => $info['id'], 'process' => $process));
|
|
|
|
|
|
if (!$state) {
|