|
|
|
@ -117,19 +117,34 @@ class ProvideController extends ThinkController {
|
|
|
|
|
$maps['game_id']=$pro[$i]['game_id'];
|
|
|
|
|
$user=M("UserPlay","tab_")->where($maps)->setInc("bind_balance",$pro[$i]['amount']);
|
|
|
|
|
$list->where($map)->setField("status",1);
|
|
|
|
|
//操作日志
|
|
|
|
|
addOperationLog(array(
|
|
|
|
|
"op_type"=>1,
|
|
|
|
|
"key"=> $pro[$i]['pay_order_number'],
|
|
|
|
|
"url"=>U("Provide/lists",array("user_account"=>$pro[$i]['user_account']))
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
$this->success("充值成功",U("lists",array('type'=>2)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function delprovide($ids=''){
|
|
|
|
|
if (empty($ids)) {
|
|
|
|
|
$this->error('请选择要操作的数据!');
|
|
|
|
|
}
|
|
|
|
|
if (empty($ids)) {
|
|
|
|
|
$this->error('请选择要操作的数据!');
|
|
|
|
|
}
|
|
|
|
|
$list=M("provide","tab_");
|
|
|
|
|
$map['id']=array("in",$ids);
|
|
|
|
|
$map['status']=0;
|
|
|
|
|
//操作日志
|
|
|
|
|
$sre = $list->where($map)->select();
|
|
|
|
|
$delete=$list->where($map)->delete();
|
|
|
|
|
if($delete){
|
|
|
|
|
foreach ($sre as $k => $v) {
|
|
|
|
|
addOperationLog(array(
|
|
|
|
|
"op_type"=>2,
|
|
|
|
|
"key"=> $v['pay_order_number'],
|
|
|
|
|
"url"=>U("Provide/lists",array("user_account"=>$v['user_account']))
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
$this->success("批量删除成功!",U("lists",array('type'=>2)));
|
|
|
|
|
}else{
|
|
|
|
|
$this->error("批量删除失败!",U("lists",array('type'=>2)));
|
|
|
|
|