后台发放(玩家)-操作日志

master
chenzhi 5 years ago
parent e6fe04a218
commit cb696c923f

@ -1396,6 +1396,12 @@ class ExportController extends Controller
array('create_time', "发放时间", 'time_format', '*'),
array('', "共计发放{$total}"),
);
//操作日志
$GetData = $_GET;
unset($GetData['xlsname']);
unset($GetData['id']);
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U('Provide/lists',$GetData),'menu'=>'充值-绑币订单-后台发放(玩家)-导出']);
break;
case 10:
$xlsName = $xlsName?$xlsName:"绑定平台币消费";

@ -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)));

Loading…
Cancel
Save