Commit 7cc6a70b by 冷斌

踢人

parent 96a23bf3
...@@ -125,22 +125,20 @@ class CashController extends AdminbaseController { ...@@ -125,22 +125,20 @@ class CashController extends AdminbaseController {
if($result){ if($result){
if($_POST['status']=='2'){ if($_POST['status']=='2'){
$cash2=M("users_cashrecord")->find($_POST['id']); $cash2=M("users_cashrecord")->find($_POST['id']);
var_dump($cash2); if (!in_array($cash2['source'], [1, 2, 3])) {
die; $this->error('修改失败');
// if () { }
// M("users")->where("id='".$_POST['uid']."'")->setInc("votes",$_POST['votes']); if ($cash2['source'] == 1) {
// } M("users")->where("id='".$_POST['uid']."'")->setInc("votes",$_POST['votes']);
// if () { }
// if ($cash2['source'] == 2) {
// } M("users")->where("id='".$_POST['uid']."'")->setInc("i_votes",$_POST['votes']);
// if () { }
// if ($cash2['source'] == 3) {
// } M("users")->where("id='".$_POST['uid']."'")->setInc("f_votes",$_POST['votes']);
}
$action="修改提现记录:{$_POST['id']} - 拒绝"; $action="修改提现记录:{$_POST['id']} - 拒绝";
}else if($_POST['status']=='1'){ }else if($_POST['status']=='1'){
$action="修改提现记录:{$_POST['id']} - 同意"; $action="修改提现记录:{$_POST['id']} - 同意";
}else if($_POST['status']=='0'){ }else if($_POST['status']=='0'){
......
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