Commit 25012e77 by 冷斌

踢人

parent 7cc6a70b
...@@ -122,12 +122,12 @@ class CashController extends AdminbaseController { ...@@ -122,12 +122,12 @@ class CashController extends AdminbaseController {
$cash->create(); $cash->create();
$cash->uptime=time(); $cash->uptime=time();
$result=$cash->save(); $result=$cash->save();
if($result){
if($_POST['status']=='2'){
$cash2=M("users_cashrecord")->find($_POST['id']); $cash2=M("users_cashrecord")->find($_POST['id']);
if (!in_array($cash2['source'], [1, 2, 3])) { if (!in_array($cash2['source'], [1, 2, 3])) {
$this->error('修改失败'); $this->error('修改失败');
} }
if($result){
if($_POST['status']=='2'){
if ($cash2['source'] == 1) { if ($cash2['source'] == 1) {
M("users")->where("id='".$_POST['uid']."'")->setInc("votes",$_POST['votes']); M("users")->where("id='".$_POST['uid']."'")->setInc("votes",$_POST['votes']);
} }
......
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