PageSourceSearch

https://takungpao.com/static/tkwwtemplate/js/api/model/user/index.js

js takungpao.com collected 2026-09-24 17:41:59 UTC 979 bytes, 39 lines download raw bytes

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.