永星-优化提现说明

master
chenzhi 4 years ago
parent e96c6e8b52
commit 1da5da1ea5

@ -145,7 +145,12 @@ class WithdrawController extends BaseController
} }
$this->poolCount($dbres['pool_id']); $this->poolCount($dbres['pool_id']);
M("company_statement_info","tab_")->save($savedata); M("company_statement_info","tab_")->save($savedata);
$this->ajaxReturn(["msg"=>"打款成功","data"=>$dbres,"status"=>1]);
if ($savedata["pay_status"] == -1) {
$this->ajaxReturn(["msg"=>"提现失败","data"=>$dbres,"status"=>0]);
}
$this->ajaxReturn(["msg"=>"提现成功","data"=>$dbres,"status"=>1]);
} }
/** /**

@ -326,14 +326,10 @@
dataType: "json", dataType: "json",
data: { id:id }, data: { id:id },
success: function (result) { success: function (result) {
if (result.status == 0) { layer.msg(result.msg);
layer.msg(result.msg); setTimeout(function () {
} else { location.reload();
layer.msg('提现成功~'); }, 1000);
setTimeout(function () {
location.reload();
}, 1000);
}
}, },
error: function () { error: function () {

Loading…
Cancel
Save