|
@@ -123,7 +123,7 @@ class Resource extends Main
|
|
|
public function applyRefund()
|
|
|
{
|
|
|
$info = $this->service->getOrderView();
|
|
|
- if ($info && $info['type'] == 1 && $info['status'] > 1 && $info['status'] < 7 && !$info['refund_cur']) {
|
|
|
+ if ($info && $info['type'] == 1 && $info['status'] > 1 && $info['status'] < 7 && !$info['refund']) {
|
|
|
$data['type'] = Dever::db('order_refund', $this->service->app)->value('type');
|
|
|
$data['desc_type'] = Dever::db('order_refund', $this->service->app)->value('desc_type');
|
|
|
$data['cash'] = $info['cash'];
|