Commit ed095427 by 冷斌

踢人

parent 261f66b8
...@@ -45,7 +45,13 @@ input{ ...@@ -45,7 +45,13 @@ input{
<span class="form-required">*</span> <span class="form-required">*</span>
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label">来源</label>
<div class="controls">
<input type="text" value="{$source[$cash['source']]}" readonly>
<span class="form-required">*</span>
</div>
</div>
<!-- <div class="control-group"> <!-- <div class="control-group">
<label class="control-label">商户订单号</label> <label class="control-label">商户订单号</label>
......
...@@ -102,6 +102,7 @@ class CashController extends AdminbaseController { ...@@ -102,6 +102,7 @@ class CashController extends AdminbaseController {
$cash['auth']=M("users_auth")->field("*")->where("uid='$cash[uid]'")->find(); $cash['auth']=M("users_auth")->field("*")->where("uid='$cash[uid]'")->find();
$this->assign('cash', $cash); $this->assign('cash', $cash);
$this->assign('type', $this->type); $this->assign('type', $this->type);
$this->assign('source', [1 => '主播魅力', 2 => '邀请魅力', 3 => '家族魅力']);
}else{ }else{
$this->error('数据传入失败!'); $this->error('数据传入失败!');
} }
...@@ -121,10 +122,24 @@ class CashController extends AdminbaseController { ...@@ -121,10 +122,24 @@ class CashController extends AdminbaseController {
$cash->create(); $cash->create();
$cash->uptime=time(); $cash->uptime=time();
$result=$cash->save(); $result=$cash->save();
var_dump($result);
die;
if($result){ if($result){
if($_POST['status']=='2'){ if($_POST['status']=='2'){
M("users")->where("id='".$_POST['uid']."'")->setInc("votes",$_POST['votes']); // if () {
// M("users")->where("id='".$_POST['uid']."'")->setInc("votes",$_POST['votes']);
// }
// if () {
//
// }
// if () {
//
// }
$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