优化行为日志导出

master
chenzhi 4 years ago
parent bae615bac0
commit a327627f85

@ -48,7 +48,7 @@ class ActionController extends AdminController {
public function edit($id = 0){
empty($id) && $this->error('参数错误!');
$info = M('ActionLog')->field(true)->find($id);
$info = SM('ActionLog')->field(true)->find($id);
$this->assign('info', $info);
$this->meta_title = '查看行为日志';
@ -73,7 +73,7 @@ class ActionController extends AdminController {
}elseif (is_numeric($ids)){
$map['id'] = $ids;
}
$res = M('ActionLog')->where($map)->delete();
$res = SM('ActionLog')->where($map)->delete();
\Think\Log::actionLog("Action/remove",'Action',1);
if($res !== false){
$this->success('删除成功!');
@ -86,7 +86,7 @@ class ActionController extends AdminController {
* 清空日志
*/
public function clear(){
$res = M('ActionLog')->where('1=1')->delete();
$res = SM('ActionLog')->where('1=1')->delete();
\Think\Log::actionLog("Action/clear",'Action',1);
if($res !== false){
$this->success('日志清空成功!');

@ -7821,7 +7821,7 @@ class ExportController extends Controller
$xlsName = $_REQUEST['xlsname'];
$model = M('ActionLog');
$model = SM('ActionLog');
$xlsCell = array(
array('id','编号'),

@ -508,7 +508,7 @@ function get_nickname($uid = 0)
if (isset($list[$key])) { //已缓存,直接使用
$name = $list[$key];
} else { //调用接口获取用户信息
$info = M('Member')->field('nickname')->find($uid);
$info = SM('Member')->field('nickname')->find($uid);
if ($info !== false && $info['nickname']) {
$nickname = $info['nickname'];
$name = $list[$key] = $nickname;

Loading…
Cancel
Save