Commit d77d8e90 authored by hujun's avatar hujun

退款驳回判断

parent 68bc7da3
......@@ -134,6 +134,8 @@ class PayLog extends Basic
return $this->response("200", "request success", []);
} elseif ($is_ok == -2) {
return $this->response("101", "退款金不能大于剩余的支付金额");
} elseif ($is_ok == -3) {
return $this->response("101", "请在原退款上驳回修改");
}
return $this->response("101", "request faild");
}
......
......@@ -165,6 +165,13 @@ class PayLogService
$refund_way, $remark, $remark_img, $refund_id, $del_img)
{
$where['pay_log_id'] = $pay_log_id;
$where['status'] = 4;
$id = $this->oRefundModel->getFind('id', ['pay_log_id'=>$pay_log_id]);
if ($id['id'] > 0) {
return -3; //在驳回上修改
}
//验证金额是否合法
$payLogService = new PayLogService();
$residue_money = $payLogService->adjustment($pay_log_id);
......
......@@ -4523,6 +4523,8 @@ class Finance extends Basic
return $this->response("200", "request success", []);
} elseif ($is_ok == -2) {
return $this->response("101", "退款金不能大于剩余的支付金额");
} elseif ($is_ok == -3) {
return $this->response("101", "请在原退款上驳回修改");
}
return $this->response("101", "request faild");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment