1import request from "../../request.js" 2import URL from "../../url/user/index.js" 3import Util from "../../../utils/util.js" 4import CONFIG from "../../../utils/config.js" 5class User{ 6 //è·åç¨æ·ä¿¡æ¯ 7 static getUserProfile(){ 8 return request.get({ 9 url: URL.PROFILE 10 }) 11 } 12 //è·åç¨æ·æµç§°/ç¨æ·å 13 static getUserProfileUis({userId}){ 14 return request.get({ 15 url: `${URL.PROFILE_UIS}/${userId}` 16 }) 17 } 18 //è·åç¨æ·å¤´å 19 static getUserAvatar({uuid}){ 20 return new Promise(async(resolve,reject)=>{ 21 let url = `${URL.AVATARS}/${uuid}?${Math.random()}` 22 var res = await request.get({ 23 url, 24 config: { 25 headers: { 26 "Content-Type": "application/x-www-form-urlencoded" 27 } 28 } 29 }) 30 if(Util.isNull(res))resolve(false) 31 let data = { 32 url:`${CONFIG.BASE_URL+url}` 33 } 34 resolve(data) 35 }) 36 } 37} 38 39export default User
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.