user(); $m_id=empty($user->{'id'})?0:$user->{'id'}; $url = request()->url(); $data=request()->all(); $ip=CommonServer::creatServer()->getClientIp(); return AdminLog::create( [ 'm_id' => $m_id, 'url' => $url, 'msg' => $msg, 'ip' => $ip, 'data' => http_build_query($data), ] ); } }