作者 耿培杰

修改退款接口提示语

... ... @@ -1549,7 +1549,7 @@ class Order extends Api
$order_id = $this->request->param('order_id');
$refund_note = $this->request->param('refund_note');
if (!$order_id) $this->error('缺少参数 order_id');
if (!$refund_note) $this->error('缺少参数 refund_note');
if (!$refund_note) $this->error('请填写其他原因');
$orderInfo = $model->where(['id' => $order_id])->find();
if($userId != $orderInfo['user_id']) $this->error('不能操作他人订单');
if ($orderInfo['status'] == 7 || $orderInfo['status'] == 8 || $orderInfo['status'] == -1|| $orderInfo['status'] == 1) $this->error('此订单状态不可退款');
... ... @@ -1595,7 +1595,7 @@ class Order extends Api
$refund_note = $this->request->param('refund_note');
$order_info_id = $this->request->param('order_info_id');
if (!$order_id) $this->error('缺少参数 order_id');
if (!$refund_note) $this->error('缺少参数 refund_note');
if (!$refund_note) $this->error('请填写其他原因');
if (!$order_info_id) $this->error('缺少参数 order_info_id');
$order = $model->where(['id' => $order_id])->find();
... ...