Commit 9d46601f authored by 董先生's avatar 董先生

提现核销

parent 96cf75aa
......@@ -399,13 +399,9 @@ class Withdraw extends Backend
$result = false;
Db::startTrans();
try {
//是否采用模型验证
if ($this->modelValidate) {
$name = str_replace("\\model\\", "\\validate\\", get_class($this->model));
$validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate;
$row->validateFailException(true)->validate($validate);
}
$params['status'] = $status;
$result = $row->allowField(true)->save($params);
Db::commit();
} catch (ValidateException $e) {
Db::rollback();
......
......@@ -80,7 +80,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
title: __('核销'),
classname: 'btn btn-xs btn-warning btn-ajax',
url:function (row) {
return 'users/Withdraw/audit?id='+row.id+'&status=2';
return 'users/Withdraw/verification?id='+row.id+'&status=2';
},
refresh:true,
hidden:function (row) {
......
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