作者 sgj
1 个管道 的构建 失败 耗费 0 秒

增加排行信息

... ... @@ -34,6 +34,7 @@ class AdminLogController extends AdminBaseController
->join('user u','u.id=l.admin_id')
->field('l.*,u.user_login')
->where($map)
->order('l.id desc')
->paginate();
$data->appends($param);
... ...
... ... @@ -87,14 +87,15 @@ class AdminBaseController extends BaseController
* @param $postData
*/
public function addTeamLog($team_id,$model,$action,$postData){
$data['admin_id']=$this->getAdminTeamId();
$data['admin_id']=cmf_get_current_admin_id();
$data['team_id']=$team_id;
$data['team_name']=\db('team')->where('id',$team_id)->value('name');
$data['model']=$model;
$data['action_name']=$action;
$data['data']=json_encode($postData,true);
$data['create_time']=time();
\db('admin_log')->insert($data);
$result=\db('admin_log')->insert($data);
}
/**
... ...