合作方管理-操作日志

master
chenzhi 5 years ago
parent 79108b7a93
commit c24b5b9e9c

@ -167,6 +167,11 @@ class PartnerController extends ThinkController
$parseData = array_values($parseData);
if($is_export){
$this->assign('listData', $parseData[0]);
$GetData = $_GET;
unset($GetData['export']);
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData),'menu'=>"游戏-游戏管理-合作方管理-导出"]);
$this->display("export");
die();
}
@ -373,6 +378,11 @@ class PartnerController extends ThinkController
$this->error('保存失败');
} else {
\Think\Log::actionLog('Partner/edit', 'partner', $id);
addOperationLog(array(
"op_type"=>1,
"key"=>$partner,
"url"=>U("Partner/lists",array("partner"=>$partner))
));
$this->success('保存成功', U('lists'));
}
} else {
@ -416,12 +426,16 @@ class PartnerController extends ThinkController
$this->error('参数异常');
}
}
@$yres = M($this->modelName, 'tab_')->field("partner")->find($id)['partner'];
$res = M($this->modelName, 'tab_')->delete($id);
if ($res === false) {
$this->error('删除失败');
}
addOperationLog(array(
"op_type"=>2,
"key"=>$yres,
"url"=>U("Partner/lists")
));
$this->success('删除成功', U('lists'));
}

Loading…
Cancel
Save