作者 耿培杰

修改退款接口提示语

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