dna-api 0.3.7 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -48,11 +48,20 @@ export declare class DNAAPI extends DNABaseAPI {
48
48
  updateMhSwitchStatus(config: string): Promise<import("./TimeBasicResponse").TimeBasicResponse<any>>;
49
49
  soulTask(): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNASoulTaskBean>>;
50
50
  defaultRoleForTool(type?: number, otherUserId?: string): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNARoleEntity>>;
51
- getRoleDetail(char_id: string, char_eid: string, otherUserId?: string): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNACharDetailEntity>>;
52
- getWeaponDetail(weapon_id: string, weapon_eid: string, otherUserId?: string): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNAWeaponDetailEntity>>;
51
+ getRoleDetail(char_id: string | number, char_eid: string, otherUserId?: string): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNACharDetailEntity>>;
52
+ getWeaponDetail(weapon_id: string | number, weapon_eid: string, otherUserId?: string): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNAWeaponDetailEntity>>;
53
53
  getShortNoteInfo(): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNAShortNoteEntity>>;
54
+ /**
55
+ * 获取帖子列表
56
+ * @param forumId 论坛ID,默认48(主论坛)46 全部
57
+ * @param pageIndex 页码,默认1
58
+ * @param pageSize 每页数量,默认20
59
+ * @param searchType 搜索类型,默认1:最新 2:热门
60
+ * @param timeType 时间类型,默认0(全部时间)
61
+ * @returns 帖子列表响应
62
+ */
54
63
  getPostList(forumId?: number, pageIndex?: number, pageSize?: number, searchType?: number, timeType?: number): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNADiscussAreaResponse>>;
55
- getPostDetail(postId: string): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNAPostDetailResponse>>;
64
+ getPostDetail(postId: string | number): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNAPostDetailResponse>>;
56
65
  getPostByTopic(topicId?: number, pageIndex?: number, pageSize?: number, searchType?: number, timeType?: number): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNATopicListResponse>>;
57
66
  getTaskProcess(): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNAUserTaskProcessEntity>>;
58
67
  haveSignIn(): Promise<import("./TimeBasicResponse").TimeBasicResponse<import("./type-generated").DNASignInBean>>;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var E;((s)=>{s[s.ERROR=-999]="ERROR";s[s.OK_ZERO=0]="OK_ZERO";s[s.OK_HTTP=200]="OK_HTTP";s[s.BAD_REQUEST=400]="BAD_REQUEST";s[s.SERVER_ERROR=500]="SERVER_ERROR"})(E||={});class p{code=0;msg="";data;constructor(e){this.code=e.code||0,this.msg=e.msg||"",this.data=e.data}get is_success(){return this.code===200||this.code===0}get success(){return this.is_success}static err(e,n=-999){return new p({code:n,msg:e,data:void 0})}}import*as D from"node-forge";function G(e,n){try{let t=[];for(let o=0;o<n.length;o+=64)t.push(n.slice(o,o+64));let r=`-----BEGIN PUBLIC KEY-----
2
2
  ${t.join(`
3
3
  `)}
4
- -----END PUBLIC KEY-----`,i=D.pki.publicKeyFromPem(r),s=D.util.encodeUtf8(e),a=i.encrypt(s);return D.util.encode64(a)}catch(t){throw Error(`[DNA] RSA 加密失败: ${t.message}`)}}function v(e=16){let t="";for(let r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return t}function J(e){let n=D.md.md5.create();return n.update(e),n.digest().toHex().toUpperCase()}function Z(e){function n(t,r){let i=t.split("");for(let s=1;s<r.length;s+=2){let a=r[s-1],o=r[s];if(a>=0&&a<i.length&&o>=0&&o<i.length)[i[a],i[o]]=[i[o],i[a]]}return i.join("")}return n(J(e),[1,13,5,17,7,23])}function Q(e,n){let t=[],r=Object.keys(e).sort();for(let s of r){let a=e[s];if(a!==null&&a!==void 0&&a!=="")t.push(`${s}=${a}`)}let i=t.join("&");return Z(`${i}&${n}`)}function V(e,n){let t=Date.now(),r={...e,timestamp:t,token:n},i=v(16),s=Q(r,i);return{s:X(s,i),t,k:i}}function H(e){let n=v(16),t=G(n,e);return{signature:W(t),key:n}}function W(e){let n=e.split(""),t=[[3,23],[11,32],[22,42],[25,48]];for(let[r,i]of t)if(r<n.length&&i<n.length)[n[r],n[i]]=[n[i],n[r]];return n.join("")}function O(e,n){let t=W(e),r=D.util.decode64(t),i=D.cipher.createDecipher("AES-CBC",n);return i.start({iv:"A-16-Byte-String"}),i.update(D.util.createBuffer(r)),i.finish(),i.output.getBytes()}function X(e,n){let t=new TextEncoder,r=t.encode(e),i=t.encode(n),s=[];for(let a=0;a<r.length;a++){let b=(r[a]&255)+(i[a%i.length]&255);s.push(`@${b}`)}return s.join("")}class _{dev_code;token;fetchFn;is_h5=!1;RSA_PUBLIC_KEY="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGpdbezK+eknQZQzPOjp8mr/dP+QHwk8CRkQh6C6qFnfLH3tiyl0pnt3dePuFDnM1PUXGhCkQ157ePJCQgkDU2+mimDmXh0oLFn9zuWSp+U8uLSLX3t3PpJ8TmNCROfUDWvzdbnShqg7JfDmnrOJz49qd234W84nrfTHbzdqeigQIDAQAB";BASE_URL="https://dnabbs-api.yingxiong.com/";uploadKey="";sign_api_urls=new Set;constructor(e,n="",t={}){this.dev_code=e;this.token=n;if(this.fetchFn=t.fetchFn,t.is_h5!==void 0)this.is_h5=t.is_h5;if(t.rsa_public_key!==void 0)this.RSA_PUBLIC_KEY=t.rsa_public_key}async fileUpload(e,n){let t=await this._dna_request(e,n,{sign:!0});if(t.is_success&&t.data)t.data=t.data.map((r)=>O(r,this.uploadKey));return t}async getRsaPublicKey(){if(this.RSA_PUBLIC_KEY)return this.RSA_PUBLIC_KEY;let e=await this._dna_request("config/getRsaPublicKey");if(e.is_success&&e.data){let n=e.data.key;if(typeof n==="string")this.RSA_PUBLIC_KEY=n}return this.RSA_PUBLIC_KEY}async getHeaders(e){let{payload:n,exparams:t,dev_code:r=this.dev_code,refer:i,token:s=this.token,tokenSig:a,h5:o}=e||{},b="application/x-www-form-urlencoded; charset=utf-8",q={version:"1.1.3",source:"ios","Content-Type":"application/x-www-form-urlencoded; charset=utf-8","User-Agent":"DoubleHelix/4 CFNetwork/3860.100.1 Darwin/25.0.0"},k={version:"3.11.0",source:"h5","Content-Type":"application/x-www-form-urlencoded; charset=utf-8","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36"},h=this.is_h5||o||!1,c={...h?k:q};if(r)c.devCode=r;if(i||h)c.origin="https://dnabbs.yingxiong.com",c.refer="https://dnabbs.yingxiong.com/";if(s)c.token=s;if(n instanceof FormData){let N=await this.getRsaPublicKey(),{signature:g,key:d}=H(N);if(c.t=g,this.uploadKey=d,t)for(let[f,B]of Object.entries(t))n.append(f,String(B));delete c["Content-Type"]}else if(typeof n==="object"){let N=V(n,a?s:"");if(Object.assign(n,{sign:N.s,timestamp:N.t}),t)Object.assign(n,t);let g=new URLSearchParams;Object.entries(n).forEach(([S,w])=>{g.append(S,String(w))}),n=g.toString();let d=N.k,f=await this.getRsaPublicKey(),B=G(d,f);if(this.is_h5)c.k=B;else c.rk=d,c.key=B}return{headers:c,payload:n}}async needSign(e){if(this.sign_api_urls.size===0)try{await this.initializeSignConfig()}catch(n){console.error("初始化签名配置失败:",n),this.sign_api_urls=new Set(["/user/sdkLogin","/forum/postPublish","/forum/comment/createComment","/forum/comment/createReply","/user/getSmsCode","/role/defaultRoleForTool","/media/av/cfg/getVideos","/media/av/cfg/getAudios","/media/av/cfg/getImages","/encourage/signin/signin"].map((t)=>t.replace(/^\/+/,"")))}return this.sign_api_urls.has(e)}async initializeSignConfig(){try{let e=await this._dna_request("config/getCommonConfig",void 0,{sign:!1});if(e.is_success&&e.data?.signApiConfigVo?.signApiList)this.sign_api_urls=new Set(e.data.signApiConfigVo.signApiList.map((n)=>n.replace(/^\/+/,"")))}catch(e){console.error("初始化签名配置失败:",e)}}async _dna_request_h5(e,n,t){return await this._dna_request(e,n,{...t,h5:!0})}async _dna_request(e,n,t){let{method:r="POST",sign:i,h5:s,refer:a,params:o,max_retries:b=3,retry_delay:q=1,timeout:k=1e4,token:h,tokenSig:c}=t||{};if(i===void 0&&await this.needSign(e))i=!0;let N;if(i){let{payload:g,headers:d}=await this.getHeaders({payload:n,refer:a,exparams:o,token:h?this.token:void 0,tokenSig:c,h5:s});n=g,N=d}else{let{headers:g}=await this.getHeaders({token:h?this.token:void 0,refer:a,h5:s});N=g}for(let g=0;g<b;g++)try{let d=n;if(n&&typeof n==="object"&&!(n instanceof FormData)){let C=new URLSearchParams;Object.entries(n).forEach(([K,M])=>{if(M!==void 0)C.append(K,String(M))}),d=C.toString()}let f={method:r,headers:N,body:d},B=new AbortController,S=setTimeout(()=>B.abort(),k),w={...f,signal:B.signal},U=this.fetchFn?await this.fetchFn(`${this.BASE_URL}${e}`,w):await fetch(`${this.BASE_URL}${e}`,w);clearTimeout(S);let j=U.headers.get("content-type")||"",A;if(j.includes("text/")){let C=await U.text();A={code:-999,data:C}}else A=await U.json();if(typeof A==="object"&&A!==null)try{if(typeof A.data==="string")A.data=JSON.parse(A.data)}catch(C){}return new p(A)}catch(d){if(console.error(`请求失败: ${d.message}`),g<b-1)await new Promise((f)=>setTimeout(f,q*Math.pow(2,g)))}return p.err("请求服务器失败,已达最大重试次数")}}class m{_base;constructor(e){this._base=e}get dev_code(){return this._base.dev_code}get token(){return this._base.token}set token(e){this._base.token=e}get fetchFn(){return this._base.fetchFn}get is_h5(){return this._base.is_h5}get RSA_PUBLIC_KEY(){return this._base.RSA_PUBLIC_KEY}get BASE_URL(){return this._base.BASE_URL}get uploadKey(){return this._base.uploadKey}async getRsaPublicKey(){return this._base.getRsaPublicKey()}async fileUpload(e,n){return await this._base.fileUpload(e,n)}async _dna_request(e,n,t){return this._base._dna_request(e,n,t)}async _dna_request_h5(e,n,t){return this._base._dna_request_h5(e,n,t)}async getHeaders(e){return this._base.getHeaders(e)}}class y extends m{constructor(e){super(e)}async defaultRoleForTool(e=1,n){let t={otherUserId:n,type:e};if(!n)delete t.otherUserId;return await this._dna_request("role/defaultRoleForTool",t,{sign:!0,token:!0,tokenSig:!0})}async getMhSwitchStatus(){return await this._dna_request("user/push/getMhSwitchStatus")}async getRoleDetail(e,n,t){let r={charId:e,charEid:n,type:1,otherUserId:t};return await this._dna_request("role/getCharDetail",r)}async getShortNoteInfo(){return await this._dna_request("role/getShortNoteInfo")}async getWeaponDetail(e,n,t){let r={weaponId:e,weaponEid:n,type:1,otherUserId:t};return await this._dna_request("role/getWeaponDetail",r)}async updateMhSwitchStatus(e){return await this._dna_request("user/push/updateMhSwitchStatus",{config:e})}async soulTask(){return await this._dna_request("role/soul/task")}}var u=268;class L extends m{constructor(e){super(e)}async adminAdjustScore(e,n,t,r=u){let i={postId:e,gameId:r??u,gameForumId:n,weight:t};return await this._dna_request("forum/moderator/setPostWeight",i)}async adminDelete(e,n,t){let r={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,content:n,reasonCode:t};return await this._dna_request("forum/moderator/postDelete",r)}async adminMovePost(e,n,t,r){let i={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,newGameId:n,newForumId:t,newTopicIdStr:r};return await this._dna_request("forum/moderator/postMove",i)}async adminRefreshTime(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,refresh:n};return await this._dna_request("forum/moderator/setRefresh",t)}async blockList(){return await this._dna_request("user/block/list")}async blockOther(e,n,t){return await this._dna_request("user/block/other",{blockPostId:e,blockUserId:n,type:t})}async collect(e,n,t=1){let r={operateType:t,postId:e,toUserId:n};return await this._dna_request("forum/collect",r)}async commentDelete(e,n,t,r){let i={id:e.id,gameId:e.gameId,gameForumId:e.gameForumId,entityType:n,content:t,reasonCode:r};return await this._dna_request("forum/commentReplyDelete",i)}async createComment(e,n){let t=JSON.stringify([{content:n,contentType:"1"}]),r={postId:e.postId,forumId:e.gameForumId,postType:"1",content:t};return await this._dna_request("forum/comment/createComment",r,{sign:!0,params:{toUserId:e.userId}})}async createReply(e,n){let r={content:JSON.stringify([{content:n,contentType:"1",imgHeight:0,imgWidth:0,url:""}]),forumId:e.gameForumId,postCommentId:e.postCommentId,postId:e.postId,postType:"1",toUserId:e.userId};return await this._dna_request("forum/comment/createReply",r,{sign:!0,params:{toUserId:e.userId}})}async createReplyList(e,n){let r={content:JSON.stringify([{content:n,contentType:"1",imgHeight:0,imgWidth:0,url:""}]),forumId:e.gameForumId,postCommentId:e.postCommentId,postCommentReplyId:e.postCommentReplyId,postId:e.postId,postType:"1",toUserId:e.userId};return await this._dna_request("forum/comment/createReply",r,{sign:!0,params:{toUserId:e.userId}})}async deletePost(e,n){return await this._dna_request("forum/more/delete",{deleteType:e,id:n},{sign:!0,refer:!0})}async followUser(e,n){let t={followUserId:e,operateType:n?0:1};return await this._dna_request("user/followUser",t,{sign:!0})}async getFollowState(e){let n={followUserId:e};return await this._dna_request("user/isFollow",n)}async gameSignIn(e,n){let t={dayAwardId:e,periodId:n,signinType:1};return await this._dna_request("encourage/signin/signin",t,{sign:!0})}async getDoujin(e){return await this._dna_request("forum/discuss/getDoujin",{forumId:e})}async getExchange(e){return await this._dna_request("forum/discuss/getExchange",{forumId:e})}async getGameBanner(e=u){return await this._dna_request("forum/gameBanner",{gameId:e})}async getPostByTopic(e=177,n=1,t=20,r=1,i=0){let s={topicId:e,gameId:u,pageIndex:n,pageSize:t,searchType:r,timeType:i};return await this._dna_request("forum/getPostByTopic",s)}async getPostCommentList(e,n=1,t=20,r=0){return await this._dna_request("forum/comment/getPostCommentList",{postId:e,pageIndex:n,pageSize:t,isOnlyPublisher:r})}async getPostDetail(e){return await this._dna_request("forum/getPostDetail",{postId:e})}async getPostList(e=48,n=1,t=20,r=1,i=0){let s={forumId:e,gameId:u,pageIndex:n,pageSize:t,searchType:r,timeType:i};return await this._dna_request("forum/list",s)}async getRankList(e){return await this._dna_request("forum/discuss/getRank",{forumId:e})}async getRecommendPosts(e=u,n=1,t=20){return await this._dna_request("forum/getRecommendPosts",{gameId:e,pageIndex:n,pageSize:t})}async getReplyList(e,n,t=1,r=20){return await this._dna_request("forum/comment/getReplyList",{postId:e,postCommentId:n,pageIndex:t,pageSize:r})}async getStatistics(e=u){return await this._dna_request("forum/statistics",{gameId:e})}async getTips(){return await this._dna_request("config/getTips")}async getWalkthrough(e){return await this._dna_request("forum/discuss/getWalkthrough",{forumId:e})}async hotList(e=1,n=u){return await this._dna_request("forum/hot/ranking/list",{gameId:n,type:e})}async haveSignIn(){let e={gameId:u};return await this._dna_request("user/haveSignInNew",e)}async isRedPoint(){return await this._dna_request("forum/dynamic/isRedPoint")}async signCalendar(){let e={gameId:u};return await this._dna_request("encourage/signin/show",e)}async like(e){let n={forumId:e.gameForumId,gameId:u,likeType:"1",operateType:"1",postCommentId:"",postCommentReplyId:"",postId:e.postId,postType:e.postType,toUserId:e.userId};return await this._dna_request("forum/like",n)}async lockPost(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/postLock",t)}async postDownOrUp(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/postDownOrUp",t)}async postElite(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/postElite",t)}async postHide(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/postHide",t)}async reRank(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,weight:n};return await this._dna_request("forum/moderator/reRank",t)}async receiveLog(e,n,t){let r={periodId:e,pageIndex:n,pageSize:t};return await this._dna_request("encourage/signin/receiveLog",r)}async recommendList(e,n,t,r,i=u){let s={gameId:i,recIndex:e,newIndex:n,size:t,history:r};return await this._dna_request("forum/recommend/list",s)}async report({commentId:e=0,postId:n=0,replyId:t=0},r=1,i=1){let s={commentId:e,postId:n,replyId:t,reportReason:r,reportType:i};return await this._dna_request("forum/more/report",s)}async searchPost(e,n,t,r=u,i=1){let s={gameId:r,keyword:e,pageIndex:n,pageSize:t,searchType:i};return await this._dna_request("forum/searchPost",s)}async searchTopic(e,n,t=20,r=u){let i={gameId:r,keyword:e,pageIndex:n,pageSize:t};return await this._dna_request("forum/searchPost",i)}async searchUser(e,n,t){let r={keyword:e,pageIndex:n,pageSize:t};return await this._dna_request("forum/searchPost",r)}async shareTask(){let e={gameId:u};return await this._dna_request("encourage/level/shareTask",e)}async bbsSign(){let e={gameId:u};return await this._dna_request("user/signIn",e)}async strongRecommend(e,n=1){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/setForceRecommend",t)}async viewCommunity(){return await this._dna_request("encourage/level/viewCommunity")}async viewCount(e,n=u){return await this._dna_request("forum/viewCount",{gameId:n,postId:e})}async getTaskProcess(){let e={gameId:u};return await this._dna_request("encourage/level/getTaskProcess",e)}async soulTask(){return await this._dna_request("role/soul/task")}}class x extends m{constructor(e){super(e)}async blackUser(e,n){return await this._dna_request("user/blackUser",{toUserId:e,type:n})}async cleanFansNew(e,n){return await this._dna_request("user/cleanFansNew",{type:e,userFollowId:n})}async collect(e,n,t=1){return await this._dna_request("forum/collect",{operateType:t,postId:e,toUserId:n})}async defaultRole(e,n=1){return await this._dna_request("user/defaultRole",{otherUserId:e,type:n})}async deleteRole(e){return await this._dna_request("role/remove",{roleBoundId:e})}async draftDelete(e){return await this._dna_request("forum/more/draftDelete",{draftId:e})}async fans(e,n,t,r){return await this._dna_request("user/fans",{otherUserId:e,pageNo:n,pageSize:t,type:r})}async fastBind(){return await this._dna_request("role/quickBound")}async follow(e,n,t,r){return await this._dna_request("user/follow",{otherUserId:e,pageNo:n,pageSize:t,type:r})}async followUser(e,n){return await this._dna_request("user/followUser",{followUserId:e,operateType:n?0:1})}async getApplyStatus(){return await this._dna_request("user/creator/getApplyStatus")}async getDraftList(e,n){return await this._dna_request("forum/getDraftList",{pageIndex:e,pageSize:n})}async getMineComment(e,n,t,r){return await this._dna_request("user/notice/mine",{otherUserId:e,pageIndex:n,pageSize:t,type:r})}async getMinePost(e,n,t,r,i,s){return await this._dna_request("forum/getMinePost",{otherUserId:e,pageIndex:n,pageSize:t,searchType:r,type:i,postType:s})}async getNotifySwitch(){return await this._dna_request("user/push/getSwitchStatus")}async historyView(e,n){return await this._dna_request("forum/historyView",{pageIndex:e,pageSize:n})}async like(e){return await this._dna_request("forum/like",e)}async manualBound(e,n,t){return await this._dna_request("role/manualBound",{roleId:e,type:n,code:t})}async mine(e,n,t,r){let i={otherUserId:e,searchType:n,type:t,postType:r};if(!e)delete i.otherUserId;return await this._dna_request("user/mine",i)}async mineV2(e){return await this._dna_request("user/mineV2",{otherUserId:e})}async moderatorByGame(e){return await this._dna_request("user/moderator/getModeratorByGame",{gameId:e})}async muteCancel(e){return await this._dna_request("forum/moderator/muteCancel",{toUserId:e})}async muteUser(e,n,t,r,i){return await this._dna_request("forum/moderator/muteUser",{toUserId:e,gameIdStr:n,type:t,reason:r,content:i})}async resetDefault(e){return await this._dna_request("role/resetDefault",{roleBoundId:e})}async roleManager(){return await this._dna_request("role/list")}}class I extends m{constructor(e){super(e)}async addAddress(e,n,t){return await this._dna_request("user/more/userAddressAdd",{receiverName:e,receiverMobile:n,receiverAddress:t})}async blackUser(e,n){return await this._dna_request("user/blackUser",{toUserId:e,type:n})}async cancelCode(e){return await this._dna_request("user/more/cancelCode",{code:e})}async cancel(e,n,t,r,i){return await this._dna_request("user/more/cancel",{cancelType:e,operateType:n,position:t,cancelReason:r,reasonDetail:i})}async deleteAddress(e){return await this._dna_request("user/more/deleteUserAddress",{addressId:e})}async editAddress(e,n,t,r){return await this._dna_request("user/more/userAddressEdit",{addressId:e,receiverName:n,receiverMobile:t,receiverAddress:r})}async feedback(e,n,t,r){return await this._dna_request("user/more/feedback",{listPic:e,proDesc:n,mobile:t,isLogin:r})}async getCancelStatus(){return await this._dna_request("user/more/getCancelStatus")}async getNotifySwitch(){return await this._dna_request("user/push/getSwitchStatus")}async getPrivateSet(){return await this._dna_request("user/getPrivateSet")}async getUserAddress(e,n){return await this._dna_request("user/more/getUserAddress",{userId:e,type:n})}async getUserBlackList(e,n){return await this._dna_request("user/getUserBlackList",{pageIndex:e,pageSize:n})}async msgListDetail(e,n,t){return await this._dna_request("user/block/listDetail",{pageNo:e,pageSize:n,type:t})}async postListDetail(e,n,t){return await this._dna_request("user/block/listDetail",{pageNo:e,pageSize:n,type:t})}async privateSet(e,n){return await this._dna_request("user/privateSet",{operateType:e,option:n})}async sendSms(e,n,t){return await this._dna_request("user/sms/sendSms",{mobile:e,timeStamp:n,type:t})}async setDefaultAddress(e){return await this._dna_request("user/more/setDefaultAddress",{addressId:e})}async setNotifySwitch(e,n){return await this._dna_request("user/push/updateSwitchStatus",{operateType:e,switchType:n})}async uploadFeedBack(e){let n=new FormData;return n.append("parts",e),await this.fileUpload("user/img/uploadFeedBack",n)}}class R extends m{constructor(e){super(e)}async draftSave(e,n,t,r,i,s,a){return await this._dna_request("forum/draftSave",{content:e,draftId:n,h5Content:t,postTitle:r,postType:i,gameId:s,videoReUpload:a})}async followUser(e,n){return await this._dna_request("user/followUser",{followUserId:e,operateType:n})}async getConfigTopicByGameId(e,n){return await this._dna_request("config/getConfigTopicByGameId",{name:e,showType:n})}async getPostPublishPage(){return await this._dna_request("forum/getPostPublishPage")}async getRecommend(e,n){return await this._dna_request("user/getRecommend",{history:e,pageSize:n})}async getTips(){return await this._dna_request("config/getTips")}async getVodToken(e,n){return await this._dna_request("forum/getVodToken",{fileName:e,title:n})}async like(e,n,t,r,i,s,a,o,b){return await this._dna_request("forum/like",{forumId:e,gameId:n,likeType:t,operateType:r,postCommentId:i,postCommentReplyId:s,postId:a,postType:o,toUserId:b})}async list(e,n,t){return await this._dna_request("forum/dynamic/list",{pageIndex:e,pageSize:n,userId:t})}async parseLink(e){return await this._dna_request("forum/parseLink",{link:e})}async posAdminEdit(e,n,t,r,i,s,a,o,b){return await this._dna_request("forum/moderator/postEdit",{content:e,gameForumId:n,h5Content:t,postId:r,postTitle:i,topics:s,postType:a,gameId:o,videoReUpload:b})}async postEdit(e,n,t,r,i,s,a,o){return await this._dna_request("forum/postEdit",{content:e,gameForumId:n,h5Content:t,postId:r,postTitle:i,topics:s,postType:a,videoReUpload:o})}async postPublish(e,n,t,r,i,s,a,o){return await this._dna_request("forum/postPublish",{content:e,draftId:n,gameForumId:t,gameId:r,h5Content:i,postTitle:s,postType:a,topics:o})}async safeCheck(e){return await this._dna_request("forum/more/safeCheck",{url:e})}async uploadImage(e){let n=new FormData;return n.append("files",e),n.append("type","post"),await this.fileUpload("config/img/upload",n)}async videoPostPublish(e,n,t,r,i,s,a,o){return await this._dna_request("forum/moderator/postPublish",{content:e,draftId:n,gameForumId:t,gameId:r,h5Content:i,postTitle:s,postType:a,topics:o})}async viewCount(e,n){return await this._dna_request("forum/viewCount",{gameId:e,postId:n})}}var Y;((r)=>{r[r.TEXT=1]="TEXT";r[r.IMAGE=2]="IMAGE";r[r.VIDEO=5]="VIDEO"})(Y||={});var l=268;class P extends m{constructor(e){super(e)}async loginLog(){return await this._dna_request("user/login/log")}async blockList(){return await this._dna_request("user/block/list")}async canEditNickName(){return await this._dna_request("user/canUpdateNameTimes")}async cancel(e,n,t,r,i){return await this._dna_request("user/more/cancel",{cancelType:e,operateType:n,position:t,cancelReason:r,reasonDetail:i})}async cleanToken(){return await this._dna_request("user/cleanToken")}async editGender(e){return await this._dna_request("user/editGender",{gender:e})}async editNickName(e){return await this._dna_request("user/updateName",{userName:e})}async getCommonConfig(){return await this._dna_request("config/getCommonConfig")}async getConfig(){return await this._dna_request("config/getConfig")}async getConfigSwitch(){return await this._dna_request("config/switchAll")}async getModeratorPermission(){return await this._dna_request("user/moderator/getModeratorPermission")}async getOpenScreen(){return await this._dna_request("config/getOpenScreen")}async getPublicKey(){return await this._dna_request("config/getRsaPublicKey")}async getUserGame(){return await this._dna_request("user/getUserGame")}async getWikiData(){return await this._dna_request("config/getGameWiki")}async haveOfficialRole(){return await this._dna_request("role/haveOfficialRole")}async isRedPoint(){return await this._dna_request("forum/dynamic/isRedPoint")}async login(e,n){let t={code:n,devCode:this.dev_code,gameList:l,loginType:1,mobile:e},r=await this._dna_request("user/sdkLogin",t,{sign:!0});if(r.is_success&&r.data){let i=r.data;if(typeof i.token==="string")this.token=i.token}return r}async oneTapLoginRestriction(){return await this._dna_request("user/oneTapLoginRestriction")}async recommendConfig(){return await this._dna_request("forum/recommend/config")}async refreshToken(e){return await this._dna_request("user/refreshToken",{refreshToken:e})}async register(e,n,t,r,i){return await this._dna_request("user/register",{code:e,devCode:n,gameList:t,mobile:r,password:i})}async saveUserInfo(e,n,t,r){return await this._dna_request("user/saveUserInfo",{gender:e,headCode:n,headUrl:t,userName:r})}async sendSms(e,n,t){return await this._dna_request("user/getSmsCode",{mobile:e,isCaptcha:t,vJson:n})}async signature(e){return await this._dna_request("user/edit/signature",{newSignature:e})}async updateHeadCode(e){return await this._dna_request("user/updateHeadCode",{headCode:e})}async updateHeadUrl(e){return await this._dna_request("user/updateHeadUrl",{headUrl:e})}async updateProfileBg(e){return await this._dna_request("user/updateBg",{bgUrl:e})}async uploadHead(e){let n=new FormData;return n.append("parts",e),await this.fileUpload("user/img/uploadHead",n)}async uploadProfileBg(e){let n=new FormData;return n.append("parts",e),await this.fileUpload("user/img/uploadMineBg",n)}async getEmoji(){return await this._dna_request("config/getEmoji")}async getGameConfig(){return await this._dna_request("config/getGameConfig")}async getGameHeadCode(){return await this._dna_request("user/getGameHeadCode")}}class T extends m{constructor(e){super(e)}async addAddress(e,n,t){return await this._dna_request("user/more/userAddressAdd",{receiverName:e,receiverMobile:n,receiverAddress:t})}async apply(e,n,t,r,i,s,a,o){return await this._dna_request("user/creator/apply",{type:e,id:n,concatWay:t,otherPlatform:r,otherPlatformUrl:i,otherPlatformFans:s,materialUrl:a,gameId:o})}async awardList(e){return await this._dna_request("encourage/draw/awardList",{drawId:e})}async awardWin(e,n,t,r){return await this._dna_request("/encourage/draw/awardWin",{drawId:e,fullName:n,mobile:t,address:r})}async buyGold(e,n){return await this._dna_request("encourage/draw/buy",{drawId:e,count:n})}async buyProduct(e,n,t,r){return await this._dna_request("/encourage/store/buyProduct",{address:e,fullName:n,mobile:t,productId:r})}async deleteAddress(e){return await this._dna_request("user/more/deleteUserAddress",{addressId:e})}async drawDetail(e){return await this._dna_request("encourage/draw/detail",{drawId:e})}async editAddress(e,n,t,r){return await this._dna_request("user/more/userAddressEdit",{addressId:e,receiverName:n,receiverMobile:t,receiverAddress:r})}async getAliProductConfig(){return await this._dna_request("encourage/store/ali/getAliStoreConfigAndBanner")}async getAliProductList(e,n,t){return await this._dna_request("encourage/store/ali/productList",{gameId:e,pageIndex:n,pageSize:t})}async getApplyPage(){return await this._dna_request("user/creator/getApplyPage")}async getExpLogsList(e,n,t){return await this._dna_request("encourage/level/getExpLogs",{gameId:e,pageIndex:n,pageSize:t})}async getGameCreator(){return await this._dna_request("config/identification/getGameCreator")}async getGoldDetailList(e,n,t,r){return await this._dna_request("encourage/gold/getGoldLogs",{pageIndex:e,pageSize:n,type:t,storeType:r})}async getProductList(e,n,t,r){return await this._dna_request("encourage/store/productList",{gameId:e,pageIndex:n,pageSize:t,storeType:r})}async getTotalGold(e){if(e!==void 0)return await this._dna_request("encourage/gold/getTotalGold",{type:e});return await this._dna_request("encourage/gold/getTotalGold")}async getUserAddress(e,n){return await this._dna_request("user/more/getUserAddress",{userId:e,type:n})}async getUserGameLevel(e,n,t){return await this._dna_request("encourage/level/getUserGameLevelDetail",{gameId:e,ifProcess:n,otherUserId:t})}async getUserGameTaskProcess(e,n){return await this._dna_request("encourage/level/getTaskProcess",{gameId:e,userId:n})}async list(e,n,t,r){return await this._dna_request("encourage/draw/list",{pageIndex:e,pageSize:n,queryType:t,gameId:r})}async page(){return await this._dna_request("user/creator/page")}async productDetail(e){return await this._dna_request("encourage/store/productDetail",{productId:e})}async setDefaultAddress(e){return await this._dna_request("user/more/setDefaultAddress",{addressId:e})}async uploadImage(e){let n=new FormData;return n.append("parts",e),await this.fileUpload("user/img/uploadHead",n)}}class F extends m{constructor(e){super(e)}async getMapMatterCategorizeOptions(){return await this._dna_request_h5("map/matter/categorize/getOptions")}async getMapCategorizeList(){return await this._dna_request_h5("map/categorize/list")}async getMapDetail(e){return await this._dna_request_h5("map/detail",{id:e})}async getMapSiteDetail(e){return await this._dna_request_h5("map/site/detail",{id:e})}async getEmojiList(){return await this._dna_request_h5("config/getEmoji")}}class $ extends _{game;home;profile;setting;trend;user;userGrowing;h5;constructor({dev_code:e="",token:n="",...t}={}){super(e,n,t);this.game=new y(this),this.home=new L(this),this.profile=new x(this),this.setting=new I(this),this.trend=new R(this),this.user=new P(this),this.userGrowing=new T(this),this.h5=new F(this)}async initialize(){await this.initializeSignConfig()}get GAME_ID(){return l}async getMhSwitchStatus(){return await this.game.getMhSwitchStatus()}async updateMhSwitchStatus(e){return await this.game.updateMhSwitchStatus(e)}async soulTask(){return await this.game.soulTask()}async defaultRoleForTool(e=1,n){return await this.game.defaultRoleForTool(e,n)}async getRoleDetail(e,n,t){return await this.game.getRoleDetail(e,n,t)}async getWeaponDetail(e,n,t){return await this.game.getWeaponDetail(e,n,t)}async getShortNoteInfo(){return await this.game.getShortNoteInfo()}async getPostList(e=48,n=1,t=20,r=1,i=0){return await this.home.getPostList(e,n,t,r,i)}async getPostDetail(e){return await this.home.getPostDetail(e)}async getPostByTopic(e=177,n=1,t=20,r=1,i=0){return await this.home.getPostByTopic(e,n,t,r,i)}async getTaskProcess(){return await this.home.getTaskProcess()}async haveSignIn(){return await this.home.haveSignIn()}async signCalendar(){return await this.home.signCalendar()}async gameSign(e,n){return await this.home.gameSignIn(e,n)}async bbsSign(){return await this.home.bbsSign()}async getRoleList(){return await this.profile.roleManager()}async adminAdjustScore(e,n,t){return await this.home.adminAdjustScore(e,n,t)}async adminDelete(e,n,t){return await this.home.adminDelete(e,n,t)}async adminMovePost(e,n,t,r){return await this.home.adminMovePost(e,n,t,r)}async adminRefreshTime(e,n){return await this.home.adminRefreshTime(e,n)}async blockList(){return await this.home.blockList()}async blockOther(e,n,t){return await this.home.blockOther(e,n,t)}async collect(e,n,t=1){return await this.home.collect(e,n,t)}async commentDelete(e,n,t,r){return await this.home.commentDelete(e,n,t,r)}async createComment(e,n){return await this.home.createComment(e,n)}async createReply(e,n){return await this.home.createReply(e,n)}async createReplyList(e,n){return await this.home.createReplyList(e,n)}async deletePost(e,n){return await this.home.deletePost(e,n)}async followUser(e,n){return await this.home.followUser(e,n)}async getFollowState(e){return await this.home.getFollowState(e)}async getDoujin(e){return await this.home.getDoujin(e)}async getExchange(e){return await this.home.getExchange(e)}async getGameBanner(e=l){return await this.home.getGameBanner(e)}async getPostCommentList(e,n=1,t=20,r=0){return await this.home.getPostCommentList(e,n,t,r)}async getRankList(e){return await this.home.getRankList(e)}async getRecommendPosts(e=l,n=1,t=20){return await this.home.getRecommendPosts(e,n,t)}async getReplyList(e,n,t=1,r=20){return await this.home.getReplyList(e,n,t,r)}async getStatistics(e=l){return await this.home.getStatistics(e)}async getTips(){return await this.home.getTips()}async getWalkthrough(e){return await this.home.getWalkthrough(e)}async hotList(e=1,n=l){return await this.home.hotList(e,n)}async isRedPoint(){return await this.home.isRedPoint()}async likePost(e){return await this.home.like(e)}async lockPost(e,n){return await this.home.lockPost(e,n)}async postDownOrUp(e,n){return await this.home.postDownOrUp(e,n)}async postElite(e,n){return await this.home.postElite(e,n)}async postHide(e,n){return await this.home.postHide(e,n)}async reRank(e,n){return await this.home.reRank(e,n)}async receiveLog(e,n,t){return await this.home.receiveLog(e,n,t)}async recommendList(e,n,t,r,i=l){return await this.home.recommendList(e,n,t,r,i)}async report({commentId:e=0,postId:n=0,replyId:t=0},r=1,i=1){return await this.home.report({commentId:e,postId:n,replyId:t},r,i)}async searchPost(e,n,t,r=l,i=1){return await this.home.searchPost(e,n,t,r,i)}async searchTopic(e,n,t=20,r=l){return await this.home.searchTopic(e,n,t,r)}async searchUser(e,n,t){return await this.home.searchUser(e,n,t)}async shareTask(){return await this.home.shareTask()}async strongRecommend(e,n=1){return await this.home.strongRecommend(e,n)}async viewCommunity(){return await this.home.viewCommunity()}async viewCount(e,n=l){return await this.home.viewCount(e,n)}async loginLog(){return await this.user.loginLog()}async login(e,n){return await this.user.login(e,n)}async getSmsCode(e,n){return await this.user.sendSms(e,n,1)}async getMine(e="",n=1,t=0){return await this.profile.mine(e,n,t)}async getOtherMine(e="709542994134436647",n=1,t=2){return await this.profile.mine(e,n,t)}async canEditNickName(){return await this.user.canEditNickName()}async cleanToken(){return await this.user.cleanToken()}async editGender(e){return await this.user.editGender(e)}async editNickName(e){return await this.user.editNickName(e)}async getCommonConfig(){return await this.user.getCommonConfig()}async getConfig(){return await this.user.getConfig()}async getConfigSwitch(){return await this.user.getConfigSwitch()}async getModeratorPermission(){return await this.user.getModeratorPermission()}async getOpenScreen(){return await this.user.getOpenScreen()}async getPublicKey(){return await this.user.getPublicKey()}async getUserGame(){return await this.user.getUserGame()}async getWikiData(){return await this.user.getWikiData()}async haveOfficialRole(){return await this.user.haveOfficialRole()}async oneTapLoginRestriction(){return await this.user.oneTapLoginRestriction()}async recommendConfig(){return await this.user.recommendConfig()}async refreshToken(e){return await this.user.refreshToken(e)}async register(e,n,t,r,i){return await this.user.register(e,n,t,r,i)}async saveUserInfo(e,n,t,r){return await this.user.saveUserInfo(e,n,t,r)}async signature(e){return await this.user.signature(e)}async updateHeadCode(e){return await this.user.updateHeadCode(e)}async updateHeadUrl(e){return await this.user.updateHeadUrl(e)}async updateProfileBg(e){return await this.user.updateProfileBg(e)}async uploadHead(e){return await this.user.uploadHead(e)}async uploadProfileBg(e){return await this.user.uploadProfileBg(e)}async getEmoji(){return await this.user.getEmoji()}async getGameConfig(){return await this.user.getGameConfig()}async getGameHeadCode(){return await this.user.getGameHeadCode()}async getMapCategorizeList(){return await this.h5.getMapCategorizeList()}async getMapDetail(e){return await this.h5.getMapDetail(e)}async getMapSiteDetail(e){return await this.h5.getMapSiteDetail(e)}async getEmojiList(){return await this.h5.getEmojiList()}async getMapMatterCategorizeOptions(){return await this.h5.getMapMatterCategorizeOptions()}async blackUser(e,n){return await this.profile.blackUser(e,n)}async cleanFansNew(e,n){return await this.profile.cleanFansNew(e,n)}async defaultRole(e,n=1){return await this.profile.defaultRole(e,n)}async deleteRole(e){return await this.profile.deleteRole(e)}async draftDelete(e){return await this.profile.draftDelete(e)}async fans(e,n,t,r){return await this.profile.fans(e,n,t,r)}async fastBind(){return await this.profile.fastBind()}async follow(e,n,t,r){return await this.profile.follow(e,n,t,r)}async getApplyStatus(){return await this.profile.getApplyStatus()}async getDraftList(e,n){return await this.profile.getDraftList(e,n)}async getMineComment(e,n,t,r){return await this.profile.getMineComment(e,n,t,r)}async getMinePost(e,n,t,r,i,s){return await this.profile.getMinePost(e,n,t,r,i,s)}async getProfileNotifySwitch(){return await this.profile.getNotifySwitch()}async historyView(e,n){return await this.profile.historyView(e,n)}async likeProfilePost(e){return await this.profile.like(e)}async manualBound(e,n,t){return await this.profile.manualBound(e,n,t)}async mine(e,n,t,r){return await this.profile.mine(e,n,t,r)}async mineV2(e){return await this.profile.mineV2(e)}async moderatorByGame(e){return await this.profile.moderatorByGame(e)}async muteCancel(e){return await this.profile.muteCancel(e)}async muteUser(e,n,t,r,i){return await this.profile.muteUser(e,n,t,r,i)}async resetDefault(e){return await this.profile.resetDefault(e)}async addAddress(e,n,t){return await this.setting.addAddress(e,n,t)}async cancelCode(e){return await this.setting.cancelCode(e)}async cancel(e,n,t,r,i){return await this.setting.cancel(e,n,t,r,i)}async deleteAddress(e){return await this.setting.deleteAddress(e)}async editAddress(e,n,t,r){return await this.setting.editAddress(e,n,t,r)}async feedback(e,n,t,r){return await this.setting.feedback(e,n,t,r)}async getCancelStatus(){return await this.setting.getCancelStatus()}async getPrivateSet(){return await this.setting.getPrivateSet()}async getUserAddress(e,n){return await this.setting.getUserAddress(e,n)}async getUserBlackList(e,n){return await this.setting.getUserBlackList(e,n)}async msgListDetail(e,n,t){return await this.setting.msgListDetail(e,n,t)}async postListDetail(e,n,t){return await this.setting.postListDetail(e,n,t)}async privateSet(e,n){return await this.setting.privateSet(e,n)}async sendSms(e,n,t){return await this.setting.sendSms(e,n,t)}async setDefaultAddress(e){return await this.setting.setDefaultAddress(e)}async setNotifySwitch(e,n){return await this.setting.setNotifySwitch(e,n)}async uploadFeedBack(e){return await this.setting.uploadFeedBack(e)}async draftSave(e,n,t,r,i,s,a){return await this.trend.draftSave(e,n,t,r,i,s,a)}async getConfigTopicByGameId(e,n){return await this.trend.getConfigTopicByGameId(e,n)}async getPostPublishPage(){return await this.trend.getPostPublishPage()}async getRecommend(e,n){return await this.trend.getRecommend(e,n)}async getVodToken(e,n){return await this.trend.getVodToken(e,n)}async trendList(e,n,t){return await this.trend.list(e,n,t)}async parseLink(e){return await this.trend.parseLink(e)}async posAdminEdit(e,n,t,r,i,s,a,o,b){return await this.trend.posAdminEdit(e,n,t,r,i,s,a,o,b)}async postEdit(e,n,t,r,i,s,a,o){return await this.trend.postEdit(e,n,t,r,i,s,a,o)}async postPublish(e,n,t,r,i,s,a,o){return await this.trend.postPublish(e,n,t,r,i,s,a,o)}async safeCheck(e){return await this.trend.safeCheck(e)}async uploadImage(e){return await this.trend.uploadImage(e)}async videoPostPublish(e,n,t,r,i,s,a,o){return await this.trend.videoPostPublish(e,n,t,r,i,s,a,o)}async apply(e,n,t,r,i,s,a,o){return await this.userGrowing.apply(e,n,t,r,i,s,a,o)}async awardList(e){return await this.userGrowing.awardList(e)}async awardWin(e,n,t,r){return await this.userGrowing.awardWin(e,n,t,r)}async buyGold(e,n){return await this.userGrowing.buyGold(e,n)}async buyProduct(e,n,t,r){return await this.userGrowing.buyProduct(e,n,t,r)}async drawDetail(e){return await this.userGrowing.drawDetail(e)}async getAliProductConfig(){return await this.userGrowing.getAliProductConfig()}async getAliProductList(e,n,t){return await this.userGrowing.getAliProductList(e,n,t)}async getApplyPage(){return await this.userGrowing.getApplyPage()}async getExpLogsList(e,n,t){return await this.userGrowing.getExpLogsList(e,n,t)}async getGameCreator(){return await this.userGrowing.getGameCreator()}async getGoldDetailList(e,n,t,r){return await this.userGrowing.getGoldDetailList(e,n,t,r)}async getProductList(e,n,t,r){return await this.userGrowing.getProductList(e,n,t,r)}async getTotalGold(e){return await this.userGrowing.getTotalGold(e)}async getUserGameLevel(e,n,t){return await this.userGrowing.getUserGameLevel(e,n,t)}async getUserGameTaskProcess(e,n){return await this.userGrowing.getUserGameTaskProcess(e,n)}async list(e,n,t,r){return await this.userGrowing.list(e,n,t,r)}async page(){return await this.userGrowing.page()}async productDetail(e){return await this.userGrowing.productDetail(e)}}export{W as swapForUploadImgApp,Z as signature_hash,G as rsa_encrypt,v as rand_str,J as md5_upper,H as build_upload_signature,V as build_signature,O as aesDecryptImageUrl,T as UserGrowingAPI,P as UserAPI,R as TrendAPI,p as TimeBasicResponse,I as SettingAPI,E as RespCode,x as ProfileAPI,Y as PostContentType,L as HomeAPI,F as H5API,y as GameAPI,l as DNA_GAME_ID,m as DNASubModule,_ as DNABaseAPI,$ as DNAAPI};
4
+ -----END PUBLIC KEY-----`,i=D.pki.publicKeyFromPem(r),s=D.util.encodeUtf8(e),a=i.encrypt(s);return D.util.encode64(a)}catch(t){throw Error(`[DNA] RSA 加密失败: ${t.message}`)}}function v(e=16){let t="";for(let r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return t}function J(e){let n=D.md.md5.create();return n.update(e),n.digest().toHex().toUpperCase()}function Z(e){function n(t,r){let i=t.split("");for(let s=1;s<r.length;s+=2){let a=r[s-1],o=r[s];if(a>=0&&a<i.length&&o>=0&&o<i.length)[i[a],i[o]]=[i[o],i[a]]}return i.join("")}return n(J(e),[1,13,5,17,7,23])}function Q(e,n){let t=[],r=Object.keys(e).sort();for(let s of r){let a=e[s];if(a!==null&&a!==void 0&&a!=="")t.push(`${s}=${a}`)}let i=t.join("&");return Z(`${i}&${n}`)}function V(e,n){let t=Date.now(),r={...e,timestamp:t,token:n},i=v(16),s=Q(r,i);return{s:X(s,i),t,k:i}}function H(e){let n=v(16),t=G(n,e);return{signature:W(t),key:n}}function W(e){let n=e.split(""),t=[[3,23],[11,32],[22,42],[25,48]];for(let[r,i]of t)if(r<n.length&&i<n.length)[n[r],n[i]]=[n[i],n[r]];return n.join("")}function O(e,n){let t=W(e),r=D.util.decode64(t),i=D.cipher.createDecipher("AES-CBC",n);return i.start({iv:"A-16-Byte-String"}),i.update(D.util.createBuffer(r)),i.finish(),i.output.getBytes()}function X(e,n){let t=new TextEncoder,r=t.encode(e),i=t.encode(n),s=[];for(let a=0;a<r.length;a++){let b=(r[a]&255)+(i[a%i.length]&255);s.push(`@${b}`)}return s.join("")}class _{dev_code;token;fetchFn;is_h5=!1;RSA_PUBLIC_KEY="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGpdbezK+eknQZQzPOjp8mr/dP+QHwk8CRkQh6C6qFnfLH3tiyl0pnt3dePuFDnM1PUXGhCkQ157ePJCQgkDU2+mimDmXh0oLFn9zuWSp+U8uLSLX3t3PpJ8TmNCROfUDWvzdbnShqg7JfDmnrOJz49qd234W84nrfTHbzdqeigQIDAQAB";BASE_URL="https://dnabbs-api.yingxiong.com/";uploadKey="";sign_api_urls=new Set;constructor(e,n="",t={}){this.dev_code=e;this.token=n;if(this.fetchFn=t.fetchFn,t.is_h5!==void 0)this.is_h5=t.is_h5;if(t.rsa_public_key!==void 0)this.RSA_PUBLIC_KEY=t.rsa_public_key}async fileUpload(e,n){let t=await this._dna_request(e,n,{sign:!0});if(t.is_success&&t.data)t.data=t.data.map((r)=>O(r,this.uploadKey));return t}async getRsaPublicKey(){if(this.RSA_PUBLIC_KEY)return this.RSA_PUBLIC_KEY;let e=await this._dna_request("config/getRsaPublicKey");if(e.is_success&&e.data){let n=e.data.key;if(typeof n==="string")this.RSA_PUBLIC_KEY=n}return this.RSA_PUBLIC_KEY}async getHeaders(e){let{payload:n,exparams:t,dev_code:r=this.dev_code,refer:i,token:s=this.token,tokenSig:a,h5:o}=e||{},b="application/x-www-form-urlencoded; charset=utf-8",q={version:"1.1.3",source:"ios","Content-Type":"application/x-www-form-urlencoded; charset=utf-8","User-Agent":"DoubleHelix/4 CFNetwork/3860.100.1 Darwin/25.0.0"},k={version:"3.11.0",source:"h5","Content-Type":"application/x-www-form-urlencoded; charset=utf-8","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36"},h=this.is_h5||o||!1,c={...h?k:q};if(r)c.devCode=r;if(i||h)c.origin="https://dnabbs.yingxiong.com",c.refer="https://dnabbs.yingxiong.com/";if(s)c.token=s;if(n instanceof FormData){let N=await this.getRsaPublicKey(),{signature:g,key:d}=H(N);if(c.t=g,this.uploadKey=d,t)for(let[f,B]of Object.entries(t))n.append(f,String(B));delete c["Content-Type"]}else if(typeof n==="object"){let N=V(n,a?s:"");if(Object.assign(n,{sign:N.s,timestamp:N.t}),t)Object.assign(n,t);let g=new URLSearchParams;Object.entries(n).forEach(([S,C])=>{g.append(S,String(C))}),n=g.toString();let d=N.k,f=await this.getRsaPublicKey(),B=G(d,f);if(this.is_h5)c.k=B;else c.rk=d,c.key=B}return{headers:c,payload:n}}async needSign(e){if(this.sign_api_urls.size===0)try{await this.initializeSignConfig()}catch(n){console.error("初始化签名配置失败:",n),this.sign_api_urls=new Set(["/user/sdkLogin","/forum/postPublish","/forum/comment/createComment","/forum/comment/createReply","/user/getSmsCode","/role/defaultRoleForTool","/media/av/cfg/getVideos","/media/av/cfg/getAudios","/media/av/cfg/getImages","/encourage/signin/signin"].map((t)=>t.replace(/^\/+/,"")))}return this.sign_api_urls.has(e)}async initializeSignConfig(){try{let e=await this._dna_request("config/getCommonConfig",void 0,{sign:!1});if(e.is_success&&e.data?.signApiConfigVo?.signApiList)this.sign_api_urls=new Set(e.data.signApiConfigVo.signApiList.map((n)=>n.replace(/^\/+/,"")))}catch(e){console.error("初始化签名配置失败:",e)}}async _dna_request_h5(e,n,t){return await this._dna_request(e,n,{...t,h5:!0})}async _dna_request(e,n,t){let{method:r="POST",sign:i,h5:s,refer:a,params:o,max_retries:b=3,retry_delay:q=1,timeout:k=1e4,token:h,tokenSig:c}=t||{};if(i===void 0&&await this.needSign(e))i=!0;let N;if(i){let{payload:g,headers:d}=await this.getHeaders({payload:n,refer:a,exparams:o,token:h?this.token:void 0,tokenSig:c,h5:s});n=g,N=d}else{let{headers:g}=await this.getHeaders({token:h?this.token:void 0,refer:a,h5:s});N=g}for(let g=0;g<b;g++)try{let d=n;if(n&&typeof n==="object"&&!(n instanceof FormData)){let w=new URLSearchParams;Object.entries(n).forEach(([K,M])=>{if(M!==void 0)w.append(K,String(M))}),d=w.toString()}let f={method:r,headers:N,body:d},B=new AbortController,S=setTimeout(()=>B.abort(),k),C={...f,signal:B.signal},U=this.fetchFn?await this.fetchFn(`${this.BASE_URL}${e}`,C):await fetch(`${this.BASE_URL}${e}`,C);clearTimeout(S);let j=U.headers.get("content-type")||"",A;if(j.includes("text/")){let w=await U.text();A={code:-999,data:w}}else A=await U.json();if(typeof A==="object"&&A!==null)try{if(typeof A.data==="string")A.data=JSON.parse(A.data)}catch{}return new p(A)}catch(d){if(console.error(`请求失败: ${d.message}`),g<b-1)await new Promise((f)=>setTimeout(f,q*2**g))}return p.err("请求服务器失败,已达最大重试次数")}}class m{_base;constructor(e){this._base=e}get dev_code(){return this._base.dev_code}get token(){return this._base.token}set token(e){this._base.token=e}get fetchFn(){return this._base.fetchFn}get is_h5(){return this._base.is_h5}get RSA_PUBLIC_KEY(){return this._base.RSA_PUBLIC_KEY}get BASE_URL(){return this._base.BASE_URL}get uploadKey(){return this._base.uploadKey}async getRsaPublicKey(){return this._base.getRsaPublicKey()}async fileUpload(e,n){return await this._base.fileUpload(e,n)}async _dna_request(e,n,t){return this._base._dna_request(e,n,t)}async _dna_request_h5(e,n,t){return this._base._dna_request_h5(e,n,t)}async getHeaders(e){return this._base.getHeaders(e)}}class y extends m{async defaultRoleForTool(e=1,n){let t={otherUserId:n,type:e};if(!n)delete t.otherUserId;return await this._dna_request("role/defaultRoleForTool",t,{sign:!0,token:!0,tokenSig:!0})}async getMhSwitchStatus(){return await this._dna_request("user/push/getMhSwitchStatus")}async getRoleDetail(e,n,t){let r={charId:e,charEid:n,type:1,otherUserId:t};return await this._dna_request("role/getCharDetail",r)}async getShortNoteInfo(){return await this._dna_request("role/getShortNoteInfo")}async getWeaponDetail(e,n,t){let r={weaponId:e,weaponEid:n,type:1,otherUserId:t};return await this._dna_request("role/getWeaponDetail",r)}async updateMhSwitchStatus(e){return await this._dna_request("user/push/updateMhSwitchStatus",{config:e})}async soulTask(){return await this._dna_request("role/soul/task")}}var u=268;class L extends m{async adminAdjustScore(e,n,t,r=u){let i={postId:e,gameId:r??u,gameForumId:n,weight:t};return await this._dna_request("forum/moderator/setPostWeight",i)}async adminDelete(e,n,t){let r={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,content:n,reasonCode:t};return await this._dna_request("forum/moderator/postDelete",r)}async adminMovePost(e,n,t,r){let i={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,newGameId:n,newForumId:t,newTopicIdStr:r};return await this._dna_request("forum/moderator/postMove",i)}async adminRefreshTime(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,refresh:n};return await this._dna_request("forum/moderator/setRefresh",t)}async blockList(){return await this._dna_request("user/block/list")}async blockOther(e,n,t){return await this._dna_request("user/block/other",{blockPostId:e,blockUserId:n,type:t})}async collect(e,n,t=1){let r={operateType:t,postId:e,toUserId:n};return await this._dna_request("forum/collect",r)}async commentDelete(e,n,t,r){let i={id:e.id,gameId:e.gameId,gameForumId:e.gameForumId,entityType:n,content:t,reasonCode:r};return await this._dna_request("forum/commentReplyDelete",i)}async createComment(e,n){let t=JSON.stringify([{content:n,contentType:"1"}]),r={postId:e.postId,forumId:e.gameForumId,postType:"1",content:t};return await this._dna_request("forum/comment/createComment",r,{sign:!0,params:{toUserId:e.userId}})}async createReply(e,n){let r={content:JSON.stringify([{content:n,contentType:"1",imgHeight:0,imgWidth:0,url:""}]),forumId:e.gameForumId,postCommentId:e.postCommentId,postId:e.postId,postType:"1",toUserId:e.userId};return await this._dna_request("forum/comment/createReply",r,{sign:!0,params:{toUserId:e.userId}})}async createReplyList(e,n){let r={content:JSON.stringify([{content:n,contentType:"1",imgHeight:0,imgWidth:0,url:""}]),forumId:e.gameForumId,postCommentId:e.postCommentId,postCommentReplyId:e.postCommentReplyId,postId:e.postId,postType:"1",toUserId:e.userId};return await this._dna_request("forum/comment/createReply",r,{sign:!0,params:{toUserId:e.userId}})}async deletePost(e,n){return await this._dna_request("forum/more/delete",{deleteType:e,id:n},{sign:!0,refer:!0})}async followUser(e,n){let t={followUserId:e,operateType:n?0:1};return await this._dna_request("user/followUser",t,{sign:!0})}async getFollowState(e){let n={followUserId:e};return await this._dna_request("user/isFollow",n)}async gameSignIn(e,n){let t={dayAwardId:e,periodId:n,signinType:1};return await this._dna_request("encourage/signin/signin",t,{sign:!0,tokenSig:!0})}async getDoujin(e){return await this._dna_request("forum/discuss/getDoujin",{forumId:e})}async getExchange(e){return await this._dna_request("forum/discuss/getExchange",{forumId:e})}async getGameBanner(e=u){return await this._dna_request("forum/gameBanner",{gameId:e})}async getPostByTopic(e=177,n=1,t=20,r=1,i=0){let s={topicId:e,gameId:u,pageIndex:n,pageSize:t,searchType:r,timeType:i};return await this._dna_request("forum/getPostByTopic",s)}async getPostCommentList(e,n=1,t=20,r=0){return await this._dna_request("forum/comment/getPostCommentList",{postId:e,pageIndex:n,pageSize:t,isOnlyPublisher:r})}async getPostDetail(e){return await this._dna_request("forum/getPostDetail",{postId:e})}async getPostList(e=48,n=1,t=20,r=1,i=0){let s={forumId:e,gameId:u,pageIndex:n,pageSize:t,searchType:r,timeType:i};return await this._dna_request("forum/list",s)}async getRankList(e){return await this._dna_request("forum/discuss/getRank",{forumId:e})}async getRecommendPosts(e=u,n=1,t=20){return await this._dna_request("forum/getRecommendPosts",{gameId:e,pageIndex:n,pageSize:t})}async getReplyList(e,n,t=1,r=20){return await this._dna_request("forum/comment/getReplyList",{postId:e,postCommentId:n,pageIndex:t,pageSize:r})}async getStatistics(e=u){return await this._dna_request("forum/statistics",{gameId:e})}async getTips(){return await this._dna_request("config/getTips")}async getWalkthrough(e){return await this._dna_request("forum/discuss/getWalkthrough",{forumId:e})}async hotList(e=1,n=u){return await this._dna_request("forum/hot/ranking/list",{gameId:n,type:e})}async haveSignIn(){let e={gameId:u};return await this._dna_request("user/haveSignInNew",e)}async isRedPoint(){return await this._dna_request("forum/dynamic/isRedPoint")}async signCalendar(){let e={gameId:u};return await this._dna_request("encourage/signin/show",e)}async like(e){let n={forumId:e.gameForumId,gameId:u,likeType:"1",operateType:"1",postCommentId:"",postCommentReplyId:"",postId:e.postId,postType:e.postType,toUserId:e.userId};return await this._dna_request("forum/like",n)}async lockPost(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/postLock",t)}async postDownOrUp(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/postDownOrUp",t)}async postElite(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/postElite",t)}async postHide(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/postHide",t)}async reRank(e,n){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,weight:n};return await this._dna_request("forum/moderator/reRank",t)}async receiveLog(e,n,t){let r={periodId:e,pageIndex:n,pageSize:t};return await this._dna_request("encourage/signin/receiveLog",r)}async recommendList(e,n,t,r,i=u){let s={gameId:i,recIndex:e,newIndex:n,size:t,history:r};return await this._dna_request("forum/recommend/list",s)}async report({commentId:e=0,postId:n=0,replyId:t=0},r=1,i=1){let s={commentId:e,postId:n,replyId:t,reportReason:r,reportType:i};return await this._dna_request("forum/more/report",s)}async searchPost(e,n,t,r=u,i=1){let s={gameId:r,keyword:e,pageIndex:n,pageSize:t,searchType:i};return await this._dna_request("forum/searchPost",s)}async searchTopic(e,n,t=20,r=u){let i={gameId:r,keyword:e,pageIndex:n,pageSize:t};return await this._dna_request("forum/searchPost",i)}async searchUser(e,n,t){let r={keyword:e,pageIndex:n,pageSize:t};return await this._dna_request("forum/searchPost",r)}async shareTask(){let e={gameId:u};return await this._dna_request("encourage/level/shareTask",e)}async bbsSign(){let e={gameId:u};return await this._dna_request("user/signIn",e)}async strongRecommend(e,n=1){let t={postId:e.postId,gameId:e.gameId??u,gameForumId:e.gameForumId,operateType:n};return await this._dna_request("forum/moderator/setForceRecommend",t)}async viewCommunity(){return await this._dna_request("encourage/level/viewCommunity")}async viewCount(e,n=u){return await this._dna_request("forum/viewCount",{gameId:n,postId:e})}async getTaskProcess(){let e={gameId:u};return await this._dna_request("encourage/level/getTaskProcess",e)}async soulTask(){return await this._dna_request("role/soul/task")}}class x extends m{async blackUser(e,n){return await this._dna_request("user/blackUser",{toUserId:e,type:n})}async cleanFansNew(e,n){return await this._dna_request("user/cleanFansNew",{type:e,userFollowId:n})}async collect(e,n,t=1){return await this._dna_request("forum/collect",{operateType:t,postId:e,toUserId:n})}async defaultRole(e,n=1){return await this._dna_request("user/defaultRole",{otherUserId:e,type:n})}async deleteRole(e){return await this._dna_request("role/remove",{roleBoundId:e})}async draftDelete(e){return await this._dna_request("forum/more/draftDelete",{draftId:e})}async fans(e,n,t,r){return await this._dna_request("user/fans",{otherUserId:e,pageNo:n,pageSize:t,type:r})}async fastBind(){return await this._dna_request("role/quickBound")}async follow(e,n,t,r){return await this._dna_request("user/follow",{otherUserId:e,pageNo:n,pageSize:t,type:r})}async followUser(e,n){return await this._dna_request("user/followUser",{followUserId:e,operateType:n?0:1})}async getApplyStatus(){return await this._dna_request("user/creator/getApplyStatus")}async getDraftList(e,n){return await this._dna_request("forum/getDraftList",{pageIndex:e,pageSize:n})}async getMineComment(e,n,t,r){return await this._dna_request("user/notice/mine",{otherUserId:e,pageIndex:n,pageSize:t,type:r})}async getMinePost(e,n,t,r,i,s){return await this._dna_request("forum/getMinePost",{otherUserId:e,pageIndex:n,pageSize:t,searchType:r,type:i,postType:s})}async getNotifySwitch(){return await this._dna_request("user/push/getSwitchStatus")}async historyView(e,n){return await this._dna_request("forum/historyView",{pageIndex:e,pageSize:n})}async like(e){return await this._dna_request("forum/like",e)}async manualBound(e,n,t){return await this._dna_request("role/manualBound",{roleId:e,type:n,code:t})}async mine(e,n,t,r){let i={otherUserId:e,searchType:n,type:t,postType:r};if(!e)delete i.otherUserId;return await this._dna_request("user/mine",i)}async mineV2(e){return await this._dna_request("user/mineV2",{otherUserId:e})}async moderatorByGame(e){return await this._dna_request("user/moderator/getModeratorByGame",{gameId:e})}async muteCancel(e){return await this._dna_request("forum/moderator/muteCancel",{toUserId:e})}async muteUser(e,n,t,r,i){return await this._dna_request("forum/moderator/muteUser",{toUserId:e,gameIdStr:n,type:t,reason:r,content:i})}async resetDefault(e){return await this._dna_request("role/resetDefault",{roleBoundId:e})}async roleManager(){return await this._dna_request("role/list")}}class R extends m{async addAddress(e,n,t){return await this._dna_request("user/more/userAddressAdd",{receiverName:e,receiverMobile:n,receiverAddress:t})}async blackUser(e,n){return await this._dna_request("user/blackUser",{toUserId:e,type:n})}async cancelCode(e){return await this._dna_request("user/more/cancelCode",{code:e})}async cancel(e,n,t,r,i){return await this._dna_request("user/more/cancel",{cancelType:e,operateType:n,position:t,cancelReason:r,reasonDetail:i})}async deleteAddress(e){return await this._dna_request("user/more/deleteUserAddress",{addressId:e})}async editAddress(e,n,t,r){return await this._dna_request("user/more/userAddressEdit",{addressId:e,receiverName:n,receiverMobile:t,receiverAddress:r})}async feedback(e,n,t,r){return await this._dna_request("user/more/feedback",{listPic:e,proDesc:n,mobile:t,isLogin:r})}async getCancelStatus(){return await this._dna_request("user/more/getCancelStatus")}async getNotifySwitch(){return await this._dna_request("user/push/getSwitchStatus")}async getPrivateSet(){return await this._dna_request("user/getPrivateSet")}async getUserAddress(e,n){return await this._dna_request("user/more/getUserAddress",{userId:e,type:n})}async getUserBlackList(e,n){return await this._dna_request("user/getUserBlackList",{pageIndex:e,pageSize:n})}async msgListDetail(e,n,t){return await this._dna_request("user/block/listDetail",{pageNo:e,pageSize:n,type:t})}async postListDetail(e,n,t){return await this._dna_request("user/block/listDetail",{pageNo:e,pageSize:n,type:t})}async privateSet(e,n){return await this._dna_request("user/privateSet",{operateType:e,option:n})}async sendSms(e,n,t){return await this._dna_request("user/sms/sendSms",{mobile:e,timeStamp:n,type:t})}async setDefaultAddress(e){return await this._dna_request("user/more/setDefaultAddress",{addressId:e})}async setNotifySwitch(e,n){return await this._dna_request("user/push/updateSwitchStatus",{operateType:e,switchType:n})}async uploadFeedBack(e){let n=new FormData;return n.append("parts",e),await this.fileUpload("user/img/uploadFeedBack",n)}}class I extends m{async draftSave(e,n,t,r,i,s,a){return await this._dna_request("forum/draftSave",{content:e,draftId:n,h5Content:t,postTitle:r,postType:i,gameId:s,videoReUpload:a})}async followUser(e,n){return await this._dna_request("user/followUser",{followUserId:e,operateType:n})}async getConfigTopicByGameId(e,n){return await this._dna_request("config/getConfigTopicByGameId",{name:e,showType:n})}async getPostPublishPage(){return await this._dna_request("forum/getPostPublishPage")}async getRecommend(e,n){return await this._dna_request("user/getRecommend",{history:e,pageSize:n})}async getTips(){return await this._dna_request("config/getTips")}async getVodToken(e,n){return await this._dna_request("forum/getVodToken",{fileName:e,title:n})}async like(e,n,t,r,i,s,a,o,b){return await this._dna_request("forum/like",{forumId:e,gameId:n,likeType:t,operateType:r,postCommentId:i,postCommentReplyId:s,postId:a,postType:o,toUserId:b})}async list(e,n,t){return await this._dna_request("forum/dynamic/list",{pageIndex:e,pageSize:n,userId:t})}async parseLink(e){return await this._dna_request("forum/parseLink",{link:e})}async posAdminEdit(e,n,t,r,i,s,a,o,b){return await this._dna_request("forum/moderator/postEdit",{content:e,gameForumId:n,h5Content:t,postId:r,postTitle:i,topics:s,postType:a,gameId:o,videoReUpload:b})}async postEdit(e,n,t,r,i,s,a,o){return await this._dna_request("forum/postEdit",{content:e,gameForumId:n,h5Content:t,postId:r,postTitle:i,topics:s,postType:a,videoReUpload:o})}async postPublish(e,n,t,r,i,s,a,o){return await this._dna_request("forum/postPublish",{content:e,draftId:n,gameForumId:t,gameId:r,h5Content:i,postTitle:s,postType:a,topics:o})}async safeCheck(e){return await this._dna_request("forum/more/safeCheck",{url:e})}async uploadImage(e){let n=new FormData;return n.append("files",e),n.append("type","post"),await this.fileUpload("config/img/upload",n)}async videoPostPublish(e,n,t,r,i,s,a,o){return await this._dna_request("forum/moderator/postPublish",{content:e,draftId:n,gameForumId:t,gameId:r,h5Content:i,postTitle:s,postType:a,topics:o})}async viewCount(e,n){return await this._dna_request("forum/viewCount",{gameId:e,postId:n})}}var Y;((r)=>{r[r.TEXT=1]="TEXT";r[r.IMAGE=2]="IMAGE";r[r.VIDEO=5]="VIDEO"})(Y||={});var l=268;class P extends m{async loginLog(){return await this._dna_request("user/login/log")}async blockList(){return await this._dna_request("user/block/list")}async canEditNickName(){return await this._dna_request("user/canUpdateNameTimes")}async cancel(e,n,t,r,i){return await this._dna_request("user/more/cancel",{cancelType:e,operateType:n,position:t,cancelReason:r,reasonDetail:i})}async cleanToken(){return await this._dna_request("user/cleanToken")}async editGender(e){return await this._dna_request("user/editGender",{gender:e})}async editNickName(e){return await this._dna_request("user/updateName",{userName:e})}async getCommonConfig(){return await this._dna_request("config/getCommonConfig")}async getConfig(){return await this._dna_request("config/getConfig")}async getConfigSwitch(){return await this._dna_request("config/switchAll")}async getModeratorPermission(){return await this._dna_request("user/moderator/getModeratorPermission")}async getOpenScreen(){return await this._dna_request("config/getOpenScreen")}async getPublicKey(){return await this._dna_request("config/getRsaPublicKey")}async getUserGame(){return await this._dna_request("user/getUserGame")}async getWikiData(){return await this._dna_request("config/getGameWiki")}async haveOfficialRole(){return await this._dna_request("role/haveOfficialRole")}async isRedPoint(){return await this._dna_request("forum/dynamic/isRedPoint")}async login(e,n){let t={code:n,devCode:this.dev_code,gameList:l,loginType:1,mobile:e},r=await this._dna_request("user/sdkLogin",t,{sign:!0});if(r.is_success&&r.data){let i=r.data;if(typeof i.token==="string")this.token=i.token}return r}async oneTapLoginRestriction(){return await this._dna_request("user/oneTapLoginRestriction")}async recommendConfig(){return await this._dna_request("forum/recommend/config")}async refreshToken(e){return await this._dna_request("user/refreshToken",{refreshToken:e})}async register(e,n,t,r,i){return await this._dna_request("user/register",{code:e,devCode:n,gameList:t,mobile:r,password:i})}async saveUserInfo(e,n,t,r){return await this._dna_request("user/saveUserInfo",{gender:e,headCode:n,headUrl:t,userName:r})}async sendSms(e,n,t){return await this._dna_request("user/getSmsCode",{mobile:e,isCaptcha:t,vJson:n})}async signature(e){return await this._dna_request("user/edit/signature",{newSignature:e})}async updateHeadCode(e){return await this._dna_request("user/updateHeadCode",{headCode:e})}async updateHeadUrl(e){return await this._dna_request("user/updateHeadUrl",{headUrl:e})}async updateProfileBg(e){return await this._dna_request("user/updateBg",{bgUrl:e})}async uploadHead(e){let n=new FormData;return n.append("parts",e),await this.fileUpload("user/img/uploadHead",n)}async uploadProfileBg(e){let n=new FormData;return n.append("parts",e),await this.fileUpload("user/img/uploadMineBg",n)}async getEmoji(){return await this._dna_request("config/getEmoji")}async getGameConfig(){return await this._dna_request("config/getGameConfig")}async getGameHeadCode(){return await this._dna_request("user/getGameHeadCode")}}class T extends m{async addAddress(e,n,t){return await this._dna_request("user/more/userAddressAdd",{receiverName:e,receiverMobile:n,receiverAddress:t})}async apply(e,n,t,r,i,s,a,o){return await this._dna_request("user/creator/apply",{type:e,id:n,concatWay:t,otherPlatform:r,otherPlatformUrl:i,otherPlatformFans:s,materialUrl:a,gameId:o})}async awardList(e){return await this._dna_request("encourage/draw/awardList",{drawId:e})}async awardWin(e,n,t,r){return await this._dna_request("/encourage/draw/awardWin",{drawId:e,fullName:n,mobile:t,address:r})}async buyGold(e,n){return await this._dna_request("encourage/draw/buy",{drawId:e,count:n})}async buyProduct(e,n,t,r){return await this._dna_request("/encourage/store/buyProduct",{address:e,fullName:n,mobile:t,productId:r})}async deleteAddress(e){return await this._dna_request("user/more/deleteUserAddress",{addressId:e})}async drawDetail(e){return await this._dna_request("encourage/draw/detail",{drawId:e})}async editAddress(e,n,t,r){return await this._dna_request("user/more/userAddressEdit",{addressId:e,receiverName:n,receiverMobile:t,receiverAddress:r})}async getAliProductConfig(){return await this._dna_request("encourage/store/ali/getAliStoreConfigAndBanner")}async getAliProductList(e,n,t){return await this._dna_request("encourage/store/ali/productList",{gameId:e,pageIndex:n,pageSize:t})}async getApplyPage(){return await this._dna_request("user/creator/getApplyPage")}async getExpLogsList(e,n,t){return await this._dna_request("encourage/level/getExpLogs",{gameId:e,pageIndex:n,pageSize:t})}async getGameCreator(){return await this._dna_request("config/identification/getGameCreator")}async getGoldDetailList(e,n,t,r){return await this._dna_request("encourage/gold/getGoldLogs",{pageIndex:e,pageSize:n,type:t,storeType:r})}async getProductList(e,n,t,r){return await this._dna_request("encourage/store/productList",{gameId:e,pageIndex:n,pageSize:t,storeType:r})}async getTotalGold(e){if(e!==void 0)return await this._dna_request("encourage/gold/getTotalGold",{type:e});return await this._dna_request("encourage/gold/getTotalGold")}async getUserAddress(e,n){return await this._dna_request("user/more/getUserAddress",{userId:e,type:n})}async getUserGameLevel(e,n,t){return await this._dna_request("encourage/level/getUserGameLevelDetail",{gameId:e,ifProcess:n,otherUserId:t})}async getUserGameTaskProcess(e,n){return await this._dna_request("encourage/level/getTaskProcess",{gameId:e,userId:n})}async list(e,n,t,r){return await this._dna_request("encourage/draw/list",{pageIndex:e,pageSize:n,queryType:t,gameId:r})}async page(){return await this._dna_request("user/creator/page")}async productDetail(e){return await this._dna_request("encourage/store/productDetail",{productId:e})}async setDefaultAddress(e){return await this._dna_request("user/more/setDefaultAddress",{addressId:e})}async uploadImage(e){let n=new FormData;return n.append("parts",e),await this.fileUpload("user/img/uploadHead",n)}}class F extends m{async getMapMatterCategorizeOptions(){return await this._dna_request_h5("map/matter/categorize/getOptions")}async getMapCategorizeList(){return await this._dna_request_h5("map/categorize/list")}async getMapDetail(e){return await this._dna_request_h5("map/detail",{id:e})}async getMapSiteDetail(e){return await this._dna_request_h5("map/site/detail",{id:e})}async getEmojiList(){return await this._dna_request_h5("config/getEmoji")}}class $ extends _{game;home;profile;setting;trend;user;userGrowing;h5;constructor({dev_code:e="",token:n="",...t}={}){super(e,n,t);this.game=new y(this),this.home=new L(this),this.profile=new x(this),this.setting=new R(this),this.trend=new I(this),this.user=new P(this),this.userGrowing=new T(this),this.h5=new F(this)}async initialize(){await this.initializeSignConfig()}get GAME_ID(){return l}async getMhSwitchStatus(){return await this.game.getMhSwitchStatus()}async updateMhSwitchStatus(e){return await this.game.updateMhSwitchStatus(e)}async soulTask(){return await this.game.soulTask()}async defaultRoleForTool(e=1,n){return await this.game.defaultRoleForTool(e,n)}async getRoleDetail(e,n,t){return await this.game.getRoleDetail(e,n,t)}async getWeaponDetail(e,n,t){return await this.game.getWeaponDetail(e,n,t)}async getShortNoteInfo(){return await this.game.getShortNoteInfo()}async getPostList(e=48,n=1,t=20,r=1,i=0){return await this.home.getPostList(e,n,t,r,i)}async getPostDetail(e){return await this.home.getPostDetail(e)}async getPostByTopic(e=177,n=1,t=20,r=1,i=0){return await this.home.getPostByTopic(e,n,t,r,i)}async getTaskProcess(){return await this.home.getTaskProcess()}async haveSignIn(){return await this.home.haveSignIn()}async signCalendar(){return await this.home.signCalendar()}async gameSign(e,n){return await this.home.gameSignIn(e,n)}async bbsSign(){return await this.home.bbsSign()}async getRoleList(){return await this.profile.roleManager()}async adminAdjustScore(e,n,t){return await this.home.adminAdjustScore(e,n,t)}async adminDelete(e,n,t){return await this.home.adminDelete(e,n,t)}async adminMovePost(e,n,t,r){return await this.home.adminMovePost(e,n,t,r)}async adminRefreshTime(e,n){return await this.home.adminRefreshTime(e,n)}async blockList(){return await this.home.blockList()}async blockOther(e,n,t){return await this.home.blockOther(e,n,t)}async collect(e,n,t=1){return await this.home.collect(e,n,t)}async commentDelete(e,n,t,r){return await this.home.commentDelete(e,n,t,r)}async createComment(e,n){return await this.home.createComment(e,n)}async createReply(e,n){return await this.home.createReply(e,n)}async createReplyList(e,n){return await this.home.createReplyList(e,n)}async deletePost(e,n){return await this.home.deletePost(e,n)}async followUser(e,n){return await this.home.followUser(e,n)}async getFollowState(e){return await this.home.getFollowState(e)}async getDoujin(e){return await this.home.getDoujin(e)}async getExchange(e){return await this.home.getExchange(e)}async getGameBanner(e=l){return await this.home.getGameBanner(e)}async getPostCommentList(e,n=1,t=20,r=0){return await this.home.getPostCommentList(e,n,t,r)}async getRankList(e){return await this.home.getRankList(e)}async getRecommendPosts(e=l,n=1,t=20){return await this.home.getRecommendPosts(e,n,t)}async getReplyList(e,n,t=1,r=20){return await this.home.getReplyList(e,n,t,r)}async getStatistics(e=l){return await this.home.getStatistics(e)}async getTips(){return await this.home.getTips()}async getWalkthrough(e){return await this.home.getWalkthrough(e)}async hotList(e=1,n=l){return await this.home.hotList(e,n)}async isRedPoint(){return await this.home.isRedPoint()}async likePost(e){return await this.home.like(e)}async lockPost(e,n){return await this.home.lockPost(e,n)}async postDownOrUp(e,n){return await this.home.postDownOrUp(e,n)}async postElite(e,n){return await this.home.postElite(e,n)}async postHide(e,n){return await this.home.postHide(e,n)}async reRank(e,n){return await this.home.reRank(e,n)}async receiveLog(e,n,t){return await this.home.receiveLog(e,n,t)}async recommendList(e,n,t,r,i=l){return await this.home.recommendList(e,n,t,r,i)}async report({commentId:e=0,postId:n=0,replyId:t=0},r=1,i=1){return await this.home.report({commentId:e,postId:n,replyId:t},r,i)}async searchPost(e,n,t,r=l,i=1){return await this.home.searchPost(e,n,t,r,i)}async searchTopic(e,n,t=20,r=l){return await this.home.searchTopic(e,n,t,r)}async searchUser(e,n,t){return await this.home.searchUser(e,n,t)}async shareTask(){return await this.home.shareTask()}async strongRecommend(e,n=1){return await this.home.strongRecommend(e,n)}async viewCommunity(){return await this.home.viewCommunity()}async viewCount(e,n=l){return await this.home.viewCount(e,n)}async loginLog(){return await this.user.loginLog()}async login(e,n){return await this.user.login(e,n)}async getSmsCode(e,n){return await this.user.sendSms(e,n,1)}async getMine(e="",n=1,t=0){return await this.profile.mine(e,n,t)}async getOtherMine(e="709542994134436647",n=1,t=2){return await this.profile.mine(e,n,t)}async canEditNickName(){return await this.user.canEditNickName()}async cleanToken(){return await this.user.cleanToken()}async editGender(e){return await this.user.editGender(e)}async editNickName(e){return await this.user.editNickName(e)}async getCommonConfig(){return await this.user.getCommonConfig()}async getConfig(){return await this.user.getConfig()}async getConfigSwitch(){return await this.user.getConfigSwitch()}async getModeratorPermission(){return await this.user.getModeratorPermission()}async getOpenScreen(){return await this.user.getOpenScreen()}async getPublicKey(){return await this.user.getPublicKey()}async getUserGame(){return await this.user.getUserGame()}async getWikiData(){return await this.user.getWikiData()}async haveOfficialRole(){return await this.user.haveOfficialRole()}async oneTapLoginRestriction(){return await this.user.oneTapLoginRestriction()}async recommendConfig(){return await this.user.recommendConfig()}async refreshToken(e){return await this.user.refreshToken(e)}async register(e,n,t,r,i){return await this.user.register(e,n,t,r,i)}async saveUserInfo(e,n,t,r){return await this.user.saveUserInfo(e,n,t,r)}async signature(e){return await this.user.signature(e)}async updateHeadCode(e){return await this.user.updateHeadCode(e)}async updateHeadUrl(e){return await this.user.updateHeadUrl(e)}async updateProfileBg(e){return await this.user.updateProfileBg(e)}async uploadHead(e){return await this.user.uploadHead(e)}async uploadProfileBg(e){return await this.user.uploadProfileBg(e)}async getEmoji(){return await this.user.getEmoji()}async getGameConfig(){return await this.user.getGameConfig()}async getGameHeadCode(){return await this.user.getGameHeadCode()}async getMapCategorizeList(){return await this.h5.getMapCategorizeList()}async getMapDetail(e){return await this.h5.getMapDetail(e)}async getMapSiteDetail(e){return await this.h5.getMapSiteDetail(e)}async getEmojiList(){return await this.h5.getEmojiList()}async getMapMatterCategorizeOptions(){return await this.h5.getMapMatterCategorizeOptions()}async blackUser(e,n){return await this.profile.blackUser(e,n)}async cleanFansNew(e,n){return await this.profile.cleanFansNew(e,n)}async defaultRole(e,n=1){return await this.profile.defaultRole(e,n)}async deleteRole(e){return await this.profile.deleteRole(e)}async draftDelete(e){return await this.profile.draftDelete(e)}async fans(e,n,t,r){return await this.profile.fans(e,n,t,r)}async fastBind(){return await this.profile.fastBind()}async follow(e,n,t,r){return await this.profile.follow(e,n,t,r)}async getApplyStatus(){return await this.profile.getApplyStatus()}async getDraftList(e,n){return await this.profile.getDraftList(e,n)}async getMineComment(e,n,t,r){return await this.profile.getMineComment(e,n,t,r)}async getMinePost(e,n,t,r,i,s){return await this.profile.getMinePost(e,n,t,r,i,s)}async getProfileNotifySwitch(){return await this.profile.getNotifySwitch()}async historyView(e,n){return await this.profile.historyView(e,n)}async likeProfilePost(e){return await this.profile.like(e)}async manualBound(e,n,t){return await this.profile.manualBound(e,n,t)}async mine(e,n,t,r){return await this.profile.mine(e,n,t,r)}async mineV2(e){return await this.profile.mineV2(e)}async moderatorByGame(e){return await this.profile.moderatorByGame(e)}async muteCancel(e){return await this.profile.muteCancel(e)}async muteUser(e,n,t,r,i){return await this.profile.muteUser(e,n,t,r,i)}async resetDefault(e){return await this.profile.resetDefault(e)}async addAddress(e,n,t){return await this.setting.addAddress(e,n,t)}async cancelCode(e){return await this.setting.cancelCode(e)}async cancel(e,n,t,r,i){return await this.setting.cancel(e,n,t,r,i)}async deleteAddress(e){return await this.setting.deleteAddress(e)}async editAddress(e,n,t,r){return await this.setting.editAddress(e,n,t,r)}async feedback(e,n,t,r){return await this.setting.feedback(e,n,t,r)}async getCancelStatus(){return await this.setting.getCancelStatus()}async getPrivateSet(){return await this.setting.getPrivateSet()}async getUserAddress(e,n){return await this.setting.getUserAddress(e,n)}async getUserBlackList(e,n){return await this.setting.getUserBlackList(e,n)}async msgListDetail(e,n,t){return await this.setting.msgListDetail(e,n,t)}async postListDetail(e,n,t){return await this.setting.postListDetail(e,n,t)}async privateSet(e,n){return await this.setting.privateSet(e,n)}async sendSms(e,n,t){return await this.setting.sendSms(e,n,t)}async setDefaultAddress(e){return await this.setting.setDefaultAddress(e)}async setNotifySwitch(e,n){return await this.setting.setNotifySwitch(e,n)}async uploadFeedBack(e){return await this.setting.uploadFeedBack(e)}async draftSave(e,n,t,r,i,s,a){return await this.trend.draftSave(e,n,t,r,i,s,a)}async getConfigTopicByGameId(e,n){return await this.trend.getConfigTopicByGameId(e,n)}async getPostPublishPage(){return await this.trend.getPostPublishPage()}async getRecommend(e,n){return await this.trend.getRecommend(e,n)}async getVodToken(e,n){return await this.trend.getVodToken(e,n)}async trendList(e,n,t){return await this.trend.list(e,n,t)}async parseLink(e){return await this.trend.parseLink(e)}async posAdminEdit(e,n,t,r,i,s,a,o,b){return await this.trend.posAdminEdit(e,n,t,r,i,s,a,o,b)}async postEdit(e,n,t,r,i,s,a,o){return await this.trend.postEdit(e,n,t,r,i,s,a,o)}async postPublish(e,n,t,r,i,s,a,o){return await this.trend.postPublish(e,n,t,r,i,s,a,o)}async safeCheck(e){return await this.trend.safeCheck(e)}async uploadImage(e){return await this.trend.uploadImage(e)}async videoPostPublish(e,n,t,r,i,s,a,o){return await this.trend.videoPostPublish(e,n,t,r,i,s,a,o)}async apply(e,n,t,r,i,s,a,o){return await this.userGrowing.apply(e,n,t,r,i,s,a,o)}async awardList(e){return await this.userGrowing.awardList(e)}async awardWin(e,n,t,r){return await this.userGrowing.awardWin(e,n,t,r)}async buyGold(e,n){return await this.userGrowing.buyGold(e,n)}async buyProduct(e,n,t,r){return await this.userGrowing.buyProduct(e,n,t,r)}async drawDetail(e){return await this.userGrowing.drawDetail(e)}async getAliProductConfig(){return await this.userGrowing.getAliProductConfig()}async getAliProductList(e,n,t){return await this.userGrowing.getAliProductList(e,n,t)}async getApplyPage(){return await this.userGrowing.getApplyPage()}async getExpLogsList(e,n,t){return await this.userGrowing.getExpLogsList(e,n,t)}async getGameCreator(){return await this.userGrowing.getGameCreator()}async getGoldDetailList(e,n,t,r){return await this.userGrowing.getGoldDetailList(e,n,t,r)}async getProductList(e,n,t,r){return await this.userGrowing.getProductList(e,n,t,r)}async getTotalGold(e){return await this.userGrowing.getTotalGold(e)}async getUserGameLevel(e,n,t){return await this.userGrowing.getUserGameLevel(e,n,t)}async getUserGameTaskProcess(e,n){return await this.userGrowing.getUserGameTaskProcess(e,n)}async list(e,n,t,r){return await this.userGrowing.list(e,n,t,r)}async page(){return await this.userGrowing.page()}async productDetail(e){return await this.userGrowing.productDetail(e)}}export{W as swapForUploadImgApp,Z as signature_hash,G as rsa_encrypt,v as rand_str,J as md5_upper,H as build_upload_signature,V as build_signature,O as aesDecryptImageUrl,T as UserGrowingAPI,P as UserAPI,I as TrendAPI,p as TimeBasicResponse,R as SettingAPI,E as RespCode,x as ProfileAPI,Y as PostContentType,L as HomeAPI,F as H5API,y as GameAPI,l as DNA_GAME_ID,m as DNASubModule,_ as DNABaseAPI,$ as DNAAPI};
5
5
 
6
- //# debugId=A949EFB62A49C38064756E2164756E21
6
+ //# debugId=1FBE1CA11594482D64756E2164756E21
package/dist/index.js.map CHANGED
@@ -4,19 +4,19 @@
4
4
  "sourcesContent": [
5
5
  "export enum RespCode {\n ERROR = -999,\n OK_ZERO = 0,\n OK_HTTP = 200,\n BAD_REQUEST = 400,\n SERVER_ERROR = 500,\n}\n\nexport class TimeBasicResponse<T = any> {\n code: number = 0\n msg: string = \"\"\n data?: T\n\n constructor(raw_data: any) {\n this.code = raw_data.code || 0\n this.msg = raw_data.msg || \"\"\n this.data = raw_data.data\n }\n\n get is_success(): boolean {\n return this.code === RespCode.OK_HTTP || this.code === RespCode.OK_ZERO\n }\n\n get success(): boolean {\n return this.is_success\n }\n\n static err<T = undefined>(msg: string, code: number = RespCode.ERROR): TimeBasicResponse<T> {\n return new TimeBasicResponse<T>({ code, msg, data: undefined })\n }\n}\n",
6
6
  "import * as forge from \"node-forge\"\n\nexport interface RequestOptions {\n method?: \"GET\" | \"POST\"\n sign?: boolean\n file?: File\n tokenSig?: boolean\n h5?: boolean\n token?: boolean\n refer?: boolean\n params?: Record<string, any>\n max_retries?: number\n retry_delay?: number\n timeout?: number\n}\n\nexport interface HeadersPayload {\n headers: Record<string, any>\n payload: string | FormData | undefined\n}\n\nexport function rsa_encrypt(text: string, public_key_b64: string): string {\n try {\n const lines: string[] = []\n for (let i = 0; i < public_key_b64.length; i += 64) {\n lines.push(public_key_b64.slice(i, i + 64))\n }\n const pem = `-----BEGIN PUBLIC KEY-----\\n${lines.join(\"\\n\")}\\n-----END PUBLIC KEY-----`\n\n const publicKey = forge.pki.publicKeyFromPem(pem)\n const textBytes = forge.util.encodeUtf8(text)\n const encrypted = publicKey.encrypt(textBytes)\n\n return forge.util.encode64(encrypted)\n } catch (e) {\n throw new Error(`[DNA] RSA 加密失败: ${(e as Error).message}`)\n }\n}\n\nexport function rand_str(length: number = 16): string {\n const chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"\n let result = \"\"\n for (let i = 0; i < length; i++) {\n result += chars.charAt(Math.floor(Math.random() * chars.length))\n }\n return result\n}\n\nexport function md5_upper(text: string): string {\n const md = forge.md.md5.create()\n md.update(text)\n return md.digest().toHex().toUpperCase()\n}\n\nexport function signature_hash(text: string): string {\n function swap_positions(text: string, positions: number[]): string {\n const chars = text.split(\"\")\n for (let i = 1; i < positions.length; i += 2) {\n const p1 = positions[i - 1]\n const p2 = positions[i]\n if (p1 >= 0 && p1 < chars.length && p2 >= 0 && p2 < chars.length) {\n ;[chars[p1], chars[p2]] = [chars[p2], chars[p1]]\n }\n }\n return chars.join(\"\")\n }\n return swap_positions(md5_upper(text), [1, 13, 5, 17, 7, 23])\n}\n\nfunction sign_fI(data: Record<string, any>, secret: string): string {\n const pairs: string[] = []\n const sortedKeys = Object.keys(data).sort()\n for (const k of sortedKeys) {\n const v = data[k]\n if (v !== null && v !== undefined && v !== \"\") {\n pairs.push(`${k}=${v}`)\n }\n }\n const qs = pairs.join(\"&\")\n return signature_hash(`${qs}&${secret}`)\n}\n\nexport function build_signature(data: Record<string, any>, token?: string): Record<string, any> {\n const ts = Date.now()\n const sign_data = { ...data, timestamp: ts, token }\n const sec = rand_str(16)\n const sig = sign_fI(sign_data, sec)\n const enc = xor_encode(sig, sec)\n return { s: enc, t: ts, k: sec }\n}\n// 构建上传图片签名(返回签名和密钥)\nexport function build_upload_signature(public_key: string): { signature: string; key: string } {\n const key = rand_str(16)\n const encrypted = rsa_encrypt(key, public_key)\n const signature = swapForUploadImgApp(encrypted)\n return { signature, key }\n}\n\n// 上传图片签名 - 字符交换\nexport function swapForUploadImgApp(text: string): string {\n const chars = text.split(\"\")\n const swaps = [\n [3, 23],\n [11, 32],\n [22, 42],\n [25, 48],\n ]\n for (const [p1, p2] of swaps) {\n if (p1 < chars.length && p2 < chars.length) {\n ;[chars[p1], chars[p2]] = [chars[p2], chars[p1]]\n }\n }\n return chars.join(\"\")\n}\n\n// AES 解密图片 URL\nexport function aesDecryptImageUrl(encryptedUrl: string, key: string): string {\n const swapped = swapForUploadImgApp(encryptedUrl)\n\n const encryptedData = forge.util.decode64(swapped)\n\n const decipher = forge.cipher.createDecipher(\"AES-CBC\", key)\n decipher.start({ iv: \"A-16-Byte-String\" })\n decipher.update(forge.util.createBuffer(encryptedData))\n decipher.finish()\n\n return decipher.output.getBytes()\n}\n\n// XOR编码函数\nfunction xor_encode(text: string, key: string): string {\n const encoder = new TextEncoder()\n const tb = encoder.encode(text)\n const kb = encoder.encode(key)\n const out: string[] = []\n for (let i = 0; i < tb.length; i++) {\n const b = tb[i]\n const e = (b & 255) + (kb[i % kb.length] & 255)\n out.push(`@${e}`)\n }\n return out.join(\"\")\n}\n",
7
- "import { TimeBasicResponse, RespCode } from \"../TimeBasicResponse\"\nimport { DNACommonConfigEntity } from \"../type-generated\"\nimport { build_signature, build_upload_signature, rsa_encrypt, RequestOptions, HeadersPayload, aesDecryptImageUrl } from \"./utils\"\n\nexport class DNABaseAPI {\n public fetchFn?: typeof fetch\n public is_h5 = false\n public RSA_PUBLIC_KEY =\n \"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGpdbezK+eknQZQzPOjp8mr/dP+QHwk8CRkQh6C6qFnfLH3tiyl0pnt3dePuFDnM1PUXGhCkQ157ePJCQgkDU2+mimDmXh0oLFn9zuWSp+U8uLSLX3t3PpJ8TmNCROfUDWvzdbnShqg7JfDmnrOJz49qd234W84nrfTHbzdqeigQIDAQAB\"\n public BASE_URL = \"https://dnabbs-api.yingxiong.com/\"\n public uploadKey: string = \"\"\n public sign_api_urls = new Set<string>()\n\n constructor(\n public dev_code: string,\n public token = \"\",\n options: { fetchFn?: typeof fetch; is_h5?: boolean; rsa_public_key?: string } = {},\n ) {\n this.fetchFn = options.fetchFn\n if (options.is_h5 !== undefined) this.is_h5 = options.is_h5\n if (options.rsa_public_key !== undefined) this.RSA_PUBLIC_KEY = options.rsa_public_key\n }\n\n async fileUpload(url: string, data: FormData) {\n const res = await this._dna_request<string[]>(url, data, { sign: true })\n if (res.is_success && res.data) {\n res.data = res.data.map((url) => aesDecryptImageUrl(url, this.uploadKey))\n }\n return res\n }\n\n async getRsaPublicKey() {\n if (this.RSA_PUBLIC_KEY) {\n return this.RSA_PUBLIC_KEY\n }\n const res = await this._dna_request<{ key: string }>(\"config/getRsaPublicKey\")\n\n if (res.is_success && res.data) {\n const key = res.data.key\n if (typeof key === \"string\") {\n this.RSA_PUBLIC_KEY = key\n }\n }\n return this.RSA_PUBLIC_KEY\n }\n\n public async getHeaders(options?: {\n payload?: Record<string, any> | string | FormData\n exparams?: Record<string, any>\n dev_code?: string\n refer?: boolean\n token?: string\n tokenSig?: boolean\n h5?: boolean\n }): Promise<HeadersPayload> {\n let { payload, exparams, dev_code = this.dev_code, refer, token = this.token, tokenSig, h5 } = options || {}\n\n const CONTENT_TYPE = \"application/x-www-form-urlencoded; charset=utf-8\"\n const iosBaseHeader = {\n version: \"1.1.3\",\n source: \"ios\",\n \"Content-Type\": CONTENT_TYPE,\n \"User-Agent\": \"DoubleHelix/4 CFNetwork/3860.100.1 Darwin/25.0.0\",\n }\n const h5BaseHeader = {\n version: \"3.11.0\",\n source: \"h5\",\n \"Content-Type\": CONTENT_TYPE,\n \"User-Agent\":\n \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36\",\n }\n const is_h5 = this.is_h5 || h5 || false\n const headers = { ...(is_h5 ? h5BaseHeader : iosBaseHeader) } as Record<string, any>\n if (dev_code) {\n headers.devCode = dev_code\n }\n if (refer || is_h5) {\n headers.origin = \"https://dnabbs.yingxiong.com\"\n headers.refer = \"https://dnabbs.yingxiong.com/\"\n }\n if (token) {\n headers.token = token\n }\n if (payload instanceof FormData) {\n const pk = await this.getRsaPublicKey()\n const { signature, key } = build_upload_signature(pk)\n headers.t = signature\n this.uploadKey = key\n\n if (exparams) {\n for (const [key, value] of Object.entries(exparams)) {\n payload.append(key, String(value))\n }\n }\n\n delete headers[\"Content-Type\"]\n } else if (typeof payload === \"object\") {\n const si = build_signature(payload, tokenSig ? token : \"\")\n Object.assign(payload, { sign: si.s, timestamp: si.t })\n if (exparams) {\n Object.assign(payload, exparams)\n }\n\n const params = new URLSearchParams()\n Object.entries(payload).forEach(([key, value]) => {\n params.append(key, String(value))\n })\n payload = params.toString()\n\n const rk = si.k\n const pk = await this.getRsaPublicKey()\n const ek = rsa_encrypt(rk, pk)\n if (this.is_h5) {\n headers.k = ek\n } else {\n headers.rk = rk\n headers.key = ek\n }\n }\n return { headers, payload }\n }\n\n async needSign(url: string): Promise<boolean> {\n if (this.sign_api_urls.size === 0) {\n try {\n await this.initializeSignConfig()\n } catch (error) {\n console.error(\"初始化签名配置失败:\", error)\n this.sign_api_urls = new Set(\n [\n \"/user/sdkLogin\",\n \"/forum/postPublish\",\n \"/forum/comment/createComment\",\n \"/forum/comment/createReply\",\n \"/user/getSmsCode\",\n \"/role/defaultRoleForTool\",\n \"/media/av/cfg/getVideos\",\n \"/media/av/cfg/getAudios\",\n \"/media/av/cfg/getImages\",\n \"/encourage/signin/signin\",\n ].map((item) => item.replace(/^\\/+/, \"\")),\n )\n }\n }\n return this.sign_api_urls.has(url)\n }\n\n async initializeSignConfig(): Promise<void> {\n try {\n const configRes = await this._dna_request<DNACommonConfigEntity>(\"config/getCommonConfig\", undefined, { sign: false })\n if (configRes.is_success && configRes.data?.signApiConfigVo?.signApiList) {\n this.sign_api_urls = new Set(configRes.data.signApiConfigVo.signApiList.map((item) => item.replace(/^\\/+/, \"\")))\n }\n } catch (error) {\n console.error(\"初始化签名配置失败:\", error)\n }\n }\n\n public async _dna_request_h5<T = any>(url: string, data?: any, options?: RequestOptions): Promise<TimeBasicResponse<T>> {\n return await this._dna_request(url, data, { ...options, h5: true })\n }\n\n public async _dna_request<T = any>(url: string, data?: any, options?: RequestOptions): Promise<TimeBasicResponse<T>> {\n let { method = \"POST\", sign, h5, refer, params, max_retries = 3, retry_delay = 1, timeout = 10000, token, tokenSig } = options || {}\n\n // 如果未明确指定 sign,则根据 URL 自动判断\n if (sign === undefined && (await this.needSign(url))) {\n sign = true\n }\n let headers: Record<string, any>\n if (sign) {\n const { payload: p, headers: h } = await this.getHeaders({\n payload: data,\n refer,\n exparams: params,\n token: token ? this.token : undefined,\n tokenSig,\n h5,\n })\n data = p\n headers = h\n } else {\n const { headers: h } = await this.getHeaders({ token: token ? this.token : undefined, refer, h5 })\n headers = h\n }\n\n for (let attempt = 0; attempt < max_retries; attempt++) {\n try {\n let body: string | FormData | undefined = data\n if (data && typeof data === \"object\" && !(data instanceof FormData)) {\n const p = new URLSearchParams()\n Object.entries(data).forEach(([key, value]) => {\n if (value !== undefined) p.append(key, String(value))\n })\n body = p.toString()\n }\n const fetchOptions: RequestInit = {\n method,\n headers,\n body,\n }\n\n const controller = new AbortController()\n const timeoutId = setTimeout(() => controller.abort(), timeout)\n\n const initOptions = {\n ...fetchOptions,\n signal: controller.signal,\n }\n const response = this.fetchFn\n ? await this.fetchFn(`${this.BASE_URL}${url}`, initOptions)\n : await fetch(`${this.BASE_URL}${url}`, initOptions)\n clearTimeout(timeoutId)\n\n const contentType = response.headers.get(\"content-type\") || \"\"\n let raw_res: any\n\n if (contentType.includes(\"text/\")) {\n const textData = await response.text()\n raw_res = {\n code: RespCode.ERROR,\n data: textData,\n }\n } else {\n raw_res = await response.json()\n }\n\n if (typeof raw_res === \"object\" && raw_res !== null) {\n try {\n if (typeof raw_res.data === \"string\") {\n raw_res.data = JSON.parse(raw_res.data)\n }\n } catch (e) {}\n }\n\n return new TimeBasicResponse<T>(raw_res)\n } catch (e) {\n console.error(`请求失败: ${(e as Error).message}`)\n if (attempt < max_retries - 1) {\n await new Promise((resolve) => setTimeout(resolve, retry_delay * Math.pow(2, attempt)))\n }\n }\n }\n\n return TimeBasicResponse.err(\"请求服务器失败,已达最大重试次数\")\n }\n}\n\n/**\n * 子模块基类,代理 DNABaseAPI 的方法和属性\n * 所有子模块都通过这个类代理到共享的 BaseAPI 实例\n */\nexport abstract class DNASubModule {\n protected _base: DNABaseAPI\n\n constructor(base: DNABaseAPI) {\n this._base = base\n }\n\n // 代理属性访问\n get dev_code(): string {\n return this._base.dev_code\n }\n\n get token(): string {\n return this._base.token\n }\n set token(value: string) {\n this._base.token = value\n }\n\n get fetchFn(): typeof fetch | undefined {\n return this._base.fetchFn\n }\n\n get is_h5(): boolean {\n return this._base.is_h5\n }\n\n get RSA_PUBLIC_KEY(): string {\n return this._base.RSA_PUBLIC_KEY\n }\n\n get BASE_URL(): string {\n return this._base.BASE_URL\n }\n\n get uploadKey(): string {\n return this._base.uploadKey\n }\n\n // 代理方法\n async getRsaPublicKey(): Promise<string> {\n return this._base.getRsaPublicKey()\n }\n\n /**\n * 图片上传\n */\n async fileUpload(url: string, data: FormData) {\n return await this._base.fileUpload(url, data)\n }\n\n public async _dna_request<T = any>(url: string, data?: any, options?: RequestOptions): Promise<TimeBasicResponse<T>> {\n return this._base._dna_request(url, data, options)\n }\n\n public async _dna_request_h5<T = any>(url: string, data?: any, options?: RequestOptions): Promise<TimeBasicResponse<T>> {\n return this._base._dna_request_h5(url, data, options)\n }\n\n public async getHeaders(options?: {\n payload?: Record<string, any> | string | FormData\n exparams?: Record<string, any>\n dev_code?: string\n refer?: boolean\n token?: string\n tokenSig?: boolean\n h5?: boolean\n }): Promise<HeadersPayload> {\n return this._base.getHeaders(options)\n }\n}\n",
8
- "import { DNASubModule, DNABaseAPI } from \"./base\"\nimport {\n DNARoleEntity,\n DNAShortNoteEntity,\n DNACharDetailEntity,\n DNAWeaponDetailEntity,\n DNAPushStringBean,\n DNASoulTaskBean,\n} from \"../type-generated\"\n\nexport class GameAPI extends DNASubModule {\n constructor(base: DNABaseAPI) {\n super(base)\n }\n async defaultRoleForTool(type: number = 1, otherUserId?: string) {\n const data = { otherUserId, type }\n if (!otherUserId) {\n delete data.otherUserId\n }\n return await this._dna_request<DNARoleEntity>(\"role/defaultRoleForTool\", data, { sign: true, token: true, tokenSig: true })\n }\n\n async getMhSwitchStatus() {\n return await this._dna_request<DNAPushStringBean>(\"user/push/getMhSwitchStatus\")\n }\n\n async getRoleDetail(char_id: string, char_eid: string, otherUserId?: string) {\n const data = { charId: char_id, charEid: char_eid, type: 1, otherUserId }\n return await this._dna_request<DNACharDetailEntity>(\"role/getCharDetail\", data)\n }\n\n async getShortNoteInfo() {\n return await this._dna_request<DNAShortNoteEntity>(\"role/getShortNoteInfo\")\n }\n\n async getWeaponDetail(weapon_id: string, weapon_eid: string, otherUserId?: string) {\n const data = { weaponId: weapon_id, weaponEid: weapon_eid, type: 1, otherUserId }\n return await this._dna_request<DNAWeaponDetailEntity>(\"role/getWeaponDetail\", data)\n }\n\n async updateMhSwitchStatus(config: string) {\n return await this._dna_request(\"user/push/updateMhSwitchStatus\", { config })\n }\n\n async soulTask() {\n return await this._dna_request<DNASoulTaskBean>(\"role/soul/task\")\n }\n}\n",
9
- "import { DNASubModule, DNABaseAPI } from \"./base\"\nimport {\n DNAPostDetailResponse,\n DNAGameSignInShowDataBean,\n DNAGameSignInResultBean,\n DNAUserTaskProcessEntity,\n DNADiscussAreaResponse,\n DNAHomeOffWaterResponse,\n DNATipsBean,\n DNAIsRedPointBean,\n DNARecommendBean,\n DNATopicListResponse,\n DNAReplyListResponse,\n DNACommentListResponse,\n DNASignInBean,\n DNABlockBean,\n DNACreateCommentResponse,\n DNAReplayCommentResponse,\n DNAFollowBean,\n DNAGameBannerBean,\n DNAFraternityResponse,\n DNAStatisticsBean,\n DNAPostListBean,\n DNAReceiveRecord,\n DNASearchPostBean,\n DNASearchTopicBean,\n DNASearchUserBean,\n DNASoulTaskBean,\n} from \"../type-generated\"\n\nconst DNA_GAME_ID = 268\n\nexport class HomeAPI extends DNASubModule {\n constructor(base: DNABaseAPI) {\n super(base)\n }\n async adminAdjustScore(postId: number, gameForumId: number, weight: string, gameId: number = DNA_GAME_ID) {\n const data = { postId, gameId: gameId ?? DNA_GAME_ID, gameForumId, weight }\n return await this._dna_request(\"forum/moderator/setPostWeight\", data)\n }\n\n async adminDelete(post: { postId: number; gameId?: number; gameForumId: number }, content: string, reasonCode: number) {\n const data = {\n postId: post.postId,\n gameId: post.gameId ?? DNA_GAME_ID,\n gameForumId: post.gameForumId,\n content: content,\n reasonCode: reasonCode,\n }\n return await this._dna_request(\"forum/moderator/postDelete\", data)\n }\n\n async adminMovePost(\n post: { postId: number; gameId?: number; gameForumId: number },\n newGameId: number,\n newForumId: number,\n newTopicIdStr: string,\n ) {\n const data = {\n postId: post.postId,\n gameId: post.gameId ?? DNA_GAME_ID,\n gameForumId: post.gameForumId,\n newGameId,\n newForumId,\n newTopicIdStr,\n }\n return await this._dna_request(\"forum/moderator/postMove\", data)\n }\n\n async adminRefreshTime(post: { postId: number; gameId?: number; gameForumId: number }, refresh: number) {\n const data = {\n postId: post.postId,\n gameId: post.gameId ?? DNA_GAME_ID,\n gameForumId: post.gameForumId,\n refresh,\n }\n return await this._dna_request(\"forum/moderator/setRefresh\", data)\n }\n\n async blockList() {\n return await this._dna_request<DNABlockBean>(\"user/block/list\")\n }\n\n async blockOther(blockPostId: number, blockUserId: string, type: number) {\n return await this._dna_request(\"user/block/other\", { blockPostId, blockUserId, type })\n }\n\n async collect(postId: number, toUserId: string, operateType = 1) {\n const data = { operateType, postId, toUserId }\n return await this._dna_request(\"forum/collect\", data)\n }\n\n async commentDelete(\n comment: { id: number; gameId: number; gameForumId: number },\n entityType: number,\n content: string,\n reasonCode: number,\n ) {\n const data = { id: comment.id, gameId: comment.gameId, gameForumId: comment.gameForumId, entityType, content, reasonCode }\n return await this._dna_request(\"forum/commentReplyDelete\", data)\n }\n\n async createComment(post: { userId: string; postId: string; gameForumId: number }, content: string) {\n const content_json = JSON.stringify([\n {\n content,\n contentType: \"1\",\n },\n ])\n const data = { postId: post.postId, forumId: post.gameForumId, postType: \"1\", content: content_json }\n return await this._dna_request<DNACreateCommentResponse>(\"forum/comment/createComment\", data, {\n sign: true,\n params: { toUserId: post.userId },\n })\n }\n\n async createReply(post: { userId: string; postId: string; postCommentId: string; gameForumId: number }, content: string) {\n const content_json = JSON.stringify([\n {\n content,\n contentType: \"1\",\n imgHeight: 0,\n imgWidth: 0,\n url: \"\",\n },\n ])\n const data = {\n content: content_json,\n forumId: post.gameForumId,\n postCommentId: post.postCommentId,\n postId: post.postId,\n postType: \"1\",\n toUserId: post.userId,\n }\n return await this._dna_request<DNAReplayCommentResponse>(\"forum/comment/createReply\", data, {\n sign: true,\n params: { toUserId: post.userId },\n })\n }\n\n async createReplyList(\n post: { userId: string; postId: string; postCommentId: string; postCommentReplyId: string; gameForumId: number },\n content: string,\n ) {\n const content_json = JSON.stringify([\n {\n content,\n contentType: \"1\",\n imgHeight: 0,\n imgWidth: 0,\n url: \"\",\n },\n ])\n const data = {\n content: content_json,\n forumId: post.gameForumId,\n postCommentId: post.postCommentId,\n postCommentReplyId: post.postCommentReplyId,\n postId: post.postId,\n postType: \"1\",\n toUserId: post.userId,\n }\n return await this._dna_request<DNAReplayCommentResponse>(\"forum/comment/createReply\", data, {\n sign: true,\n params: { toUserId: post.userId },\n })\n }\n\n async deletePost(deleteType: number, id: number) {\n return await this._dna_request(\"forum/more/delete\", { deleteType, id }, { sign: true, refer: true })\n }\n\n async followUser(followUserId: string, unfollow?: boolean) {\n const data = { followUserId, operateType: unfollow ? 0 : 1 }\n return await this._dna_request(\"user/followUser\", data, { sign: true })\n }\n\n async getFollowState(followUserId: string) {\n const data = { followUserId }\n return await this._dna_request<DNAFollowBean>(\"user/isFollow\", data)\n }\n\n async gameSignIn(dayAwardId: number, period: number) {\n const data = { dayAwardId, periodId: period, signinType: 1 }\n return await this._dna_request<DNAGameSignInResultBean>(\"encourage/signin/signin\", data, { sign: true })\n }\n\n async getDoujin(forumId: number) {\n return await this._dna_request<DNADiscussAreaResponse>(\"forum/discuss/getDoujin\", { forumId })\n }\n\n async getExchange(forumId: number) {\n return await this._dna_request<DNADiscussAreaResponse>(\"forum/discuss/getExchange\", { forumId })\n }\n\n async getGameBanner(gameId = DNA_GAME_ID) {\n return await this._dna_request<DNAGameBannerBean>(\"forum/gameBanner\", { gameId })\n }\n\n async getPostByTopic(\n topicId: number = 177,\n pageIndex: number = 1,\n pageSize: number = 20,\n searchType: number = 1,\n timeType: number = 0,\n ) {\n const data = {\n topicId,\n gameId: DNA_GAME_ID,\n pageIndex,\n pageSize,\n searchType,\n timeType,\n }\n return await this._dna_request<DNATopicListResponse>(\"forum/getPostByTopic\", data)\n }\n\n async getPostCommentList(postId: number, pageIndex: number = 1, pageSize: number = 20, isOnlyPublisher: number = 0) {\n return await this._dna_request<DNACommentListResponse>(\"forum/comment/getPostCommentList\", {\n postId,\n pageIndex,\n pageSize,\n isOnlyPublisher,\n })\n }\n\n async getPostDetail(postId: string) {\n return await this._dna_request<DNAPostDetailResponse>(\"forum/getPostDetail\", { postId })\n }\n\n async getPostList(forumId: number = 48, pageIndex: number = 1, pageSize: number = 20, searchType: number = 1, timeType: number = 0) {\n const data = {\n forumId: forumId,\n gameId: DNA_GAME_ID,\n pageIndex: pageIndex,\n pageSize: pageSize,\n searchType: searchType,\n timeType: timeType,\n }\n return await this._dna_request<DNADiscussAreaResponse>(\"forum/list\", data)\n }\n\n async getRankList(forumId: number) {\n return await this._dna_request<DNAFraternityResponse>(\"forum/discuss/getRank\", { forumId })\n }\n\n async getRecommendPosts(gameId = DNA_GAME_ID, pageIndex: number = 1, pageSize: number = 20) {\n return await this._dna_request<DNAHomeOffWaterResponse>(\"forum/getRecommendPosts\", { gameId, pageIndex, pageSize })\n }\n\n async getReplyList(postId: number, postCommentId: number, pageIndex: number = 1, pageSize: number = 20) {\n return await this._dna_request<DNAReplyListResponse>(\"forum/comment/getReplyList\", { postId, postCommentId, pageIndex, pageSize })\n }\n\n async getStatistics(gameId = DNA_GAME_ID) {\n return await this._dna_request<DNAStatisticsBean>(\"forum/statistics\", { gameId })\n }\n\n async getTips() {\n return await this._dna_request<DNATipsBean>(\"config/getTips\")\n }\n\n async getWalkthrough(forumId: number) {\n return await this._dna_request<DNADiscussAreaResponse>(\"forum/discuss/getWalkthrough\", { forumId })\n }\n\n async hotList(type: number = 1, gameId = DNA_GAME_ID) {\n return await this._dna_request<DNAPostListBean[]>(\"forum/hot/ranking/list\", { gameId, type })\n }\n\n async haveSignIn() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request<DNASignInBean>(\"user/haveSignInNew\", data)\n }\n\n async isRedPoint() {\n return await this._dna_request<DNAIsRedPointBean>(\"forum/dynamic/isRedPoint\")\n }\n\n async signCalendar() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request<DNAGameSignInShowDataBean>(\"encourage/signin/show\", data)\n }\n\n async like(post: { gameForumId: string; postId: string; postType: string; userId: string }) {\n const data = {\n forumId: post.gameForumId,\n gameId: DNA_GAME_ID,\n likeType: \"1\",\n operateType: \"1\",\n postCommentId: \"\",\n postCommentReplyId: \"\",\n postId: post.postId,\n postType: post.postType,\n toUserId: post.userId,\n }\n return await this._dna_request(\"forum/like\", data)\n }\n\n async lockPost(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, operateType }\n return await this._dna_request(\"forum/moderator/postLock\", data)\n }\n\n async postDownOrUp(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, operateType }\n return await this._dna_request(\"forum/moderator/postDownOrUp\", data)\n }\n\n async postElite(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, operateType }\n return await this._dna_request(\"forum/moderator/postElite\", data)\n }\n\n async postHide(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, operateType }\n return await this._dna_request(\"forum/moderator/postHide\", data)\n }\n\n async reRank(post: { postId: number; gameId?: number; gameForumId: number }, weight: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, weight }\n return await this._dna_request(\"forum/moderator/reRank\", data)\n }\n\n async receiveLog(periodId: number, pageIndex: number, pageSize: number) {\n const data = { periodId, pageIndex, pageSize }\n return await this._dna_request<DNAReceiveRecord>(\"encourage/signin/receiveLog\", data)\n }\n\n async recommendList(recIndex: number, newIndex: number, size: number, history: string, gameId = DNA_GAME_ID) {\n const data = { gameId, recIndex, newIndex, size, history }\n return await this._dna_request<DNARecommendBean>(\"forum/recommend/list\", data)\n }\n\n async report(\n { commentId = 0, postId = 0, replyId = 0 }: { commentId?: number; postId?: number; replyId?: number },\n reportReason = 1,\n reportType = 1,\n ) {\n const data = { commentId, postId, replyId, reportReason, reportType }\n return await this._dna_request(\"forum/more/report\", data)\n }\n\n async searchPost(keyword: string, pageIndex: number, pageSize: number, gameId = DNA_GAME_ID, searchType = 1) {\n const data = { gameId, keyword, pageIndex, pageSize, searchType }\n return await this._dna_request<DNASearchPostBean>(\"forum/searchPost\", data)\n }\n\n async searchTopic(keyword: string, pageIndex: number, pageSize = 20, gameId = DNA_GAME_ID) {\n const data = { gameId, keyword, pageIndex, pageSize }\n return await this._dna_request<DNASearchTopicBean>(\"forum/searchPost\", data)\n }\n\n async searchUser(keyword: string, pageIndex: number, pageSize: number) {\n const data = { keyword, pageIndex, pageSize }\n return await this._dna_request<DNASearchUserBean>(\"forum/searchPost\", data)\n }\n\n async shareTask() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request(\"encourage/level/shareTask\", data)\n }\n\n async bbsSign() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request<DNASignInBean>(\"user/signIn\", data)\n }\n\n async strongRecommend(post: { postId: number; gameId?: number; gameForumId: number }, operateType = 1) {\n const data = {\n postId: post.postId,\n gameId: post.gameId ?? DNA_GAME_ID,\n gameForumId: post.gameForumId,\n operateType: operateType,\n }\n return await this._dna_request(\"forum/moderator/setForceRecommend\", data)\n }\n\n async viewCommunity() {\n return await this._dna_request(\"encourage/level/viewCommunity\")\n }\n\n async viewCount(postId: number, gameId = DNA_GAME_ID) {\n return await this._dna_request(\"forum/viewCount\", { gameId, postId })\n }\n\n async getTaskProcess() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request<DNAUserTaskProcessEntity>(\"encourage/level/getTaskProcess\", data)\n }\n\n async soulTask() {\n return await this._dna_request<DNASoulTaskBean>(\"role/soul/task\")\n }\n}\n",
10
- "import { DNASubModule, DNABaseAPI } from \"./base\"\nimport {\n DNARoleEntityForTrend,\n DNARoleListBean,\n DNAMineFansBean,\n DNAMineFollowBean,\n DNADraftBean,\n DNAFastBindResultBean,\n DNABindStatus,\n DNAProfileResponse,\n DNAProfileLoadResponse,\n DNANotifySwitchEntity,\n DNAHistoryBean,\n DNAAcewarBean,\n DNAModeratorByGame,\n} from \"../type-generated\"\n\nexport class ProfileAPI extends DNASubModule {\n constructor(base: DNABaseAPI) {\n super(base)\n }\n async blackUser(toUserId: string, type: number) {\n return await this._dna_request(\"user/blackUser\", { toUserId, type })\n }\n\n async cleanFansNew(type: number, userFollowId: string) {\n return await this._dna_request(\"user/cleanFansNew\", { type, userFollowId })\n }\n\n async collect(postId: number, toUserId: string, operateType = 1) {\n return await this._dna_request(\"forum/collect\", { operateType, postId, toUserId })\n }\n\n async defaultRole(otherUserId?: string, type: number = 1) {\n return await this._dna_request<DNARoleEntityForTrend>(\"user/defaultRole\", { otherUserId, type })\n }\n\n async deleteRole(roleBoundId: string) {\n return await this._dna_request<DNARoleListBean>(\"role/remove\", { roleBoundId })\n }\n\n async draftDelete(draftId: string) {\n return await this._dna_request(\"forum/more/draftDelete\", { draftId })\n }\n\n async fans(otherUserId: string, pageNo: number, pageSize: number, type: number) {\n return await this._dna_request<DNAMineFansBean>(\"user/fans\", { otherUserId, pageNo, pageSize, type })\n }\n\n async fastBind() {\n return await this._dna_request<DNAFastBindResultBean>(\"role/quickBound\")\n }\n\n async follow(otherUserId: string, pageNo: number, pageSize: number, type: number) {\n return await this._dna_request<DNAMineFollowBean>(\"user/follow\", { otherUserId, pageNo, pageSize, type })\n }\n\n async followUser(followUserId: string, unfollow?: boolean) {\n return await this._dna_request(\"user/followUser\", { followUserId, operateType: unfollow ? 0 : 1 })\n }\n\n async getApplyStatus() {\n return await this._dna_request<DNABindStatus>(\"user/creator/getApplyStatus\")\n }\n\n async getDraftList(pageIndex: number, pageSize: number) {\n return await this._dna_request<DNADraftBean>(\"forum/getDraftList\", { pageIndex, pageSize })\n }\n\n async getMineComment(otherUserId: string, pageIndex: number, pageSize: number, type: number) {\n return await this._dna_request<DNAProfileResponse>(\"user/notice/mine\", { otherUserId, pageIndex, pageSize, type })\n }\n\n async getMinePost(otherUserId: string, pageIndex: number, pageSize: number, searchType: number, type: number, postType?: number) {\n return await this._dna_request<DNAProfileLoadResponse>(\"forum/getMinePost\", {\n otherUserId,\n pageIndex,\n pageSize,\n searchType,\n type,\n postType,\n })\n }\n\n async getNotifySwitch() {\n return await this._dna_request<DNANotifySwitchEntity>(\"user/push/getSwitchStatus\")\n }\n\n async historyView(pageIndex: number, pageSize: number) {\n return await this._dna_request<DNAHistoryBean>(\"forum/historyView\", { pageIndex, pageSize })\n }\n\n async like(data: {\n forumId: number\n gameId: number\n likeType: number\n operateType: number\n postCommentId: number\n postCommentReplyId: number\n postId: number\n postType: number\n toUserId: string\n }) {\n return await this._dna_request(\"forum/like\", data)\n }\n\n async manualBound(roleId: string, type: number, code: string) {\n return await this._dna_request<DNAAcewarBean>(\"role/manualBound\", { roleId, type, code })\n }\n\n async mine(otherUserId: string, searchType: number, type: number, postType?: number) {\n const data: Record<string, any> = { otherUserId, searchType, type, postType }\n if (!otherUserId) {\n delete data.otherUserId\n }\n return await this._dna_request<DNAProfileResponse>(\"user/mine\", data)\n }\n\n async mineV2(otherUserId: string) {\n return await this._dna_request<DNAProfileResponse>(\"user/mineV2\", { otherUserId })\n }\n\n async moderatorByGame(gameId: number) {\n return await this._dna_request<DNAModeratorByGame>(\"user/moderator/getModeratorByGame\", { gameId })\n }\n\n async muteCancel(toUserId: string) {\n return await this._dna_request(\"forum/moderator/muteCancel\", { toUserId })\n }\n\n async muteUser(toUserId: string, gameIdStr: string, type: number, reason: number, content: string) {\n return await this._dna_request(\"forum/moderator/muteUser\", { toUserId, gameIdStr, type, reason, content })\n }\n\n async resetDefault(roleBoundId: string) {\n return await this._dna_request<DNARoleListBean>(\"role/resetDefault\", { roleBoundId })\n }\n\n async roleManager() {\n return await this._dna_request<DNARoleListBean>(\"role/list\")\n }\n}\n",
11
- "import { DNASubModule, DNABaseAPI } from \"./base\"\nimport {\n DNACancleStatus,\n DNACommonBooleanBean,\n DNAPrivateSetBean,\n DNAUserAddressBean,\n DNAsettingBlackBean,\n DNAsettingMsgShiledBean,\n DNAsettingPostShiledBean,\n DNANotifySwitchEntity,\n} from \"../type-generated\"\n\nexport class SettingAPI extends DNASubModule {\n constructor(base: DNABaseAPI) {\n super(base)\n }\n async addAddress(receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this._dna_request(\"user/more/userAddressAdd\", { receiverName, receiverMobile, receiverAddress })\n }\n\n async blackUser(toUserId: string, type: number) {\n return await this._dna_request(\"user/blackUser\", { toUserId, type })\n }\n\n async cancelCode(code: string) {\n return await this._dna_request(\"user/more/cancelCode\", { code })\n }\n\n async cancel(cancelType: number, operateType: number, position: string, cancelReason: number | null, reasonDetail: string) {\n return await this._dna_request(\"user/more/cancel\", { cancelType, operateType, position, cancelReason, reasonDetail })\n }\n\n async deleteAddress(addressId: number) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/deleteUserAddress\", { addressId })\n }\n\n async editAddress(addressId: number, receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/userAddressEdit\", {\n addressId,\n receiverName,\n receiverMobile,\n receiverAddress,\n })\n }\n\n async feedback(listPic: string, proDesc: string, mobile: string, isLogin: number) {\n return await this._dna_request(\"user/more/feedback\", { listPic, proDesc, mobile, isLogin })\n }\n\n async getCancelStatus() {\n return await this._dna_request<DNACancleStatus>(\"user/more/getCancelStatus\")\n }\n\n async getNotifySwitch() {\n return await this._dna_request<DNANotifySwitchEntity>(\"user/push/getSwitchStatus\")\n }\n\n async getPrivateSet() {\n return await this._dna_request<DNAPrivateSetBean>(\"user/getPrivateSet\")\n }\n\n async getUserAddress(userId: number, type: number) {\n return await this._dna_request<DNAUserAddressBean>(\"user/more/getUserAddress\", { userId, type })\n }\n\n async getUserBlackList(pageIndex: number, pageSize: number) {\n return await this._dna_request<DNAsettingBlackBean>(\"user/getUserBlackList\", { pageIndex, pageSize })\n }\n\n async msgListDetail(pageNo: number, pageSize: number, type: number) {\n return await this._dna_request<DNAsettingMsgShiledBean>(\"user/block/listDetail\", { pageNo, pageSize, type })\n }\n\n async postListDetail(pageNo: number, pageSize: number, type: number) {\n return await this._dna_request<DNAsettingPostShiledBean>(\"user/block/listDetail\", { pageNo, pageSize, type })\n }\n\n async privateSet(operateType: number, option: number) {\n return await this._dna_request(\"user/privateSet\", { operateType, option })\n }\n\n async sendSms(mobile: string, timeStamp: string, type: number) {\n return await this._dna_request(\"user/sms/sendSms\", { mobile, timeStamp, type })\n }\n\n async setDefaultAddress(addressId: number) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/setDefaultAddress\", { addressId })\n }\n\n async setNotifySwitch(operateType: number, switchType: number) {\n return await this._dna_request(\"user/push/updateSwitchStatus\", { operateType, switchType })\n }\n\n async uploadFeedBack(file: File) {\n const data = new FormData()\n data.append(\"parts\", file)\n return await this.fileUpload(\"user/img/uploadFeedBack\", data)\n }\n}\n",
12
- "import { DNASubModule, DNABaseAPI } from \"./base\"\nimport {\n DNATopicListBean,\n DNAParseLinkBean,\n DNAPostPublishPageBean,\n DNAPublishPostResponse,\n DNARecomdBean,\n DNATrendPostBean,\n DNAVodTokenBean,\n DNATipsBean,\n DNACommonBooleanBean,\n} from \"../type-generated\"\n\nexport class TrendAPI extends DNASubModule {\n constructor(base: DNABaseAPI) {\n super(base)\n }\n async draftSave(\n content: string,\n draftId: string,\n h5Content: string,\n postTitle: string,\n postType: number,\n gameId: number,\n videoReUpload: number,\n ) {\n return await this._dna_request(\"forum/draftSave\", { content, draftId, h5Content, postTitle, postType, gameId, videoReUpload })\n }\n\n async followUser(followUserId: string, operateType: number) {\n return await this._dna_request(\"user/followUser\", { followUserId, operateType })\n }\n\n async getConfigTopicByGameId(name: string, showType: number) {\n return await this._dna_request<DNATopicListBean[]>(\"config/getConfigTopicByGameId\", { name, showType })\n }\n\n async getPostPublishPage() {\n return await this._dna_request<DNAPostPublishPageBean>(\"forum/getPostPublishPage\")\n }\n\n async getRecommend(history: string, pageSize: number) {\n return await this._dna_request<DNARecomdBean>(\"user/getRecommend\", { history, pageSize })\n }\n\n async getTips() {\n return await this._dna_request<DNATipsBean>(\"config/getTips\")\n }\n\n async getVodToken(fileName: string, title: string) {\n return await this._dna_request<DNAVodTokenBean>(\"forum/getVodToken\", { fileName, title })\n }\n\n async like(\n forumId: number,\n gameId: number,\n likeType: number,\n operateType: number,\n postCommentId: number,\n postCommentReplyId: number,\n postId: number,\n postType: number,\n toUserId: string,\n ) {\n return await this._dna_request(\"forum/like\", {\n forumId,\n gameId,\n likeType,\n operateType,\n postCommentId,\n postCommentReplyId,\n postId,\n postType,\n toUserId,\n })\n }\n\n async list(pageIndex: number, pageSize: number, userId: string) {\n return await this._dna_request<DNATrendPostBean>(\"forum/dynamic/list\", { pageIndex, pageSize, userId })\n }\n\n async parseLink(link: string) {\n return await this._dna_request<DNAParseLinkBean>(\"forum/parseLink\", { link })\n }\n\n async posAdminEdit(\n content: string,\n gameForumId: number,\n h5Content: string,\n postId: string,\n postTitle: string,\n topics: string,\n postType: number,\n gameId: number,\n videoReUpload: number,\n ) {\n return await this._dna_request<DNAPublishPostResponse>(\"forum/moderator/postEdit\", {\n content,\n gameForumId,\n h5Content,\n postId,\n postTitle,\n topics,\n postType,\n gameId,\n videoReUpload,\n })\n }\n\n async postEdit(\n content: string,\n gameForumId: number,\n h5Content: string,\n postId: string,\n postTitle: string,\n topics: string,\n postType: number,\n videoReUpload: number,\n ) {\n return await this._dna_request<DNAPublishPostResponse>(\"forum/postEdit\", {\n content,\n gameForumId,\n h5Content,\n postId,\n postTitle,\n topics,\n postType,\n videoReUpload,\n })\n }\n\n async postPublish(\n content: string,\n draftId: string,\n gameForumId: number,\n gameId: number,\n h5Content: string,\n postTitle: string,\n postType: number,\n topics: string,\n ) {\n return await this._dna_request<DNAPublishPostResponse>(\"forum/postPublish\", {\n content,\n draftId,\n gameForumId,\n gameId,\n h5Content,\n postTitle,\n postType,\n topics,\n })\n }\n\n async safeCheck(url: string) {\n return await this._dna_request<DNACommonBooleanBean>(\"forum/more/safeCheck\", { url })\n }\n\n /**\n * 图片上传\n */\n async uploadImage(file: File) {\n const data = new FormData()\n data.append(\"files\", file)\n data.append(\"type\", \"post\")\n return await this.fileUpload(\"config/img/upload\", data)\n }\n\n async videoPostPublish(\n content: string,\n draftId: string,\n gameForumId: number,\n gameId: number,\n h5Content: string,\n postTitle: string,\n postType: number,\n topics: string,\n ) {\n return await this._dna_request<DNAPublishPostResponse>(\"forum/moderator/postPublish\", {\n content,\n draftId,\n gameForumId,\n gameId,\n h5Content,\n postTitle,\n postType,\n topics,\n })\n }\n\n async viewCount(gameId: number, postId: number) {\n return await this._dna_request(\"forum/viewCount\", { gameId, postId })\n }\n}\n",
7
+ "import { RespCode, TimeBasicResponse } from \"../TimeBasicResponse\"\nimport type { DNACommonConfigEntity } from \"../type-generated\"\nimport { aesDecryptImageUrl, build_signature, build_upload_signature, type HeadersPayload, type RequestOptions, rsa_encrypt } from \"./utils\"\n\nexport class DNABaseAPI {\n public fetchFn?: typeof fetch\n public is_h5 = false\n public RSA_PUBLIC_KEY =\n \"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGpdbezK+eknQZQzPOjp8mr/dP+QHwk8CRkQh6C6qFnfLH3tiyl0pnt3dePuFDnM1PUXGhCkQ157ePJCQgkDU2+mimDmXh0oLFn9zuWSp+U8uLSLX3t3PpJ8TmNCROfUDWvzdbnShqg7JfDmnrOJz49qd234W84nrfTHbzdqeigQIDAQAB\"\n public BASE_URL = \"https://dnabbs-api.yingxiong.com/\"\n public uploadKey: string = \"\"\n public sign_api_urls = new Set<string>()\n\n constructor(\n public dev_code: string,\n public token = \"\",\n options: { fetchFn?: typeof fetch; is_h5?: boolean; rsa_public_key?: string } = {}\n ) {\n this.fetchFn = options.fetchFn\n if (options.is_h5 !== undefined) this.is_h5 = options.is_h5\n if (options.rsa_public_key !== undefined) this.RSA_PUBLIC_KEY = options.rsa_public_key\n }\n\n async fileUpload(url: string, data: FormData) {\n const res = await this._dna_request<string[]>(url, data, { sign: true })\n if (res.is_success && res.data) {\n res.data = res.data.map(url => aesDecryptImageUrl(url, this.uploadKey))\n }\n return res\n }\n\n async getRsaPublicKey() {\n if (this.RSA_PUBLIC_KEY) {\n return this.RSA_PUBLIC_KEY\n }\n const res = await this._dna_request<{ key: string }>(\"config/getRsaPublicKey\")\n\n if (res.is_success && res.data) {\n const key = res.data.key\n if (typeof key === \"string\") {\n this.RSA_PUBLIC_KEY = key\n }\n }\n return this.RSA_PUBLIC_KEY\n }\n\n public async getHeaders(options?: {\n payload?: Record<string, any> | string | FormData\n exparams?: Record<string, any>\n dev_code?: string\n refer?: boolean\n token?: string\n tokenSig?: boolean\n h5?: boolean\n }): Promise<HeadersPayload> {\n let { payload, exparams, dev_code = this.dev_code, refer, token = this.token, tokenSig, h5 } = options || {}\n\n const CONTENT_TYPE = \"application/x-www-form-urlencoded; charset=utf-8\"\n const iosBaseHeader = {\n version: \"1.1.3\",\n source: \"ios\",\n \"Content-Type\": CONTENT_TYPE,\n \"User-Agent\": \"DoubleHelix/4 CFNetwork/3860.100.1 Darwin/25.0.0\",\n }\n const h5BaseHeader = {\n version: \"3.11.0\",\n source: \"h5\",\n \"Content-Type\": CONTENT_TYPE,\n \"User-Agent\":\n \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36\",\n }\n const is_h5 = this.is_h5 || h5 || false\n const headers = { ...(is_h5 ? h5BaseHeader : iosBaseHeader) } as Record<string, any>\n if (dev_code) {\n headers.devCode = dev_code\n }\n if (refer || is_h5) {\n headers.origin = \"https://dnabbs.yingxiong.com\"\n headers.refer = \"https://dnabbs.yingxiong.com/\"\n }\n if (token) {\n headers.token = token\n }\n if (payload instanceof FormData) {\n const pk = await this.getRsaPublicKey()\n const { signature, key } = build_upload_signature(pk)\n headers.t = signature\n this.uploadKey = key\n\n if (exparams) {\n for (const [key, value] of Object.entries(exparams)) {\n payload.append(key, String(value))\n }\n }\n\n delete headers[\"Content-Type\"]\n } else if (typeof payload === \"object\") {\n const si = build_signature(payload, tokenSig ? token : \"\")\n Object.assign(payload, { sign: si.s, timestamp: si.t })\n if (exparams) {\n Object.assign(payload, exparams)\n }\n\n const params = new URLSearchParams()\n Object.entries(payload).forEach(([key, value]) => {\n params.append(key, String(value))\n })\n payload = params.toString()\n\n const rk = si.k\n const pk = await this.getRsaPublicKey()\n const ek = rsa_encrypt(rk, pk)\n if (this.is_h5) {\n headers.k = ek\n } else {\n headers.rk = rk\n headers.key = ek\n }\n }\n return { headers, payload }\n }\n\n async needSign(url: string): Promise<boolean> {\n if (this.sign_api_urls.size === 0) {\n try {\n await this.initializeSignConfig()\n } catch (error) {\n console.error(\"初始化签名配置失败:\", error)\n this.sign_api_urls = new Set(\n [\n \"/user/sdkLogin\",\n \"/forum/postPublish\",\n \"/forum/comment/createComment\",\n \"/forum/comment/createReply\",\n \"/user/getSmsCode\",\n \"/role/defaultRoleForTool\",\n \"/media/av/cfg/getVideos\",\n \"/media/av/cfg/getAudios\",\n \"/media/av/cfg/getImages\",\n \"/encourage/signin/signin\",\n ].map(item => item.replace(/^\\/+/, \"\"))\n )\n }\n }\n return this.sign_api_urls.has(url)\n }\n\n async initializeSignConfig(): Promise<void> {\n try {\n const configRes = await this._dna_request<DNACommonConfigEntity>(\"config/getCommonConfig\", undefined, { sign: false })\n if (configRes.is_success && configRes.data?.signApiConfigVo?.signApiList) {\n this.sign_api_urls = new Set(configRes.data.signApiConfigVo.signApiList.map(item => item.replace(/^\\/+/, \"\")))\n }\n } catch (error) {\n console.error(\"初始化签名配置失败:\", error)\n }\n }\n\n public async _dna_request_h5<T = any>(url: string, data?: any, options?: RequestOptions): Promise<TimeBasicResponse<T>> {\n return await this._dna_request(url, data, { ...options, h5: true })\n }\n\n public async _dna_request<T = any>(url: string, data?: any, options?: RequestOptions): Promise<TimeBasicResponse<T>> {\n let { method = \"POST\", sign, h5, refer, params, max_retries = 3, retry_delay = 1, timeout = 10000, token, tokenSig } = options || {}\n\n // 如果未明确指定 sign,则根据 URL 自动判断\n if (sign === undefined && (await this.needSign(url))) {\n sign = true\n }\n let headers: Record<string, any>\n if (sign) {\n const { payload: p, headers: h } = await this.getHeaders({\n payload: data,\n refer,\n exparams: params,\n token: token ? this.token : undefined,\n tokenSig,\n h5,\n })\n data = p\n headers = h\n } else {\n const { headers: h } = await this.getHeaders({ token: token ? this.token : undefined, refer, h5 })\n headers = h\n }\n\n for (let attempt = 0; attempt < max_retries; attempt++) {\n try {\n let body: string | FormData | undefined = data\n if (data && typeof data === \"object\" && !(data instanceof FormData)) {\n const p = new URLSearchParams()\n Object.entries(data).forEach(([key, value]) => {\n if (value !== undefined) p.append(key, String(value))\n })\n body = p.toString()\n }\n const fetchOptions: RequestInit = {\n method,\n headers,\n body,\n }\n\n const controller = new AbortController()\n const timeoutId = setTimeout(() => controller.abort(), timeout)\n\n const initOptions = {\n ...fetchOptions,\n signal: controller.signal,\n }\n const response = this.fetchFn\n ? await this.fetchFn(`${this.BASE_URL}${url}`, initOptions)\n : await fetch(`${this.BASE_URL}${url}`, initOptions)\n clearTimeout(timeoutId)\n\n const contentType = response.headers.get(\"content-type\") || \"\"\n let raw_res: any\n\n if (contentType.includes(\"text/\")) {\n const textData = await response.text()\n raw_res = {\n code: RespCode.ERROR,\n data: textData,\n }\n } else {\n raw_res = await response.json()\n }\n\n if (typeof raw_res === \"object\" && raw_res !== null) {\n try {\n if (typeof raw_res.data === \"string\") {\n raw_res.data = JSON.parse(raw_res.data)\n }\n } catch {}\n }\n\n return new TimeBasicResponse<T>(raw_res)\n } catch (e) {\n console.error(`请求失败: ${(e as Error).message}`)\n if (attempt < max_retries - 1) {\n await new Promise(resolve => setTimeout(resolve, retry_delay * 2 ** attempt))\n }\n }\n }\n\n return TimeBasicResponse.err(\"请求服务器失败,已达最大重试次数\")\n }\n}\n\n/**\n * 子模块基类,代理 DNABaseAPI 的方法和属性\n * 所有子模块都通过这个类代理到共享的 BaseAPI 实例\n */\nexport abstract class DNASubModule {\n protected _base: DNABaseAPI\n\n constructor(base: DNABaseAPI) {\n this._base = base\n }\n\n // 代理属性访问\n get dev_code(): string {\n return this._base.dev_code\n }\n\n get token(): string {\n return this._base.token\n }\n set token(value: string) {\n this._base.token = value\n }\n\n get fetchFn(): typeof fetch | undefined {\n return this._base.fetchFn\n }\n\n get is_h5(): boolean {\n return this._base.is_h5\n }\n\n get RSA_PUBLIC_KEY(): string {\n return this._base.RSA_PUBLIC_KEY\n }\n\n get BASE_URL(): string {\n return this._base.BASE_URL\n }\n\n get uploadKey(): string {\n return this._base.uploadKey\n }\n\n // 代理方法\n async getRsaPublicKey(): Promise<string> {\n return this._base.getRsaPublicKey()\n }\n\n /**\n * 图片上传\n */\n async fileUpload(url: string, data: FormData) {\n return await this._base.fileUpload(url, data)\n }\n\n public async _dna_request<T = any>(url: string, data?: any, options?: RequestOptions): Promise<TimeBasicResponse<T>> {\n return this._base._dna_request(url, data, options)\n }\n\n public async _dna_request_h5<T = any>(url: string, data?: any, options?: RequestOptions): Promise<TimeBasicResponse<T>> {\n return this._base._dna_request_h5(url, data, options)\n }\n\n public async getHeaders(options?: {\n payload?: Record<string, any> | string | FormData\n exparams?: Record<string, any>\n dev_code?: string\n refer?: boolean\n token?: string\n tokenSig?: boolean\n h5?: boolean\n }): Promise<HeadersPayload> {\n return this._base.getHeaders(options)\n }\n}\n",
8
+ "import type {\n DNACharDetailEntity,\n DNAPushStringBean,\n DNARoleEntity,\n DNAShortNoteEntity,\n DNASoulTaskBean,\n DNAWeaponDetailEntity,\n} from \"../type-generated\"\nimport { DNASubModule } from \"./base\"\n\nexport class GameAPI extends DNASubModule {\n async defaultRoleForTool(type: number = 1, otherUserId?: string) {\n const data = { otherUserId, type }\n if (!otherUserId) {\n delete data.otherUserId\n }\n return await this._dna_request<DNARoleEntity>(\"role/defaultRoleForTool\", data, { sign: true, token: true, tokenSig: true })\n }\n\n async getMhSwitchStatus() {\n return await this._dna_request<DNAPushStringBean>(\"user/push/getMhSwitchStatus\")\n }\n\n async getRoleDetail(char_id: number | string, char_eid: string, otherUserId?: string) {\n const data = { charId: char_id, charEid: char_eid, type: 1, otherUserId }\n return await this._dna_request<DNACharDetailEntity>(\"role/getCharDetail\", data)\n }\n\n async getShortNoteInfo() {\n return await this._dna_request<DNAShortNoteEntity>(\"role/getShortNoteInfo\")\n }\n\n async getWeaponDetail(weapon_id: number | string, weapon_eid: string, otherUserId?: string) {\n const data = { weaponId: weapon_id, weaponEid: weapon_eid, type: 1, otherUserId }\n return await this._dna_request<DNAWeaponDetailEntity>(\"role/getWeaponDetail\", data)\n }\n\n async updateMhSwitchStatus(config: string) {\n return await this._dna_request(\"user/push/updateMhSwitchStatus\", { config })\n }\n\n async soulTask() {\n return await this._dna_request<DNASoulTaskBean>(\"role/soul/task\")\n }\n}\n",
9
+ "import type {\n DNABlockBean,\n DNACommentListResponse,\n DNACreateCommentResponse,\n DNADiscussAreaResponse,\n DNAFollowBean,\n DNAFraternityResponse,\n DNAGameBannerBean,\n DNAGameSignInResultBean,\n DNAGameSignInShowDataBean,\n DNAHomeOffWaterResponse,\n DNAIsRedPointBean,\n DNAPostDetailResponse,\n DNAPostListBean,\n DNAReceiveRecord,\n DNARecommendBean,\n DNAReplayCommentResponse,\n DNAReplyListResponse,\n DNASearchPostBean,\n DNASearchTopicBean,\n DNASearchUserBean,\n DNASignInBean,\n DNASoulTaskBean,\n DNAStatisticsBean,\n DNATipsBean,\n DNATopicListResponse,\n DNAUserTaskProcessEntity,\n} from \"../type-generated\"\nimport { DNASubModule } from \"./base\"\n\nconst DNA_GAME_ID = 268\n\nexport class HomeAPI extends DNASubModule {\n async adminAdjustScore(postId: number, gameForumId: number, weight: string, gameId: number = DNA_GAME_ID) {\n const data = { postId, gameId: gameId ?? DNA_GAME_ID, gameForumId, weight }\n return await this._dna_request(\"forum/moderator/setPostWeight\", data)\n }\n\n async adminDelete(post: { postId: number; gameId?: number; gameForumId: number }, content: string, reasonCode: number) {\n const data = {\n postId: post.postId,\n gameId: post.gameId ?? DNA_GAME_ID,\n gameForumId: post.gameForumId,\n content: content,\n reasonCode: reasonCode,\n }\n return await this._dna_request(\"forum/moderator/postDelete\", data)\n }\n\n async adminMovePost(\n post: { postId: number; gameId?: number; gameForumId: number },\n newGameId: number,\n newForumId: number,\n newTopicIdStr: string\n ) {\n const data = {\n postId: post.postId,\n gameId: post.gameId ?? DNA_GAME_ID,\n gameForumId: post.gameForumId,\n newGameId,\n newForumId,\n newTopicIdStr,\n }\n return await this._dna_request(\"forum/moderator/postMove\", data)\n }\n\n async adminRefreshTime(post: { postId: number; gameId?: number; gameForumId: number }, refresh: number) {\n const data = {\n postId: post.postId,\n gameId: post.gameId ?? DNA_GAME_ID,\n gameForumId: post.gameForumId,\n refresh,\n }\n return await this._dna_request(\"forum/moderator/setRefresh\", data)\n }\n\n async blockList() {\n return await this._dna_request<DNABlockBean>(\"user/block/list\")\n }\n\n async blockOther(blockPostId: number, blockUserId: string, type: number) {\n return await this._dna_request(\"user/block/other\", { blockPostId, blockUserId, type })\n }\n\n async collect(postId: number, toUserId: string, operateType = 1) {\n const data = { operateType, postId, toUserId }\n return await this._dna_request(\"forum/collect\", data)\n }\n\n async commentDelete(\n comment: { id: number; gameId: number; gameForumId: number },\n entityType: number,\n content: string,\n reasonCode: number\n ) {\n const data = { id: comment.id, gameId: comment.gameId, gameForumId: comment.gameForumId, entityType, content, reasonCode }\n return await this._dna_request(\"forum/commentReplyDelete\", data)\n }\n\n async createComment(post: { userId: string; postId: string; gameForumId: number }, content: string) {\n const content_json = JSON.stringify([\n {\n content,\n contentType: \"1\",\n },\n ])\n const data = { postId: post.postId, forumId: post.gameForumId, postType: \"1\", content: content_json }\n return await this._dna_request<DNACreateCommentResponse>(\"forum/comment/createComment\", data, {\n sign: true,\n params: { toUserId: post.userId },\n })\n }\n\n async createReply(post: { userId: string; postId: string; postCommentId: string; gameForumId: number }, content: string) {\n const content_json = JSON.stringify([\n {\n content,\n contentType: \"1\",\n imgHeight: 0,\n imgWidth: 0,\n url: \"\",\n },\n ])\n const data = {\n content: content_json,\n forumId: post.gameForumId,\n postCommentId: post.postCommentId,\n postId: post.postId,\n postType: \"1\",\n toUserId: post.userId,\n }\n return await this._dna_request<DNAReplayCommentResponse>(\"forum/comment/createReply\", data, {\n sign: true,\n params: { toUserId: post.userId },\n })\n }\n\n async createReplyList(\n post: { userId: string; postId: string; postCommentId: string; postCommentReplyId: string; gameForumId: number },\n content: string\n ) {\n const content_json = JSON.stringify([\n {\n content,\n contentType: \"1\",\n imgHeight: 0,\n imgWidth: 0,\n url: \"\",\n },\n ])\n const data = {\n content: content_json,\n forumId: post.gameForumId,\n postCommentId: post.postCommentId,\n postCommentReplyId: post.postCommentReplyId,\n postId: post.postId,\n postType: \"1\",\n toUserId: post.userId,\n }\n return await this._dna_request<DNAReplayCommentResponse>(\"forum/comment/createReply\", data, {\n sign: true,\n params: { toUserId: post.userId },\n })\n }\n\n async deletePost(deleteType: number, id: number) {\n return await this._dna_request(\"forum/more/delete\", { deleteType, id }, { sign: true, refer: true })\n }\n\n async followUser(followUserId: string, unfollow?: boolean) {\n const data = { followUserId, operateType: unfollow ? 0 : 1 }\n return await this._dna_request(\"user/followUser\", data, { sign: true })\n }\n\n async getFollowState(followUserId: string) {\n const data = { followUserId }\n return await this._dna_request<DNAFollowBean>(\"user/isFollow\", data)\n }\n\n async gameSignIn(dayAwardId: number, period: number) {\n const data = { dayAwardId, periodId: period, signinType: 1 }\n return await this._dna_request<DNAGameSignInResultBean>(\"encourage/signin/signin\", data, { sign: true, tokenSig: true })\n }\n\n async getDoujin(forumId: number) {\n return await this._dna_request<DNADiscussAreaResponse>(\"forum/discuss/getDoujin\", { forumId })\n }\n\n async getExchange(forumId: number) {\n return await this._dna_request<DNADiscussAreaResponse>(\"forum/discuss/getExchange\", { forumId })\n }\n\n async getGameBanner(gameId = DNA_GAME_ID) {\n return await this._dna_request<DNAGameBannerBean>(\"forum/gameBanner\", { gameId })\n }\n\n async getPostByTopic(\n topicId: number = 177,\n pageIndex: number = 1,\n pageSize: number = 20,\n searchType: number = 1,\n timeType: number = 0\n ) {\n const data = {\n topicId,\n gameId: DNA_GAME_ID,\n pageIndex,\n pageSize,\n searchType,\n timeType,\n }\n return await this._dna_request<DNATopicListResponse>(\"forum/getPostByTopic\", data)\n }\n\n async getPostCommentList(postId: number, pageIndex: number = 1, pageSize: number = 20, isOnlyPublisher: number = 0) {\n return await this._dna_request<DNACommentListResponse>(\"forum/comment/getPostCommentList\", {\n postId,\n pageIndex,\n pageSize,\n isOnlyPublisher,\n })\n }\n\n async getPostDetail(postId: string | number) {\n return await this._dna_request<DNAPostDetailResponse>(\"forum/getPostDetail\", { postId })\n }\n\n async getPostList(forumId: number = 48, pageIndex: number = 1, pageSize: number = 20, searchType: number = 1, timeType: number = 0) {\n const data = {\n forumId: forumId,\n gameId: DNA_GAME_ID,\n pageIndex: pageIndex,\n pageSize: pageSize,\n searchType: searchType,\n timeType: timeType,\n }\n return await this._dna_request<DNADiscussAreaResponse>(\"forum/list\", data)\n }\n\n async getRankList(forumId: number) {\n return await this._dna_request<DNAFraternityResponse>(\"forum/discuss/getRank\", { forumId })\n }\n\n async getRecommendPosts(gameId = DNA_GAME_ID, pageIndex: number = 1, pageSize: number = 20) {\n return await this._dna_request<DNAHomeOffWaterResponse>(\"forum/getRecommendPosts\", { gameId, pageIndex, pageSize })\n }\n\n async getReplyList(postId: number, postCommentId: number, pageIndex: number = 1, pageSize: number = 20) {\n return await this._dna_request<DNAReplyListResponse>(\"forum/comment/getReplyList\", { postId, postCommentId, pageIndex, pageSize })\n }\n\n async getStatistics(gameId = DNA_GAME_ID) {\n return await this._dna_request<DNAStatisticsBean>(\"forum/statistics\", { gameId })\n }\n\n async getTips() {\n return await this._dna_request<DNATipsBean>(\"config/getTips\")\n }\n\n async getWalkthrough(forumId: number) {\n return await this._dna_request<DNADiscussAreaResponse>(\"forum/discuss/getWalkthrough\", { forumId })\n }\n\n async hotList(type: number = 1, gameId = DNA_GAME_ID) {\n return await this._dna_request<DNAPostListBean[]>(\"forum/hot/ranking/list\", { gameId, type })\n }\n\n async haveSignIn() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request<DNASignInBean>(\"user/haveSignInNew\", data)\n }\n\n async isRedPoint() {\n return await this._dna_request<DNAIsRedPointBean>(\"forum/dynamic/isRedPoint\")\n }\n\n async signCalendar() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request<DNAGameSignInShowDataBean>(\"encourage/signin/show\", data)\n }\n\n async like(post: { gameForumId: string; postId: string; postType: string; userId: string }) {\n const data = {\n forumId: post.gameForumId,\n gameId: DNA_GAME_ID,\n likeType: \"1\",\n operateType: \"1\",\n postCommentId: \"\",\n postCommentReplyId: \"\",\n postId: post.postId,\n postType: post.postType,\n toUserId: post.userId,\n }\n return await this._dna_request(\"forum/like\", data)\n }\n\n async lockPost(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, operateType }\n return await this._dna_request(\"forum/moderator/postLock\", data)\n }\n\n async postDownOrUp(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, operateType }\n return await this._dna_request(\"forum/moderator/postDownOrUp\", data)\n }\n\n async postElite(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, operateType }\n return await this._dna_request(\"forum/moderator/postElite\", data)\n }\n\n async postHide(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, operateType }\n return await this._dna_request(\"forum/moderator/postHide\", data)\n }\n\n async reRank(post: { postId: number; gameId?: number; gameForumId: number }, weight: number) {\n const data = { postId: post.postId, gameId: post.gameId ?? DNA_GAME_ID, gameForumId: post.gameForumId, weight }\n return await this._dna_request(\"forum/moderator/reRank\", data)\n }\n\n async receiveLog(periodId: number, pageIndex: number, pageSize: number) {\n const data = { periodId, pageIndex, pageSize }\n return await this._dna_request<DNAReceiveRecord>(\"encourage/signin/receiveLog\", data)\n }\n\n async recommendList(recIndex: number, newIndex: number, size: number, history: string, gameId = DNA_GAME_ID) {\n const data = { gameId, recIndex, newIndex, size, history }\n return await this._dna_request<DNARecommendBean>(\"forum/recommend/list\", data)\n }\n\n async report(\n { commentId = 0, postId = 0, replyId = 0 }: { commentId?: number; postId?: number; replyId?: number },\n reportReason = 1,\n reportType = 1\n ) {\n const data = { commentId, postId, replyId, reportReason, reportType }\n return await this._dna_request(\"forum/more/report\", data)\n }\n\n async searchPost(keyword: string, pageIndex: number, pageSize: number, gameId = DNA_GAME_ID, searchType = 1) {\n const data = { gameId, keyword, pageIndex, pageSize, searchType }\n return await this._dna_request<DNASearchPostBean>(\"forum/searchPost\", data)\n }\n\n async searchTopic(keyword: string, pageIndex: number, pageSize = 20, gameId = DNA_GAME_ID) {\n const data = { gameId, keyword, pageIndex, pageSize }\n return await this._dna_request<DNASearchTopicBean>(\"forum/searchPost\", data)\n }\n\n async searchUser(keyword: string, pageIndex: number, pageSize: number) {\n const data = { keyword, pageIndex, pageSize }\n return await this._dna_request<DNASearchUserBean>(\"forum/searchPost\", data)\n }\n\n async shareTask() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request(\"encourage/level/shareTask\", data)\n }\n\n async bbsSign() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request<DNASignInBean>(\"user/signIn\", data)\n }\n\n async strongRecommend(post: { postId: number; gameId?: number; gameForumId: number }, operateType = 1) {\n const data = {\n postId: post.postId,\n gameId: post.gameId ?? DNA_GAME_ID,\n gameForumId: post.gameForumId,\n operateType: operateType,\n }\n return await this._dna_request(\"forum/moderator/setForceRecommend\", data)\n }\n\n async viewCommunity() {\n return await this._dna_request(\"encourage/level/viewCommunity\")\n }\n\n async viewCount(postId: number, gameId = DNA_GAME_ID) {\n return await this._dna_request(\"forum/viewCount\", { gameId, postId })\n }\n\n async getTaskProcess() {\n const data = { gameId: DNA_GAME_ID }\n return await this._dna_request<DNAUserTaskProcessEntity>(\"encourage/level/getTaskProcess\", data)\n }\n\n async soulTask() {\n return await this._dna_request<DNASoulTaskBean>(\"role/soul/task\")\n }\n}\n",
10
+ "import type {\n DNAAcewarBean,\n DNABindStatus,\n DNADraftBean,\n DNAFastBindResultBean,\n DNAHistoryBean,\n DNAMineFansBean,\n DNAMineFollowBean,\n DNAModeratorByGame,\n DNANotifySwitchEntity,\n DNAProfileLoadResponse,\n DNAProfileResponse,\n DNARoleEntityForTrend,\n DNARoleListBean,\n} from \"../type-generated\"\nimport { DNASubModule } from \"./base\"\n\nexport class ProfileAPI extends DNASubModule {\n async blackUser(toUserId: string, type: number) {\n return await this._dna_request(\"user/blackUser\", { toUserId, type })\n }\n\n async cleanFansNew(type: number, userFollowId: string) {\n return await this._dna_request(\"user/cleanFansNew\", { type, userFollowId })\n }\n\n async collect(postId: number, toUserId: string, operateType = 1) {\n return await this._dna_request(\"forum/collect\", { operateType, postId, toUserId })\n }\n\n async defaultRole(otherUserId?: string, type: number = 1) {\n return await this._dna_request<DNARoleEntityForTrend>(\"user/defaultRole\", { otherUserId, type })\n }\n\n async deleteRole(roleBoundId: string) {\n return await this._dna_request<DNARoleListBean>(\"role/remove\", { roleBoundId })\n }\n\n async draftDelete(draftId: string) {\n return await this._dna_request(\"forum/more/draftDelete\", { draftId })\n }\n\n async fans(otherUserId: string, pageNo: number, pageSize: number, type: number) {\n return await this._dna_request<DNAMineFansBean>(\"user/fans\", { otherUserId, pageNo, pageSize, type })\n }\n\n async fastBind() {\n return await this._dna_request<DNAFastBindResultBean>(\"role/quickBound\")\n }\n\n async follow(otherUserId: string, pageNo: number, pageSize: number, type: number) {\n return await this._dna_request<DNAMineFollowBean>(\"user/follow\", { otherUserId, pageNo, pageSize, type })\n }\n\n async followUser(followUserId: string, unfollow?: boolean) {\n return await this._dna_request(\"user/followUser\", { followUserId, operateType: unfollow ? 0 : 1 })\n }\n\n async getApplyStatus() {\n return await this._dna_request<DNABindStatus>(\"user/creator/getApplyStatus\")\n }\n\n async getDraftList(pageIndex: number, pageSize: number) {\n return await this._dna_request<DNADraftBean>(\"forum/getDraftList\", { pageIndex, pageSize })\n }\n\n async getMineComment(otherUserId: string, pageIndex: number, pageSize: number, type: number) {\n return await this._dna_request<DNAProfileResponse>(\"user/notice/mine\", { otherUserId, pageIndex, pageSize, type })\n }\n\n async getMinePost(otherUserId: string, pageIndex: number, pageSize: number, searchType: number, type: number, postType?: number) {\n return await this._dna_request<DNAProfileLoadResponse>(\"forum/getMinePost\", {\n otherUserId,\n pageIndex,\n pageSize,\n searchType,\n type,\n postType,\n })\n }\n\n async getNotifySwitch() {\n return await this._dna_request<DNANotifySwitchEntity>(\"user/push/getSwitchStatus\")\n }\n\n async historyView(pageIndex: number, pageSize: number) {\n return await this._dna_request<DNAHistoryBean>(\"forum/historyView\", { pageIndex, pageSize })\n }\n\n async like(data: {\n forumId: number\n gameId: number\n likeType: number\n operateType: number\n postCommentId: number\n postCommentReplyId: number\n postId: number\n postType: number\n toUserId: string\n }) {\n return await this._dna_request(\"forum/like\", data)\n }\n\n async manualBound(roleId: string, type: number, code: string) {\n return await this._dna_request<DNAAcewarBean>(\"role/manualBound\", { roleId, type, code })\n }\n\n async mine(otherUserId: string, searchType: number, type: number, postType?: number) {\n const data: Record<string, any> = { otherUserId, searchType, type, postType }\n if (!otherUserId) {\n delete data.otherUserId\n }\n return await this._dna_request<DNAProfileResponse>(\"user/mine\", data)\n }\n\n async mineV2(otherUserId: string) {\n return await this._dna_request<DNAProfileResponse>(\"user/mineV2\", { otherUserId })\n }\n\n async moderatorByGame(gameId: number) {\n return await this._dna_request<DNAModeratorByGame>(\"user/moderator/getModeratorByGame\", { gameId })\n }\n\n async muteCancel(toUserId: string) {\n return await this._dna_request(\"forum/moderator/muteCancel\", { toUserId })\n }\n\n async muteUser(toUserId: string, gameIdStr: string, type: number, reason: number, content: string) {\n return await this._dna_request(\"forum/moderator/muteUser\", { toUserId, gameIdStr, type, reason, content })\n }\n\n async resetDefault(roleBoundId: string) {\n return await this._dna_request<DNARoleListBean>(\"role/resetDefault\", { roleBoundId })\n }\n\n async roleManager() {\n return await this._dna_request<DNARoleListBean>(\"role/list\")\n }\n}\n",
11
+ "import type {\n DNACancleStatus,\n DNACommonBooleanBean,\n DNANotifySwitchEntity,\n DNAPrivateSetBean,\n DNAsettingBlackBean,\n DNAsettingMsgShiledBean,\n DNAsettingPostShiledBean,\n DNAUserAddressBean,\n} from \"../type-generated\"\nimport { DNASubModule } from \"./base\"\n\nexport class SettingAPI extends DNASubModule {\n async addAddress(receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this._dna_request(\"user/more/userAddressAdd\", { receiverName, receiverMobile, receiverAddress })\n }\n\n async blackUser(toUserId: string, type: number) {\n return await this._dna_request(\"user/blackUser\", { toUserId, type })\n }\n\n async cancelCode(code: string) {\n return await this._dna_request(\"user/more/cancelCode\", { code })\n }\n\n async cancel(cancelType: number, operateType: number, position: string, cancelReason: number | null, reasonDetail: string) {\n return await this._dna_request(\"user/more/cancel\", { cancelType, operateType, position, cancelReason, reasonDetail })\n }\n\n async deleteAddress(addressId: number) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/deleteUserAddress\", { addressId })\n }\n\n async editAddress(addressId: number, receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/userAddressEdit\", {\n addressId,\n receiverName,\n receiverMobile,\n receiverAddress,\n })\n }\n\n async feedback(listPic: string, proDesc: string, mobile: string, isLogin: number) {\n return await this._dna_request(\"user/more/feedback\", { listPic, proDesc, mobile, isLogin })\n }\n\n async getCancelStatus() {\n return await this._dna_request<DNACancleStatus>(\"user/more/getCancelStatus\")\n }\n\n async getNotifySwitch() {\n return await this._dna_request<DNANotifySwitchEntity>(\"user/push/getSwitchStatus\")\n }\n\n async getPrivateSet() {\n return await this._dna_request<DNAPrivateSetBean>(\"user/getPrivateSet\")\n }\n\n async getUserAddress(userId: number, type: number) {\n return await this._dna_request<DNAUserAddressBean>(\"user/more/getUserAddress\", { userId, type })\n }\n\n async getUserBlackList(pageIndex: number, pageSize: number) {\n return await this._dna_request<DNAsettingBlackBean>(\"user/getUserBlackList\", { pageIndex, pageSize })\n }\n\n async msgListDetail(pageNo: number, pageSize: number, type: number) {\n return await this._dna_request<DNAsettingMsgShiledBean>(\"user/block/listDetail\", { pageNo, pageSize, type })\n }\n\n async postListDetail(pageNo: number, pageSize: number, type: number) {\n return await this._dna_request<DNAsettingPostShiledBean>(\"user/block/listDetail\", { pageNo, pageSize, type })\n }\n\n async privateSet(operateType: number, option: number) {\n return await this._dna_request(\"user/privateSet\", { operateType, option })\n }\n\n async sendSms(mobile: string, timeStamp: string, type: number) {\n return await this._dna_request(\"user/sms/sendSms\", { mobile, timeStamp, type })\n }\n\n async setDefaultAddress(addressId: number) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/setDefaultAddress\", { addressId })\n }\n\n async setNotifySwitch(operateType: number, switchType: number) {\n return await this._dna_request(\"user/push/updateSwitchStatus\", { operateType, switchType })\n }\n\n async uploadFeedBack(file: File) {\n const data = new FormData()\n data.append(\"parts\", file)\n return await this.fileUpload(\"user/img/uploadFeedBack\", data)\n }\n}\n",
12
+ "import type {\n DNACommonBooleanBean,\n DNAParseLinkBean,\n DNAPostPublishPageBean,\n DNAPublishPostResponse,\n DNARecomdBean,\n DNATipsBean,\n DNATopicListBean,\n DNATrendPostBean,\n DNAVodTokenBean,\n} from \"../type-generated\"\nimport { DNASubModule } from \"./base\"\n\nexport class TrendAPI extends DNASubModule {\n async draftSave(\n content: string,\n draftId: string,\n h5Content: string,\n postTitle: string,\n postType: number,\n gameId: number,\n videoReUpload: number\n ) {\n return await this._dna_request(\"forum/draftSave\", { content, draftId, h5Content, postTitle, postType, gameId, videoReUpload })\n }\n\n async followUser(followUserId: string, operateType: number) {\n return await this._dna_request(\"user/followUser\", { followUserId, operateType })\n }\n\n async getConfigTopicByGameId(name: string, showType: number) {\n return await this._dna_request<DNATopicListBean[]>(\"config/getConfigTopicByGameId\", { name, showType })\n }\n\n async getPostPublishPage() {\n return await this._dna_request<DNAPostPublishPageBean>(\"forum/getPostPublishPage\")\n }\n\n async getRecommend(history: string, pageSize: number) {\n return await this._dna_request<DNARecomdBean>(\"user/getRecommend\", { history, pageSize })\n }\n\n async getTips() {\n return await this._dna_request<DNATipsBean>(\"config/getTips\")\n }\n\n async getVodToken(fileName: string, title: string) {\n return await this._dna_request<DNAVodTokenBean>(\"forum/getVodToken\", { fileName, title })\n }\n\n async like(\n forumId: number,\n gameId: number,\n likeType: number,\n operateType: number,\n postCommentId: number,\n postCommentReplyId: number,\n postId: number,\n postType: number,\n toUserId: string\n ) {\n return await this._dna_request(\"forum/like\", {\n forumId,\n gameId,\n likeType,\n operateType,\n postCommentId,\n postCommentReplyId,\n postId,\n postType,\n toUserId,\n })\n }\n\n async list(pageIndex: number, pageSize: number, userId: string) {\n return await this._dna_request<DNATrendPostBean>(\"forum/dynamic/list\", { pageIndex, pageSize, userId })\n }\n\n async parseLink(link: string) {\n return await this._dna_request<DNAParseLinkBean>(\"forum/parseLink\", { link })\n }\n\n async posAdminEdit(\n content: string,\n gameForumId: number,\n h5Content: string,\n postId: string,\n postTitle: string,\n topics: string,\n postType: number,\n gameId: number,\n videoReUpload: number\n ) {\n return await this._dna_request<DNAPublishPostResponse>(\"forum/moderator/postEdit\", {\n content,\n gameForumId,\n h5Content,\n postId,\n postTitle,\n topics,\n postType,\n gameId,\n videoReUpload,\n })\n }\n\n async postEdit(\n content: string,\n gameForumId: number,\n h5Content: string,\n postId: string,\n postTitle: string,\n topics: string,\n postType: number,\n videoReUpload: number\n ) {\n return await this._dna_request<DNAPublishPostResponse>(\"forum/postEdit\", {\n content,\n gameForumId,\n h5Content,\n postId,\n postTitle,\n topics,\n postType,\n videoReUpload,\n })\n }\n\n async postPublish(\n content: string,\n draftId: string,\n gameForumId: number,\n gameId: number,\n h5Content: string,\n postTitle: string,\n postType: number,\n topics: string\n ) {\n return await this._dna_request<DNAPublishPostResponse>(\"forum/postPublish\", {\n content,\n draftId,\n gameForumId,\n gameId,\n h5Content,\n postTitle,\n postType,\n topics,\n })\n }\n\n async safeCheck(url: string) {\n return await this._dna_request<DNACommonBooleanBean>(\"forum/more/safeCheck\", { url })\n }\n\n /**\n * 图片上传\n */\n async uploadImage(file: File) {\n const data = new FormData()\n data.append(\"files\", file)\n data.append(\"type\", \"post\")\n return await this.fileUpload(\"config/img/upload\", data)\n }\n\n async videoPostPublish(\n content: string,\n draftId: string,\n gameForumId: number,\n gameId: number,\n h5Content: string,\n postTitle: string,\n postType: number,\n topics: string\n ) {\n return await this._dna_request<DNAPublishPostResponse>(\"forum/moderator/postPublish\", {\n content,\n draftId,\n gameForumId,\n gameId,\n h5Content,\n postTitle,\n postType,\n topics,\n })\n }\n\n async viewCount(gameId: number, postId: number) {\n return await this._dna_request(\"forum/viewCount\", { gameId, postId })\n }\n}\n",
13
13
  "export interface DNARoleForToolInstance {\n id: number\n name: string\n code: string\n on: number\n}\n\nexport interface DNARoleForToolInstanceInfo {\n instances: DNARoleForToolInstance[]\n}\n\nexport enum PostContentType {\n TEXT = 1,\n IMAGE = 2,\n VIDEO = 5,\n}\n\nexport const DNA_GAME_ID = 268\n",
14
- "import { DNASubModule, DNABaseAPI } from \"./base\"\nimport {\n DNABlockBean,\n DNACanEditNickNameBean,\n DNACommonConfigEntity,\n DNAConfigSwitchBean,\n DNAFollowGameIdBean,\n DNAHaveOfficialRoleBean,\n DNAIsRedPointBean,\n DNARecommendConfig,\n DNAScreenResponse,\n DNASplashResponse,\n DNATokenBean,\n DNAUserHeadResponse,\n DNAWikiVoEntity,\n DNAModeratorPermission,\n DNAUserDataBean,\n DNAGameConfigResponse,\n DNAGameNewHeadBean,\n DNAEmojiConfigBean,\n} from \"../type-generated\"\nimport { aesDecryptImageUrl } from \"./utils\"\nimport { DNA_GAME_ID } from \"./types\"\n\nexport class UserAPI extends DNASubModule {\n constructor(base: DNABaseAPI) {\n super(base)\n }\n // 检查登录\n async loginLog() {\n return await this._dna_request(\"user/login/log\")\n }\n\n async blockList() {\n return await this._dna_request<DNABlockBean>(\"user/block/list\")\n }\n\n async canEditNickName() {\n return await this._dna_request<DNACanEditNickNameBean>(\"user/canUpdateNameTimes\")\n }\n\n async cancel(cancelType: number, operateType: number, position: string, cancelReason: number | null, reasonDetail: string) {\n return await this._dna_request(\"user/more/cancel\", { cancelType, operateType, position, cancelReason, reasonDetail })\n }\n\n async cleanToken() {\n return await this._dna_request(\"user/cleanToken\")\n }\n\n async editGender(gender: number) {\n return await this._dna_request(\"user/editGender\", { gender })\n }\n\n async editNickName(userName: string) {\n return await this._dna_request<DNACanEditNickNameBean>(\"user/updateName\", { userName })\n }\n\n async getCommonConfig() {\n return await this._dna_request<DNACommonConfigEntity>(\"config/getCommonConfig\")\n }\n\n async getConfig() {\n return await this._dna_request<DNASplashResponse>(\"config/getConfig\")\n }\n\n async getConfigSwitch() {\n return await this._dna_request<DNAConfigSwitchBean>(\"config/switchAll\")\n }\n\n async getModeratorPermission() {\n return await this._dna_request<DNAModeratorPermission>(\"user/moderator/getModeratorPermission\")\n }\n\n async getOpenScreen() {\n return await this._dna_request<DNAScreenResponse>(\"config/getOpenScreen\")\n }\n\n async getPublicKey() {\n return await this._dna_request<{ key: string }>(\"config/getRsaPublicKey\")\n }\n\n async getUserGame() {\n return await this._dna_request<DNAFollowGameIdBean>(\"user/getUserGame\")\n }\n\n async getWikiData() {\n return await this._dna_request<DNAWikiVoEntity>(\"config/getGameWiki\")\n }\n\n async haveOfficialRole() {\n return await this._dna_request<DNAHaveOfficialRoleBean>(\"role/haveOfficialRole\")\n }\n\n async isRedPoint() {\n return await this._dna_request<DNAIsRedPointBean>(\"forum/dynamic/isRedPoint\")\n }\n\n async login(mobile: string, code: string) {\n const data = { code: code, devCode: this.dev_code, gameList: DNA_GAME_ID, loginType: 1, mobile: mobile }\n const res = await this._dna_request<DNAUserDataBean>(\"user/sdkLogin\", data, { sign: true })\n if (res.is_success && res.data) {\n const data = res.data\n if (typeof data.token === \"string\") {\n this.token = data.token\n }\n }\n return res\n }\n\n async oneTapLoginRestriction() {\n return await this._dna_request(\"user/oneTapLoginRestriction\")\n }\n\n async recommendConfig() {\n return await this._dna_request<DNARecommendConfig>(\"forum/recommend/config\")\n }\n\n async refreshToken(refreshToken: string) {\n return await this._dna_request<DNATokenBean>(\"user/refreshToken\", { refreshToken })\n }\n\n async register(code: string, devCode: string, gameList: string, mobile: string, password: string) {\n return await this._dna_request<DNAUserDataBean>(\"user/register\", { code, devCode, gameList, mobile, password })\n }\n\n async saveUserInfo(gender: number | null, headCode: string, headUrl: string, userName: string) {\n return await this._dna_request<DNAUserHeadResponse>(\"user/saveUserInfo\", { gender, headCode, headUrl, userName })\n }\n\n async sendSms(mobile: string, vJson: string, isCaptcha: number | null) {\n return await this._dna_request(\"user/getSmsCode\", { mobile, isCaptcha, vJson })\n }\n\n async signature(newSignature: string) {\n return await this._dna_request(\"user/edit/signature\", { newSignature })\n }\n\n async updateHeadCode(headCode: string) {\n return await this._dna_request<DNAUserHeadResponse>(\"user/updateHeadCode\", { headCode })\n }\n\n async updateHeadUrl(headUrl: string) {\n return await this._dna_request(\"user/updateHeadUrl\", { headUrl })\n }\n\n async updateProfileBg(bgUrl: string) {\n return await this._dna_request(\"user/updateBg\", { bgUrl })\n }\n\n async uploadHead(file: File) {\n const data = new FormData()\n data.append(\"parts\", file)\n return await this.fileUpload(\"user/img/uploadHead\", data)\n }\n\n async uploadProfileBg(file: File) {\n const data = new FormData()\n data.append(\"parts\", file)\n return await this.fileUpload(\"user/img/uploadMineBg\", data)\n }\n\n async getEmoji() {\n return await this._dna_request<DNAEmojiConfigBean[]>(\"config/getEmoji\")\n }\n\n async getGameConfig() {\n return await this._dna_request<DNAGameConfigResponse[]>(\"config/getGameConfig\")\n }\n\n async getGameHeadCode() {\n return await this._dna_request<DNAGameNewHeadBean[]>(\"user/getGameHeadCode\")\n }\n}\n",
15
- "import { DNASubModule, DNABaseAPI } from \"./base\"\nimport {\n DNAAliProductConfigBean,\n DNAAliProductListBean,\n DNAApplyStatusBean,\n DNACreatorDescriptionBean,\n DNACustomCreativeDesc,\n DNAGoldBuyBean,\n DNAGoldDrawBean,\n DNAGoldGoodsEntity,\n DNAGoldRealBean,\n DNAGoldRecordEntity,\n DNAGoldTotalBean,\n DNALookPageBean,\n DNALuckyDrawBean,\n DNAUserExperienceRecordEntity,\n DNAUserGameLevelEntity,\n DNAUserTaskProcessEntity,\n DNAWinListBean,\n DNACommonBooleanBean,\n DNAUserAddressBean,\n} from \"../type-generated\"\n\nexport class UserGrowingAPI extends DNASubModule {\n constructor(base: DNABaseAPI) {\n super(base)\n }\n async addAddress(receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this._dna_request(\"user/more/userAddressAdd\", { receiverName, receiverMobile, receiverAddress })\n }\n\n async apply(\n type: number,\n id: number | null,\n concatWay: string,\n otherPlatform: string,\n otherPlatformUrl: string,\n otherPlatformFans: string,\n materialUrl: string,\n gameId: number | null,\n ) {\n return await this._dna_request<DNAApplyStatusBean>(\"user/creator/apply\", {\n type,\n id,\n concatWay,\n otherPlatform,\n otherPlatformUrl,\n otherPlatformFans,\n materialUrl,\n gameId,\n })\n }\n\n async awardList(drawId: number) {\n return await this._dna_request<DNAWinListBean>(\"encourage/draw/awardList\", { drawId })\n }\n\n async awardWin(drawId: number, fullName: string, mobile: string, address: string) {\n return await this._dna_request(\"/encourage/draw/awardWin\", { drawId, fullName, mobile, address })\n }\n\n async buyGold(drawId: number, count: number) {\n return await this._dna_request<DNAGoldBuyBean>(\"encourage/draw/buy\", { drawId, count })\n }\n\n async buyProduct(address: string, fullName: string, mobile: string, productId: number) {\n return await this._dna_request(\"/encourage/store/buyProduct\", { address, fullName, mobile, productId })\n }\n\n async deleteAddress(addressId: number) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/deleteUserAddress\", { addressId })\n }\n\n async drawDetail(drawId: number) {\n return await this._dna_request<DNAGoldDrawBean>(\"encourage/draw/detail\", { drawId })\n }\n\n async editAddress(addressId: number, receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/userAddressEdit\", {\n addressId,\n receiverName,\n receiverMobile,\n receiverAddress,\n })\n }\n\n async getAliProductConfig() {\n return await this._dna_request<DNAAliProductConfigBean>(\"encourage/store/ali/getAliStoreConfigAndBanner\")\n }\n\n async getAliProductList(gameId: number | null, pageIndex: number, pageSize: number) {\n return await this._dna_request<DNAAliProductListBean>(\"encourage/store/ali/productList\", { gameId, pageIndex, pageSize })\n }\n\n async getApplyPage() {\n return await this._dna_request<DNACustomCreativeDesc>(\"user/creator/getApplyPage\")\n }\n\n async getExpLogsList(gameId: number, pageIndex: number, pageSize: number) {\n return await this._dna_request<DNAUserExperienceRecordEntity>(\"encourage/level/getExpLogs\", { gameId, pageIndex, pageSize })\n }\n\n async getGameCreator() {\n return await this._dna_request<DNACreatorDescriptionBean>(\"config/identification/getGameCreator\")\n }\n\n async getGoldDetailList(pageIndex: number, pageSize: number, type: number, storeType: number) {\n return await this._dna_request<DNAGoldRecordEntity>(\"encourage/gold/getGoldLogs\", { pageIndex, pageSize, type, storeType })\n }\n\n async getProductList(gameId: number | null, pageIndex: number, pageSize: number, storeType: number) {\n return await this._dna_request<DNAGoldGoodsEntity>(\"encourage/store/productList\", { gameId, pageIndex, pageSize, storeType })\n }\n\n async getTotalGold(type?: number) {\n if (type !== undefined) {\n return await this._dna_request<DNAGoldTotalBean>(\"encourage/gold/getTotalGold\", { type })\n }\n return await this._dna_request<DNAGoldTotalBean>(\"encourage/gold/getTotalGold\")\n }\n\n async getUserAddress(userId: number, type: number) {\n return await this._dna_request<DNAUserAddressBean>(\"user/more/getUserAddress\", { userId, type })\n }\n\n async getUserGameLevel(gameId: number | null, ifProcess: number, otherUserId: number | null) {\n return await this._dna_request<DNAUserGameLevelEntity>(\"encourage/level/getUserGameLevelDetail\", {\n gameId,\n ifProcess,\n otherUserId,\n })\n }\n\n async getUserGameTaskProcess(gameId: number, userId: number) {\n return await this._dna_request<DNAUserTaskProcessEntity>(\"encourage/level/getTaskProcess\", { gameId, userId })\n }\n\n async list(pageIndex: number, pageSize: number, queryType: number | null, gameId: number | null) {\n return await this._dna_request<DNALuckyDrawBean>(\"encourage/draw/list\", { pageIndex, pageSize, queryType, gameId })\n }\n\n async page() {\n return await this._dna_request<DNALookPageBean>(\"user/creator/page\")\n }\n\n async productDetail(productId: number) {\n return await this._dna_request<DNAGoldRealBean>(\"encourage/store/productDetail\", { productId })\n }\n\n async setDefaultAddress(addressId: number) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/setDefaultAddress\", { addressId })\n }\n\n async uploadImage(file: File) {\n const data = new FormData()\n data.append(\"parts\", file)\n return await this.fileUpload(\"user/img/uploadHead\", data)\n }\n}\n",
16
- "import { DNASubModule, DNABaseAPI } from \"./base\"\n\nexport interface DNAMapMatterCategorizeOption {\n icon: string\n id: number\n matters: DNAMapMatter[]\n name: string\n sort?: number\n}\n\nexport interface DNAMatterCategorizeDetail {\n icon: string\n id: number\n matters: DNAMapMatterDetail[]\n name: string\n sort?: number\n}\n\nexport interface DNAMapMatter {\n icon: string\n id: number\n mapMatterCategorizeId: number\n name: string\n sort: number\n}\n\nexport interface DNAMapCategorizeListRes {\n list: DNAMatterCategorizeList[]\n}\n\nexport interface DNAMatterCategorizeList {\n id: number\n maps: DNAMap[]\n name: string\n}\n\nexport interface DNAMapDetailRes {\n floors: DNAMapFloor[]\n matterCategorizes: DNAMatterCategorizeDetail[]\n map: DNAMap\n userSites: DNAMapSite[]\n}\n\nexport interface DNAMap {\n id: number\n name: string\n pid?: number\n}\n\nexport interface DNAMapMatterDetail extends DNAMapMatter {\n sites: DNAMapSite[]\n}\n\nexport interface DNAMapSite {\n id: number\n isHide: number\n mapFloorId: number\n mapId: number\n mapMatterId: number\n x: number\n y: number\n}\n\nexport interface DNAMapFloor {\n floor: number\n id: number\n name: string\n pic: string\n}\n\nexport interface DNAMapSiteDetailRes {\n contributes: DNAMapContribute[]\n description: string\n id: number\n isDel: number\n isHide: number\n mapFloorId: number\n mapId: number\n mapMatterCategorizeId: number\n mapMatterId: number\n pic: string\n script: string\n url: string\n urlDesc: string\n urlIcon: string\n x: number\n y: number\n}\n\ninterface DNAMapContribute {\n userHeadUrl: string\n userId: string\n userName: string\n}\n\nexport interface DNAEmoji {\n content: string[]\n gameId: number\n icon: string\n size: number\n title: string\n url: string\n}\n\nexport class H5API extends DNASubModule {\n constructor(base: DNABaseAPI) {\n super(base)\n }\n async getMapMatterCategorizeOptions() {\n return await this._dna_request_h5<DNAMapMatterCategorizeOption[]>(\"map/matter/categorize/getOptions\")\n }\n\n async getMapCategorizeList() {\n return await this._dna_request_h5<DNAMapCategorizeListRes>(\"map/categorize/list\")\n }\n\n async getMapDetail(id: number) {\n return await this._dna_request_h5<DNAMapDetailRes>(\"map/detail\", { id })\n }\n\n async getMapSiteDetail(id: number) {\n return await this._dna_request_h5<DNAMapSiteDetailRes>(\"map/site/detail\", { id })\n }\n\n async getEmojiList() {\n return await this._dna_request_h5<DNAEmoji[]>(\"config/getEmoji\")\n }\n}\n",
17
- "export { TimeBasicResponse, RespCode } from \"./TimeBasicResponse\"\nexport { DNABaseAPI, DNASubModule } from \"./modules/base\"\nexport { GameAPI } from \"./modules/game\"\nexport { HomeAPI } from \"./modules/home\"\nexport { ProfileAPI } from \"./modules/profile\"\nexport { SettingAPI } from \"./modules/setting\"\nexport { TrendAPI } from \"./modules/trend\"\nexport { UserAPI } from \"./modules/user\"\nexport { UserGrowingAPI } from \"./modules/usergrowing\"\nexport * from \"./modules/h5\"\nexport * from \"./modules/types\"\nexport * from \"./type-generated\"\nexport * from \"./modules/utils\"\n\nimport { DNABaseAPI } from \"./modules/base\"\nimport { GameAPI } from \"./modules/game\"\nimport { HomeAPI } from \"./modules/home\"\nimport { ProfileAPI } from \"./modules/profile\"\nimport { SettingAPI } from \"./modules/setting\"\nimport { TrendAPI } from \"./modules/trend\"\nimport { UserAPI } from \"./modules/user\"\nimport { UserGrowingAPI } from \"./modules/usergrowing\"\nimport { H5API } from \"./modules/h5\"\nimport { DNA_GAME_ID } from \"./modules/types\"\n\n/**\n * DNA API类,用于与DNA游戏服务器交互\n */\nexport class DNAAPI extends DNABaseAPI {\n game: GameAPI\n home: HomeAPI\n profile: ProfileAPI\n setting: SettingAPI\n trend: TrendAPI\n user: UserAPI\n userGrowing: UserGrowingAPI\n h5: H5API\n\n constructor({\n dev_code = \"\",\n token = \"\",\n ...options\n }: { dev_code?: string; token?: string; fetchFn?: typeof fetch; is_h5?: boolean; rsa_public_key?: string } = {}) {\n super(dev_code, token, options)\n\n this.game = new GameAPI(this)\n this.home = new HomeAPI(this)\n this.profile = new ProfileAPI(this)\n this.setting = new SettingAPI(this)\n this.trend = new TrendAPI(this)\n this.user = new UserAPI(this)\n this.userGrowing = new UserGrowingAPI(this)\n this.h5 = new H5API(this)\n }\n\n /**\n * 手动初始化 API 配置(获取签名配置等)\n */\n async initialize(): Promise<void> {\n await this.initializeSignConfig()\n }\n\n get GAME_ID() {\n return DNA_GAME_ID\n }\n //#region Game 模块便捷方法\n async getMhSwitchStatus() {\n return await this.game.getMhSwitchStatus()\n }\n\n async updateMhSwitchStatus(config: string) {\n return await this.game.updateMhSwitchStatus(config)\n }\n\n async soulTask() {\n return await this.game.soulTask()\n }\n\n async defaultRoleForTool(type: number = 1, otherUserId?: string) {\n return await this.game.defaultRoleForTool(type, otherUserId)\n }\n\n async getRoleDetail(char_id: string, char_eid: string, otherUserId?: string) {\n return await this.game.getRoleDetail(char_id, char_eid, otherUserId)\n }\n\n async getWeaponDetail(weapon_id: string, weapon_eid: string, otherUserId?: string) {\n return await this.game.getWeaponDetail(weapon_id, weapon_eid, otherUserId)\n }\n\n async getShortNoteInfo() {\n return await this.game.getShortNoteInfo()\n }\n //#endregion\n //#region Home 模块便捷方法\n async getPostList(forumId: number = 48, pageIndex: number = 1, pageSize: number = 20, searchType: number = 1, timeType: number = 0) {\n return await this.home.getPostList(forumId, pageIndex, pageSize, searchType, timeType)\n }\n\n async getPostDetail(postId: string) {\n return await this.home.getPostDetail(postId)\n }\n\n async getPostByTopic(\n topicId: number = 177,\n pageIndex: number = 1,\n pageSize: number = 20,\n searchType: number = 1,\n timeType: number = 0,\n ) {\n return await this.home.getPostByTopic(topicId, pageIndex, pageSize, searchType, timeType)\n }\n\n async getTaskProcess() {\n return await this.home.getTaskProcess()\n }\n\n async haveSignIn() {\n return await this.home.haveSignIn()\n }\n\n async signCalendar() {\n return await this.home.signCalendar()\n }\n\n async gameSign(dayAwardId: number, period: number) {\n return await this.home.gameSignIn(dayAwardId, period)\n }\n\n async bbsSign() {\n return await this.home.bbsSign()\n }\n\n async getRoleList() {\n return await this.profile.roleManager()\n }\n\n async adminAdjustScore(postId: number, gameForumId: number, weight: string) {\n return await this.home.adminAdjustScore(postId, gameForumId, weight)\n }\n\n async adminDelete(post: { postId: number; gameId?: number; gameForumId: number }, content: string, reasonCode: number) {\n return await this.home.adminDelete(post, content, reasonCode)\n }\n\n async adminMovePost(\n post: { postId: number; gameId?: number; gameForumId: number },\n newGameId: number,\n newForumId: number,\n newTopicIdStr: string,\n ) {\n return await this.home.adminMovePost(post, newGameId, newForumId, newTopicIdStr)\n }\n\n async adminRefreshTime(post: { postId: number; gameId?: number; gameForumId: number }, refresh: number) {\n return await this.home.adminRefreshTime(post, refresh)\n }\n\n async blockList() {\n return await this.home.blockList()\n }\n\n async blockOther(blockPostId: number, blockUserId: string, type: number) {\n return await this.home.blockOther(blockPostId, blockUserId, type)\n }\n\n async collect(postId: number, toUserId: string, operateType = 1) {\n return await this.home.collect(postId, toUserId, operateType)\n }\n\n async commentDelete(\n comment: { id: number; gameId: number; gameForumId: number },\n entityType: number,\n content: string,\n reasonCode: number,\n ) {\n return await this.home.commentDelete(comment, entityType, content, reasonCode)\n }\n\n async createComment(post: { userId: string; postId: string; gameForumId: number }, content: string) {\n return await this.home.createComment(post, content)\n }\n\n async createReply(post: { userId: string; postId: string; postCommentId: string; gameForumId: number }, content: string) {\n return await this.home.createReply(post, content)\n }\n\n async createReplyList(\n post: { userId: string; postId: string; postCommentId: string; postCommentReplyId: string; gameForumId: number },\n content: string,\n ) {\n return await this.home.createReplyList(post, content)\n }\n\n async deletePost(deleteType: number, id: number) {\n return await this.home.deletePost(deleteType, id)\n }\n\n async followUser(followUserId: string, unfollow?: boolean) {\n return await this.home.followUser(followUserId, unfollow)\n }\n\n async getFollowState(followUserId: string) {\n return await this.home.getFollowState(followUserId)\n }\n\n async getDoujin(forumId: number) {\n return await this.home.getDoujin(forumId)\n }\n\n async getExchange(forumId: number) {\n return await this.home.getExchange(forumId)\n }\n\n async getGameBanner(gameId = DNA_GAME_ID) {\n return await this.home.getGameBanner(gameId)\n }\n\n async getPostCommentList(postId: number, pageIndex = 1, pageSize = 20, isOnlyPublisher = 0) {\n return await this.home.getPostCommentList(postId, pageIndex, pageSize, isOnlyPublisher)\n }\n\n async getRankList(forumId: number) {\n return await this.home.getRankList(forumId)\n }\n\n async getRecommendPosts(gameId = DNA_GAME_ID, pageIndex = 1, pageSize = 20) {\n return await this.home.getRecommendPosts(gameId, pageIndex, pageSize)\n }\n\n async getReplyList(postId: number, postCommentId: number, pageIndex = 1, pageSize = 20) {\n return await this.home.getReplyList(postId, postCommentId, pageIndex, pageSize)\n }\n\n async getStatistics(gameId = DNA_GAME_ID) {\n return await this.home.getStatistics(gameId)\n }\n\n async getTips() {\n return await this.home.getTips()\n }\n\n async getWalkthrough(forumId: number) {\n return await this.home.getWalkthrough(forumId)\n }\n\n async hotList(type = 1, gameId = DNA_GAME_ID) {\n return await this.home.hotList(type, gameId)\n }\n\n async isRedPoint() {\n return await this.home.isRedPoint()\n }\n\n async likePost(post: { gameForumId: string; postId: string; postType: string; userId: string }) {\n return await this.home.like(post)\n }\n\n async lockPost(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n return await this.home.lockPost(post, operateType)\n }\n\n async postDownOrUp(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n return await this.home.postDownOrUp(post, operateType)\n }\n\n async postElite(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n return await this.home.postElite(post, operateType)\n }\n\n async postHide(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n return await this.home.postHide(post, operateType)\n }\n\n async reRank(post: { postId: number; gameId?: number; gameForumId: number }, weight: number) {\n return await this.home.reRank(post, weight)\n }\n\n async receiveLog(periodId: number, pageIndex: number, pageSize: number) {\n return await this.home.receiveLog(periodId, pageIndex, pageSize)\n }\n\n async recommendList(recIndex: number, newIndex: number, size: number, history: string, gameId = DNA_GAME_ID) {\n return await this.home.recommendList(recIndex, newIndex, size, history, gameId)\n }\n\n async report(\n { commentId = 0, postId = 0, replyId = 0 }: { commentId?: number; postId?: number; replyId?: number },\n reportReason = 1,\n reportType = 1,\n ) {\n return await this.home.report({ commentId, postId, replyId }, reportReason, reportType)\n }\n\n async searchPost(keyword: string, pageIndex: number, pageSize: number, gameId = DNA_GAME_ID, searchType = 1) {\n return await this.home.searchPost(keyword, pageIndex, pageSize, gameId, searchType)\n }\n\n async searchTopic(keyword: string, pageIndex: number, pageSize = 20, gameId = DNA_GAME_ID) {\n return await this.home.searchTopic(keyword, pageIndex, pageSize, gameId)\n }\n\n async searchUser(keyword: string, pageIndex: number, pageSize: number) {\n return await this.home.searchUser(keyword, pageIndex, pageSize)\n }\n\n async shareTask() {\n return await this.home.shareTask()\n }\n\n async strongRecommend(post: { postId: number; gameId?: number; gameForumId: number }, operateType = 1) {\n return await this.home.strongRecommend(post, operateType)\n }\n\n async viewCommunity() {\n return await this.home.viewCommunity()\n }\n\n async viewCount(postId: number, gameId = DNA_GAME_ID) {\n return await this.home.viewCount(postId, gameId)\n }\n //#endregion\n //#region User 模块便捷方法\n async loginLog() {\n return await this.user.loginLog()\n }\n\n async login(mobile: string, code: string) {\n return await this.user.login(mobile, code)\n }\n\n async getSmsCode(mobile: string, vJson: string) {\n return await this.user.sendSms(mobile, vJson, 1)\n }\n\n async getMine(userId = \"\", searchType = 1, type = 0) {\n return await this.profile.mine(userId, searchType, type)\n }\n\n async getOtherMine(userId = \"709542994134436647\", searchType = 1, type = 2) {\n return await this.profile.mine(userId, searchType, type)\n }\n\n async canEditNickName() {\n return await this.user.canEditNickName()\n }\n\n async cleanToken() {\n return await this.user.cleanToken()\n }\n\n async editGender(gender: number) {\n return await this.user.editGender(gender)\n }\n\n async editNickName(userName: string) {\n return await this.user.editNickName(userName)\n }\n\n async getCommonConfig() {\n return await this.user.getCommonConfig()\n }\n\n async getConfig() {\n return await this.user.getConfig()\n }\n\n async getConfigSwitch() {\n return await this.user.getConfigSwitch()\n }\n\n async getModeratorPermission() {\n return await this.user.getModeratorPermission()\n }\n\n async getOpenScreen() {\n return await this.user.getOpenScreen()\n }\n\n async getPublicKey() {\n return await this.user.getPublicKey()\n }\n\n async getUserGame() {\n return await this.user.getUserGame()\n }\n\n async getWikiData() {\n return await this.user.getWikiData()\n }\n\n async haveOfficialRole() {\n return await this.user.haveOfficialRole()\n }\n\n async oneTapLoginRestriction() {\n return await this.user.oneTapLoginRestriction()\n }\n\n async recommendConfig() {\n return await this.user.recommendConfig()\n }\n\n async refreshToken(refreshToken: string) {\n return await this.user.refreshToken(refreshToken)\n }\n\n async register(code: string, devCode: string, gameList: string, mobile: string, password: string) {\n return await this.user.register(code, devCode, gameList, mobile, password)\n }\n\n async saveUserInfo(gender: number | null, headCode: string, headUrl: string, userName: string) {\n return await this.user.saveUserInfo(gender, headCode, headUrl, userName)\n }\n\n async signature(newSignature: string) {\n return await this.user.signature(newSignature)\n }\n\n async updateHeadCode(headCode: string) {\n return await this.user.updateHeadCode(headCode)\n }\n\n async updateHeadUrl(headUrl: string) {\n return await this.user.updateHeadUrl(headUrl)\n }\n\n async updateProfileBg(bgUrl: string) {\n return await this.user.updateProfileBg(bgUrl)\n }\n\n async uploadHead(file: File) {\n return await this.user.uploadHead(file)\n }\n\n async uploadProfileBg(file: File) {\n return await this.user.uploadProfileBg(file)\n }\n\n async getEmoji() {\n return await this.user.getEmoji()\n }\n\n async getGameConfig() {\n return await this.user.getGameConfig()\n }\n\n async getGameHeadCode() {\n return await this.user.getGameHeadCode()\n }\n\n //#endregion\n //#region H5 模块便捷方法\n async getMapCategorizeList() {\n return await this.h5.getMapCategorizeList()\n }\n\n async getMapDetail(id: number) {\n return await this.h5.getMapDetail(id)\n }\n\n async getMapSiteDetail(id: number) {\n return await this.h5.getMapSiteDetail(id)\n }\n\n async getEmojiList() {\n return await this.h5.getEmojiList()\n }\n\n async getMapMatterCategorizeOptions() {\n return await this.h5.getMapMatterCategorizeOptions()\n }\n //#endregion\n //#region Profile 模块便捷方法\n async blackUser(toUserId: string, type: number) {\n return await this.profile.blackUser(toUserId, type)\n }\n\n async cleanFansNew(type: number, userFollowId: string) {\n return await this.profile.cleanFansNew(type, userFollowId)\n }\n\n async defaultRole(otherUserId?: string, type = 1) {\n return await this.profile.defaultRole(otherUserId, type)\n }\n\n async deleteRole(roleBoundId: string) {\n return await this.profile.deleteRole(roleBoundId)\n }\n\n async draftDelete(draftId: string) {\n return await this.profile.draftDelete(draftId)\n }\n\n async fans(otherUserId: string, pageNo: number, pageSize: number, type: number) {\n return await this.profile.fans(otherUserId, pageNo, pageSize, type)\n }\n\n async fastBind() {\n return await this.profile.fastBind()\n }\n\n async follow(otherUserId: string, pageNo: number, pageSize: number, type: number) {\n return await this.profile.follow(otherUserId, pageNo, pageSize, type)\n }\n\n async getApplyStatus() {\n return await this.profile.getApplyStatus()\n }\n\n async getDraftList(pageIndex: number, pageSize: number) {\n return await this.profile.getDraftList(pageIndex, pageSize)\n }\n\n async getMineComment(otherUserId: string, pageIndex: number, pageSize: number, type: number) {\n return await this.profile.getMineComment(otherUserId, pageIndex, pageSize, type)\n }\n\n async getMinePost(otherUserId: string, pageIndex: number, pageSize: number, searchType: number, type: number, postType?: number) {\n return await this.profile.getMinePost(otherUserId, pageIndex, pageSize, searchType, type, postType)\n }\n\n async getProfileNotifySwitch() {\n return await this.profile.getNotifySwitch()\n }\n\n async historyView(pageIndex: number, pageSize: number) {\n return await this.profile.historyView(pageIndex, pageSize)\n }\n\n async likeProfilePost(data: {\n forumId: number\n gameId: number\n likeType: number\n operateType: number\n postCommentId: number\n postCommentReplyId: number\n postId: number\n postType: number\n toUserId: string\n }) {\n return await this.profile.like(data)\n }\n\n async manualBound(roleId: string, type: number, code: string) {\n return await this.profile.manualBound(roleId, type, code)\n }\n\n async mine(otherUserId: string, searchType: number, type: number, postType?: number) {\n return await this.profile.mine(otherUserId, searchType, type, postType)\n }\n\n async mineV2(otherUserId: string) {\n return await this.profile.mineV2(otherUserId)\n }\n\n async moderatorByGame(gameId: number) {\n return await this.profile.moderatorByGame(gameId)\n }\n\n async muteCancel(toUserId: string) {\n return await this.profile.muteCancel(toUserId)\n }\n\n async muteUser(toUserId: string, gameIdStr: string, type: number, reason: number, content: string) {\n return await this.profile.muteUser(toUserId, gameIdStr, type, reason, content)\n }\n\n async resetDefault(roleBoundId: string) {\n return await this.profile.resetDefault(roleBoundId)\n }\n\n //#endregion\n //#region Setting 模块便捷方法\n async addAddress(receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this.setting.addAddress(receiverName, receiverMobile, receiverAddress)\n }\n\n async cancelCode(code: string) {\n return await this.setting.cancelCode(code)\n }\n\n async cancel(cancelType: number, operateType: number, position: string, cancelReason: number | null, reasonDetail: string) {\n return await this.setting.cancel(cancelType, operateType, position, cancelReason, reasonDetail)\n }\n\n async deleteAddress(addressId: number) {\n return await this.setting.deleteAddress(addressId)\n }\n\n async editAddress(addressId: number, receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this.setting.editAddress(addressId, receiverName, receiverMobile, receiverAddress)\n }\n\n async feedback(listPic: string, proDesc: string, mobile: string, isLogin: number) {\n return await this.setting.feedback(listPic, proDesc, mobile, isLogin)\n }\n\n async getCancelStatus() {\n return await this.setting.getCancelStatus()\n }\n\n async getPrivateSet() {\n return await this.setting.getPrivateSet()\n }\n\n async getUserAddress(userId: number, type: number) {\n return await this.setting.getUserAddress(userId, type)\n }\n\n async getUserBlackList(pageIndex: number, pageSize: number) {\n return await this.setting.getUserBlackList(pageIndex, pageSize)\n }\n\n async msgListDetail(pageNo: number, pageSize: number, type: number) {\n return await this.setting.msgListDetail(pageNo, pageSize, type)\n }\n\n async postListDetail(pageNo: number, pageSize: number, type: number) {\n return await this.setting.postListDetail(pageNo, pageSize, type)\n }\n\n async privateSet(operateType: number, option: number) {\n return await this.setting.privateSet(operateType, option)\n }\n\n async sendSms(mobile: string, timeStamp: string, type: number) {\n return await this.setting.sendSms(mobile, timeStamp, type)\n }\n\n async setDefaultAddress(addressId: number) {\n return await this.setting.setDefaultAddress(addressId)\n }\n\n async setNotifySwitch(operateType: number, switchType: number) {\n return await this.setting.setNotifySwitch(operateType, switchType)\n }\n\n async uploadFeedBack(file: File) {\n return await this.setting.uploadFeedBack(file)\n }\n\n //#endregion\n //#region Trend 模块便捷方法\n async draftSave(\n content: string,\n draftId: string,\n h5Content: string,\n postTitle: string,\n postType: number,\n gameId: number,\n videoReUpload: number,\n ) {\n return await this.trend.draftSave(content, draftId, h5Content, postTitle, postType, gameId, videoReUpload)\n }\n\n async getConfigTopicByGameId(name: string, showType: number) {\n return await this.trend.getConfigTopicByGameId(name, showType)\n }\n\n async getPostPublishPage() {\n return await this.trend.getPostPublishPage()\n }\n\n async getRecommend(history: string, pageSize: number) {\n return await this.trend.getRecommend(history, pageSize)\n }\n\n async getVodToken(fileName: string, title: string) {\n return await this.trend.getVodToken(fileName, title)\n }\n\n async trendList(pageIndex: number, pageSize: number, userId: string) {\n return await this.trend.list(pageIndex, pageSize, userId)\n }\n\n async parseLink(link: string) {\n return await this.trend.parseLink(link)\n }\n\n async posAdminEdit(\n content: string,\n gameForumId: number,\n h5Content: string,\n postId: string,\n postTitle: string,\n topics: string,\n postType: number,\n gameId: number,\n videoReUpload: number,\n ) {\n return await this.trend.posAdminEdit(content, gameForumId, h5Content, postId, postTitle, topics, postType, gameId, videoReUpload)\n }\n\n async postEdit(\n content: string,\n gameForumId: number,\n h5Content: string,\n postId: string,\n postTitle: string,\n topics: string,\n postType: number,\n videoReUpload: number,\n ) {\n return await this.trend.postEdit(content, gameForumId, h5Content, postId, postTitle, topics, postType, videoReUpload)\n }\n\n async postPublish(\n content: string,\n draftId: string,\n gameForumId: number,\n gameId: number,\n h5Content: string,\n postTitle: string,\n postType: number,\n topics: string,\n ) {\n return await this.trend.postPublish(content, draftId, gameForumId, gameId, h5Content, postTitle, postType, topics)\n }\n\n async safeCheck(url: string) {\n return await this.trend.safeCheck(url)\n }\n\n async uploadImage(file: File) {\n return await this.trend.uploadImage(file)\n }\n\n async videoPostPublish(\n content: string,\n draftId: string,\n gameForumId: number,\n gameId: number,\n h5Content: string,\n postTitle: string,\n postType: number,\n topics: string,\n ) {\n return await this.trend.videoPostPublish(content, draftId, gameForumId, gameId, h5Content, postTitle, postType, topics)\n }\n\n //#endregion\n //#region UserGrowing 模块便捷方法\n async apply(\n type: number,\n id: number | null,\n concatWay: string,\n otherPlatform: string,\n otherPlatformUrl: string,\n otherPlatformFans: string,\n materialUrl: string,\n gameId: number | null,\n ) {\n return await this.userGrowing.apply(type, id, concatWay, otherPlatform, otherPlatformUrl, otherPlatformFans, materialUrl, gameId)\n }\n\n async awardList(drawId: number) {\n return await this.userGrowing.awardList(drawId)\n }\n\n async awardWin(drawId: number, fullName: string, mobile: string, address: string) {\n return await this.userGrowing.awardWin(drawId, fullName, mobile, address)\n }\n\n async buyGold(drawId: number, count: number) {\n return await this.userGrowing.buyGold(drawId, count)\n }\n\n async buyProduct(address: string, fullName: string, mobile: string, productId: number) {\n return await this.userGrowing.buyProduct(address, fullName, mobile, productId)\n }\n\n async drawDetail(drawId: number) {\n return await this.userGrowing.drawDetail(drawId)\n }\n\n async getAliProductConfig() {\n return await this.userGrowing.getAliProductConfig()\n }\n\n async getAliProductList(gameId: number | null, pageIndex: number, pageSize: number) {\n return await this.userGrowing.getAliProductList(gameId, pageIndex, pageSize)\n }\n\n async getApplyPage() {\n return await this.userGrowing.getApplyPage()\n }\n\n async getExpLogsList(gameId: number, pageIndex: number, pageSize: number) {\n return await this.userGrowing.getExpLogsList(gameId, pageIndex, pageSize)\n }\n\n async getGameCreator() {\n return await this.userGrowing.getGameCreator()\n }\n\n async getGoldDetailList(pageIndex: number, pageSize: number, type: number, storeType: number) {\n return await this.userGrowing.getGoldDetailList(pageIndex, pageSize, type, storeType)\n }\n\n async getProductList(gameId: number | null, pageIndex: number, pageSize: number, storeType: number) {\n return await this.userGrowing.getProductList(gameId, pageIndex, pageSize, storeType)\n }\n\n async getTotalGold(type?: number) {\n return await this.userGrowing.getTotalGold(type)\n }\n\n async getUserGameLevel(gameId: number | null, ifProcess: number, otherUserId: number | null) {\n return await this.userGrowing.getUserGameLevel(gameId, ifProcess, otherUserId)\n }\n\n async getUserGameTaskProcess(gameId: number, userId: number) {\n return await this.userGrowing.getUserGameTaskProcess(gameId, userId)\n }\n\n async list(pageIndex: number, pageSize: number, queryType: number | null, gameId: number | null) {\n return await this.userGrowing.list(pageIndex, pageSize, queryType, gameId)\n }\n\n async page() {\n return await this.userGrowing.page()\n }\n\n async productDetail(productId: number) {\n return await this.userGrowing.productDetail(productId)\n }\n\n //#endregion\n}\n"
14
+ "import type {\n DNABlockBean,\n DNACanEditNickNameBean,\n DNACommonConfigEntity,\n DNAConfigSwitchBean,\n DNAEmojiConfigBean,\n DNAFollowGameIdBean,\n DNAGameConfigResponse,\n DNAGameNewHeadBean,\n DNAHaveOfficialRoleBean,\n DNAIsRedPointBean,\n DNAModeratorPermission,\n DNARecommendConfig,\n DNAScreenResponse,\n DNASplashResponse,\n DNATokenBean,\n DNAUserDataBean,\n DNAUserHeadResponse,\n DNAWikiVoEntity,\n} from \"../type-generated\"\nimport { DNASubModule } from \"./base\"\nimport { DNA_GAME_ID } from \"./types\"\n\nexport class UserAPI extends DNASubModule {\n // 检查登录\n async loginLog() {\n return await this._dna_request(\"user/login/log\")\n }\n\n async blockList() {\n return await this._dna_request<DNABlockBean>(\"user/block/list\")\n }\n\n async canEditNickName() {\n return await this._dna_request<DNACanEditNickNameBean>(\"user/canUpdateNameTimes\")\n }\n\n async cancel(cancelType: number, operateType: number, position: string, cancelReason: number | null, reasonDetail: string) {\n return await this._dna_request(\"user/more/cancel\", { cancelType, operateType, position, cancelReason, reasonDetail })\n }\n\n async cleanToken() {\n return await this._dna_request(\"user/cleanToken\")\n }\n\n async editGender(gender: number) {\n return await this._dna_request(\"user/editGender\", { gender })\n }\n\n async editNickName(userName: string) {\n return await this._dna_request<DNACanEditNickNameBean>(\"user/updateName\", { userName })\n }\n\n async getCommonConfig() {\n return await this._dna_request<DNACommonConfigEntity>(\"config/getCommonConfig\")\n }\n\n async getConfig() {\n return await this._dna_request<DNASplashResponse>(\"config/getConfig\")\n }\n\n async getConfigSwitch() {\n return await this._dna_request<DNAConfigSwitchBean>(\"config/switchAll\")\n }\n\n async getModeratorPermission() {\n return await this._dna_request<DNAModeratorPermission>(\"user/moderator/getModeratorPermission\")\n }\n\n async getOpenScreen() {\n return await this._dna_request<DNAScreenResponse>(\"config/getOpenScreen\")\n }\n\n async getPublicKey() {\n return await this._dna_request<{ key: string }>(\"config/getRsaPublicKey\")\n }\n\n async getUserGame() {\n return await this._dna_request<DNAFollowGameIdBean>(\"user/getUserGame\")\n }\n\n async getWikiData() {\n return await this._dna_request<DNAWikiVoEntity>(\"config/getGameWiki\")\n }\n\n async haveOfficialRole() {\n return await this._dna_request<DNAHaveOfficialRoleBean>(\"role/haveOfficialRole\")\n }\n\n async isRedPoint() {\n return await this._dna_request<DNAIsRedPointBean>(\"forum/dynamic/isRedPoint\")\n }\n\n async login(mobile: string, code: string) {\n const data = { code: code, devCode: this.dev_code, gameList: DNA_GAME_ID, loginType: 1, mobile: mobile }\n const res = await this._dna_request<DNAUserDataBean>(\"user/sdkLogin\", data, { sign: true })\n if (res.is_success && res.data) {\n const data = res.data\n if (typeof data.token === \"string\") {\n this.token = data.token\n }\n }\n return res\n }\n\n async oneTapLoginRestriction() {\n return await this._dna_request(\"user/oneTapLoginRestriction\")\n }\n\n async recommendConfig() {\n return await this._dna_request<DNARecommendConfig>(\"forum/recommend/config\")\n }\n\n async refreshToken(refreshToken: string) {\n return await this._dna_request<DNATokenBean>(\"user/refreshToken\", { refreshToken })\n }\n\n async register(code: string, devCode: string, gameList: string, mobile: string, password: string) {\n return await this._dna_request<DNAUserDataBean>(\"user/register\", { code, devCode, gameList, mobile, password })\n }\n\n async saveUserInfo(gender: number | null, headCode: string, headUrl: string, userName: string) {\n return await this._dna_request<DNAUserHeadResponse>(\"user/saveUserInfo\", { gender, headCode, headUrl, userName })\n }\n\n async sendSms(mobile: string, vJson: string, isCaptcha: number | null) {\n return await this._dna_request(\"user/getSmsCode\", { mobile, isCaptcha, vJson })\n }\n\n async signature(newSignature: string) {\n return await this._dna_request(\"user/edit/signature\", { newSignature })\n }\n\n async updateHeadCode(headCode: string) {\n return await this._dna_request<DNAUserHeadResponse>(\"user/updateHeadCode\", { headCode })\n }\n\n async updateHeadUrl(headUrl: string) {\n return await this._dna_request(\"user/updateHeadUrl\", { headUrl })\n }\n\n async updateProfileBg(bgUrl: string) {\n return await this._dna_request(\"user/updateBg\", { bgUrl })\n }\n\n async uploadHead(file: File) {\n const data = new FormData()\n data.append(\"parts\", file)\n return await this.fileUpload(\"user/img/uploadHead\", data)\n }\n\n async uploadProfileBg(file: File) {\n const data = new FormData()\n data.append(\"parts\", file)\n return await this.fileUpload(\"user/img/uploadMineBg\", data)\n }\n\n async getEmoji() {\n return await this._dna_request<DNAEmojiConfigBean[]>(\"config/getEmoji\")\n }\n\n async getGameConfig() {\n return await this._dna_request<DNAGameConfigResponse[]>(\"config/getGameConfig\")\n }\n\n async getGameHeadCode() {\n return await this._dna_request<DNAGameNewHeadBean[]>(\"user/getGameHeadCode\")\n }\n}\n",
15
+ "import type {\n DNAAliProductConfigBean,\n DNAAliProductListBean,\n DNAApplyStatusBean,\n DNACommonBooleanBean,\n DNACreatorDescriptionBean,\n DNACustomCreativeDesc,\n DNAGoldBuyBean,\n DNAGoldDrawBean,\n DNAGoldGoodsEntity,\n DNAGoldRealBean,\n DNAGoldRecordEntity,\n DNAGoldTotalBean,\n DNALookPageBean,\n DNALuckyDrawBean,\n DNAUserAddressBean,\n DNAUserExperienceRecordEntity,\n DNAUserGameLevelEntity,\n DNAUserTaskProcessEntity,\n DNAWinListBean,\n} from \"../type-generated\"\nimport { DNASubModule } from \"./base\"\n\nexport class UserGrowingAPI extends DNASubModule {\n async addAddress(receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this._dna_request(\"user/more/userAddressAdd\", { receiverName, receiverMobile, receiverAddress })\n }\n\n async apply(\n type: number,\n id: number | null,\n concatWay: string,\n otherPlatform: string,\n otherPlatformUrl: string,\n otherPlatformFans: string,\n materialUrl: string,\n gameId: number | null\n ) {\n return await this._dna_request<DNAApplyStatusBean>(\"user/creator/apply\", {\n type,\n id,\n concatWay,\n otherPlatform,\n otherPlatformUrl,\n otherPlatformFans,\n materialUrl,\n gameId,\n })\n }\n\n async awardList(drawId: number) {\n return await this._dna_request<DNAWinListBean>(\"encourage/draw/awardList\", { drawId })\n }\n\n async awardWin(drawId: number, fullName: string, mobile: string, address: string) {\n return await this._dna_request(\"/encourage/draw/awardWin\", { drawId, fullName, mobile, address })\n }\n\n async buyGold(drawId: number, count: number) {\n return await this._dna_request<DNAGoldBuyBean>(\"encourage/draw/buy\", { drawId, count })\n }\n\n async buyProduct(address: string, fullName: string, mobile: string, productId: number) {\n return await this._dna_request(\"/encourage/store/buyProduct\", { address, fullName, mobile, productId })\n }\n\n async deleteAddress(addressId: number) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/deleteUserAddress\", { addressId })\n }\n\n async drawDetail(drawId: number) {\n return await this._dna_request<DNAGoldDrawBean>(\"encourage/draw/detail\", { drawId })\n }\n\n async editAddress(addressId: number, receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/userAddressEdit\", {\n addressId,\n receiverName,\n receiverMobile,\n receiverAddress,\n })\n }\n\n async getAliProductConfig() {\n return await this._dna_request<DNAAliProductConfigBean>(\"encourage/store/ali/getAliStoreConfigAndBanner\")\n }\n\n async getAliProductList(gameId: number | null, pageIndex: number, pageSize: number) {\n return await this._dna_request<DNAAliProductListBean>(\"encourage/store/ali/productList\", { gameId, pageIndex, pageSize })\n }\n\n async getApplyPage() {\n return await this._dna_request<DNACustomCreativeDesc>(\"user/creator/getApplyPage\")\n }\n\n async getExpLogsList(gameId: number, pageIndex: number, pageSize: number) {\n return await this._dna_request<DNAUserExperienceRecordEntity>(\"encourage/level/getExpLogs\", { gameId, pageIndex, pageSize })\n }\n\n async getGameCreator() {\n return await this._dna_request<DNACreatorDescriptionBean>(\"config/identification/getGameCreator\")\n }\n\n async getGoldDetailList(pageIndex: number, pageSize: number, type: number, storeType: number) {\n return await this._dna_request<DNAGoldRecordEntity>(\"encourage/gold/getGoldLogs\", { pageIndex, pageSize, type, storeType })\n }\n\n async getProductList(gameId: number | null, pageIndex: number, pageSize: number, storeType: number) {\n return await this._dna_request<DNAGoldGoodsEntity>(\"encourage/store/productList\", { gameId, pageIndex, pageSize, storeType })\n }\n\n async getTotalGold(type?: number) {\n if (type !== undefined) {\n return await this._dna_request<DNAGoldTotalBean>(\"encourage/gold/getTotalGold\", { type })\n }\n return await this._dna_request<DNAGoldTotalBean>(\"encourage/gold/getTotalGold\")\n }\n\n async getUserAddress(userId: number, type: number) {\n return await this._dna_request<DNAUserAddressBean>(\"user/more/getUserAddress\", { userId, type })\n }\n\n async getUserGameLevel(gameId: number | null, ifProcess: number, otherUserId: number | null) {\n return await this._dna_request<DNAUserGameLevelEntity>(\"encourage/level/getUserGameLevelDetail\", {\n gameId,\n ifProcess,\n otherUserId,\n })\n }\n\n async getUserGameTaskProcess(gameId: number, userId: number) {\n return await this._dna_request<DNAUserTaskProcessEntity>(\"encourage/level/getTaskProcess\", { gameId, userId })\n }\n\n async list(pageIndex: number, pageSize: number, queryType: number | null, gameId: number | null) {\n return await this._dna_request<DNALuckyDrawBean>(\"encourage/draw/list\", { pageIndex, pageSize, queryType, gameId })\n }\n\n async page() {\n return await this._dna_request<DNALookPageBean>(\"user/creator/page\")\n }\n\n async productDetail(productId: number) {\n return await this._dna_request<DNAGoldRealBean>(\"encourage/store/productDetail\", { productId })\n }\n\n async setDefaultAddress(addressId: number) {\n return await this._dna_request<DNACommonBooleanBean>(\"user/more/setDefaultAddress\", { addressId })\n }\n\n async uploadImage(file: File) {\n const data = new FormData()\n data.append(\"parts\", file)\n return await this.fileUpload(\"user/img/uploadHead\", data)\n }\n}\n",
16
+ "import { DNASubModule } from \"./base\"\n\nexport interface DNAMapMatterCategorizeOption {\n icon: string\n id: number\n matters: DNAMapMatter[]\n name: string\n sort?: number\n}\n\nexport interface DNAMatterCategorizeDetail {\n icon: string\n id: number\n matters: DNAMapMatterDetail[]\n name: string\n sort?: number\n}\n\nexport interface DNAMapMatter {\n icon: string\n id: number\n mapMatterCategorizeId: number\n name: string\n sort: number\n}\n\nexport interface DNAMapCategorizeListRes {\n list: DNAMatterCategorizeList[]\n}\n\nexport interface DNAMatterCategorizeList {\n id: number\n maps: DNAMap[]\n name: string\n}\n\nexport interface DNAMapDetailRes {\n floors: DNAMapFloor[]\n matterCategorizes: DNAMatterCategorizeDetail[]\n map: DNAMap\n userSites: DNAMapSite[]\n}\n\nexport interface DNAMap {\n id: number\n name: string\n pid?: number\n}\n\nexport interface DNAMapMatterDetail extends DNAMapMatter {\n sites: DNAMapSite[]\n}\n\nexport interface DNAMapSite {\n id: number\n isHide: number\n mapFloorId: number\n mapId: number\n mapMatterId: number\n x: number\n y: number\n}\n\nexport interface DNAMapFloor {\n floor: number\n id: number\n name: string\n pic: string\n}\n\nexport interface DNAMapSiteDetailRes {\n contributes: DNAMapContribute[]\n description: string\n id: number\n isDel: number\n isHide: number\n mapFloorId: number\n mapId: number\n mapMatterCategorizeId: number\n mapMatterId: number\n pic: string\n script: string\n url: string\n urlDesc: string\n urlIcon: string\n x: number\n y: number\n}\n\ninterface DNAMapContribute {\n userHeadUrl: string\n userId: string\n userName: string\n}\n\nexport interface DNAEmoji {\n content: string[]\n gameId: number\n icon: string\n size: number\n title: string\n url: string\n}\n\nexport class H5API extends DNASubModule {\n async getMapMatterCategorizeOptions() {\n return await this._dna_request_h5<DNAMapMatterCategorizeOption[]>(\"map/matter/categorize/getOptions\")\n }\n\n async getMapCategorizeList() {\n return await this._dna_request_h5<DNAMapCategorizeListRes>(\"map/categorize/list\")\n }\n\n async getMapDetail(id: number) {\n return await this._dna_request_h5<DNAMapDetailRes>(\"map/detail\", { id })\n }\n\n async getMapSiteDetail(id: number) {\n return await this._dna_request_h5<DNAMapSiteDetailRes>(\"map/site/detail\", { id })\n }\n\n async getEmojiList() {\n return await this._dna_request_h5<DNAEmoji[]>(\"config/getEmoji\")\n }\n}\n",
17
+ "export { TimeBasicResponse, RespCode } from \"./TimeBasicResponse\"\nexport { DNABaseAPI, DNASubModule } from \"./modules/base\"\nexport { GameAPI } from \"./modules/game\"\nexport { HomeAPI } from \"./modules/home\"\nexport { ProfileAPI } from \"./modules/profile\"\nexport { SettingAPI } from \"./modules/setting\"\nexport { TrendAPI } from \"./modules/trend\"\nexport { UserAPI } from \"./modules/user\"\nexport { UserGrowingAPI } from \"./modules/usergrowing\"\nexport * from \"./modules/h5\"\nexport * from \"./modules/types\"\nexport * from \"./type-generated\"\nexport * from \"./modules/utils\"\n\nimport { DNABaseAPI } from \"./modules/base\"\nimport { GameAPI } from \"./modules/game\"\nimport { HomeAPI } from \"./modules/home\"\nimport { ProfileAPI } from \"./modules/profile\"\nimport { SettingAPI } from \"./modules/setting\"\nimport { TrendAPI } from \"./modules/trend\"\nimport { UserAPI } from \"./modules/user\"\nimport { UserGrowingAPI } from \"./modules/usergrowing\"\nimport { H5API } from \"./modules/h5\"\nimport { DNA_GAME_ID } from \"./modules/types\"\n\n/**\n * DNA API类,用于与DNA游戏服务器交互\n */\nexport class DNAAPI extends DNABaseAPI {\n game: GameAPI\n home: HomeAPI\n profile: ProfileAPI\n setting: SettingAPI\n trend: TrendAPI\n user: UserAPI\n userGrowing: UserGrowingAPI\n h5: H5API\n\n constructor({\n dev_code = \"\",\n token = \"\",\n ...options\n }: { dev_code?: string; token?: string; fetchFn?: typeof fetch; is_h5?: boolean; rsa_public_key?: string } = {}) {\n super(dev_code, token, options)\n\n this.game = new GameAPI(this)\n this.home = new HomeAPI(this)\n this.profile = new ProfileAPI(this)\n this.setting = new SettingAPI(this)\n this.trend = new TrendAPI(this)\n this.user = new UserAPI(this)\n this.userGrowing = new UserGrowingAPI(this)\n this.h5 = new H5API(this)\n }\n\n /**\n * 手动初始化 API 配置(获取签名配置等)\n */\n async initialize(): Promise<void> {\n await this.initializeSignConfig()\n }\n\n get GAME_ID() {\n return DNA_GAME_ID\n }\n //#region Game 模块便捷方法\n async getMhSwitchStatus() {\n return await this.game.getMhSwitchStatus()\n }\n\n async updateMhSwitchStatus(config: string) {\n return await this.game.updateMhSwitchStatus(config)\n }\n\n async soulTask() {\n return await this.game.soulTask()\n }\n\n async defaultRoleForTool(type: number = 1, otherUserId?: string) {\n return await this.game.defaultRoleForTool(type, otherUserId)\n }\n\n async getRoleDetail(char_id: string | number, char_eid: string, otherUserId?: string) {\n return await this.game.getRoleDetail(char_id, char_eid, otherUserId)\n }\n\n async getWeaponDetail(weapon_id: string | number, weapon_eid: string, otherUserId?: string) {\n return await this.game.getWeaponDetail(weapon_id, weapon_eid, otherUserId)\n }\n\n async getShortNoteInfo() {\n return await this.game.getShortNoteInfo()\n }\n //#endregion\n //#region Home 模块便捷方法\n /**\n * 获取帖子列表\n * @param forumId 论坛ID,默认48(主论坛)46 全部\n * @param pageIndex 页码,默认1\n * @param pageSize 每页数量,默认20\n * @param searchType 搜索类型,默认1:最新 2:热门\n * @param timeType 时间类型,默认0(全部时间)\n * @returns 帖子列表响应\n */\n async getPostList(forumId: number = 48, pageIndex: number = 1, pageSize: number = 20, searchType: number = 1, timeType: number = 0) {\n return await this.home.getPostList(forumId, pageIndex, pageSize, searchType, timeType)\n }\n\n async getPostDetail(postId: string | number) {\n return await this.home.getPostDetail(postId)\n }\n\n async getPostByTopic(\n topicId: number = 177,\n pageIndex: number = 1,\n pageSize: number = 20,\n searchType: number = 1,\n timeType: number = 0\n ) {\n return await this.home.getPostByTopic(topicId, pageIndex, pageSize, searchType, timeType)\n }\n\n async getTaskProcess() {\n return await this.home.getTaskProcess()\n }\n\n async haveSignIn() {\n return await this.home.haveSignIn()\n }\n\n async signCalendar() {\n return await this.home.signCalendar()\n }\n\n async gameSign(dayAwardId: number, period: number) {\n return await this.home.gameSignIn(dayAwardId, period)\n }\n\n async bbsSign() {\n return await this.home.bbsSign()\n }\n\n async getRoleList() {\n return await this.profile.roleManager()\n }\n\n async adminAdjustScore(postId: number, gameForumId: number, weight: string) {\n return await this.home.adminAdjustScore(postId, gameForumId, weight)\n }\n\n async adminDelete(post: { postId: number; gameId?: number; gameForumId: number }, content: string, reasonCode: number) {\n return await this.home.adminDelete(post, content, reasonCode)\n }\n\n async adminMovePost(\n post: { postId: number; gameId?: number; gameForumId: number },\n newGameId: number,\n newForumId: number,\n newTopicIdStr: string\n ) {\n return await this.home.adminMovePost(post, newGameId, newForumId, newTopicIdStr)\n }\n\n async adminRefreshTime(post: { postId: number; gameId?: number; gameForumId: number }, refresh: number) {\n return await this.home.adminRefreshTime(post, refresh)\n }\n\n async blockList() {\n return await this.home.blockList()\n }\n\n async blockOther(blockPostId: number, blockUserId: string, type: number) {\n return await this.home.blockOther(blockPostId, blockUserId, type)\n }\n\n async collect(postId: number, toUserId: string, operateType = 1) {\n return await this.home.collect(postId, toUserId, operateType)\n }\n\n async commentDelete(\n comment: { id: number; gameId: number; gameForumId: number },\n entityType: number,\n content: string,\n reasonCode: number\n ) {\n return await this.home.commentDelete(comment, entityType, content, reasonCode)\n }\n\n async createComment(post: { userId: string; postId: string; gameForumId: number }, content: string) {\n return await this.home.createComment(post, content)\n }\n\n async createReply(post: { userId: string; postId: string; postCommentId: string; gameForumId: number }, content: string) {\n return await this.home.createReply(post, content)\n }\n\n async createReplyList(\n post: { userId: string; postId: string; postCommentId: string; postCommentReplyId: string; gameForumId: number },\n content: string\n ) {\n return await this.home.createReplyList(post, content)\n }\n\n async deletePost(deleteType: number, id: number) {\n return await this.home.deletePost(deleteType, id)\n }\n\n async followUser(followUserId: string, unfollow?: boolean) {\n return await this.home.followUser(followUserId, unfollow)\n }\n\n async getFollowState(followUserId: string) {\n return await this.home.getFollowState(followUserId)\n }\n\n async getDoujin(forumId: number) {\n return await this.home.getDoujin(forumId)\n }\n\n async getExchange(forumId: number) {\n return await this.home.getExchange(forumId)\n }\n\n async getGameBanner(gameId = DNA_GAME_ID) {\n return await this.home.getGameBanner(gameId)\n }\n\n async getPostCommentList(postId: number, pageIndex = 1, pageSize = 20, isOnlyPublisher = 0) {\n return await this.home.getPostCommentList(postId, pageIndex, pageSize, isOnlyPublisher)\n }\n\n async getRankList(forumId: number) {\n return await this.home.getRankList(forumId)\n }\n\n async getRecommendPosts(gameId = DNA_GAME_ID, pageIndex = 1, pageSize = 20) {\n return await this.home.getRecommendPosts(gameId, pageIndex, pageSize)\n }\n\n async getReplyList(postId: number, postCommentId: number, pageIndex = 1, pageSize = 20) {\n return await this.home.getReplyList(postId, postCommentId, pageIndex, pageSize)\n }\n\n async getStatistics(gameId = DNA_GAME_ID) {\n return await this.home.getStatistics(gameId)\n }\n\n async getTips() {\n return await this.home.getTips()\n }\n\n async getWalkthrough(forumId: number) {\n return await this.home.getWalkthrough(forumId)\n }\n\n async hotList(type = 1, gameId = DNA_GAME_ID) {\n return await this.home.hotList(type, gameId)\n }\n\n async isRedPoint() {\n return await this.home.isRedPoint()\n }\n\n async likePost(post: { gameForumId: string; postId: string; postType: string; userId: string }) {\n return await this.home.like(post)\n }\n\n async lockPost(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n return await this.home.lockPost(post, operateType)\n }\n\n async postDownOrUp(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n return await this.home.postDownOrUp(post, operateType)\n }\n\n async postElite(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n return await this.home.postElite(post, operateType)\n }\n\n async postHide(post: { postId: number; gameId?: number; gameForumId: number }, operateType: number) {\n return await this.home.postHide(post, operateType)\n }\n\n async reRank(post: { postId: number; gameId?: number; gameForumId: number }, weight: number) {\n return await this.home.reRank(post, weight)\n }\n\n async receiveLog(periodId: number, pageIndex: number, pageSize: number) {\n return await this.home.receiveLog(periodId, pageIndex, pageSize)\n }\n\n async recommendList(recIndex: number, newIndex: number, size: number, history: string, gameId = DNA_GAME_ID) {\n return await this.home.recommendList(recIndex, newIndex, size, history, gameId)\n }\n\n async report(\n { commentId = 0, postId = 0, replyId = 0 }: { commentId?: number; postId?: number; replyId?: number },\n reportReason = 1,\n reportType = 1\n ) {\n return await this.home.report({ commentId, postId, replyId }, reportReason, reportType)\n }\n\n async searchPost(keyword: string, pageIndex: number, pageSize: number, gameId = DNA_GAME_ID, searchType = 1) {\n return await this.home.searchPost(keyword, pageIndex, pageSize, gameId, searchType)\n }\n\n async searchTopic(keyword: string, pageIndex: number, pageSize = 20, gameId = DNA_GAME_ID) {\n return await this.home.searchTopic(keyword, pageIndex, pageSize, gameId)\n }\n\n async searchUser(keyword: string, pageIndex: number, pageSize: number) {\n return await this.home.searchUser(keyword, pageIndex, pageSize)\n }\n\n async shareTask() {\n return await this.home.shareTask()\n }\n\n async strongRecommend(post: { postId: number; gameId?: number; gameForumId: number }, operateType = 1) {\n return await this.home.strongRecommend(post, operateType)\n }\n\n async viewCommunity() {\n return await this.home.viewCommunity()\n }\n\n async viewCount(postId: number, gameId = DNA_GAME_ID) {\n return await this.home.viewCount(postId, gameId)\n }\n //#endregion\n //#region User 模块便捷方法\n async loginLog() {\n return await this.user.loginLog()\n }\n\n async login(mobile: string, code: string) {\n return await this.user.login(mobile, code)\n }\n\n async getSmsCode(mobile: string, vJson: string) {\n return await this.user.sendSms(mobile, vJson, 1)\n }\n\n async getMine(userId = \"\", searchType = 1, type = 0) {\n return await this.profile.mine(userId, searchType, type)\n }\n\n async getOtherMine(userId = \"709542994134436647\", searchType = 1, type = 2) {\n return await this.profile.mine(userId, searchType, type)\n }\n\n async canEditNickName() {\n return await this.user.canEditNickName()\n }\n\n async cleanToken() {\n return await this.user.cleanToken()\n }\n\n async editGender(gender: number) {\n return await this.user.editGender(gender)\n }\n\n async editNickName(userName: string) {\n return await this.user.editNickName(userName)\n }\n\n async getCommonConfig() {\n return await this.user.getCommonConfig()\n }\n\n async getConfig() {\n return await this.user.getConfig()\n }\n\n async getConfigSwitch() {\n return await this.user.getConfigSwitch()\n }\n\n async getModeratorPermission() {\n return await this.user.getModeratorPermission()\n }\n\n async getOpenScreen() {\n return await this.user.getOpenScreen()\n }\n\n async getPublicKey() {\n return await this.user.getPublicKey()\n }\n\n async getUserGame() {\n return await this.user.getUserGame()\n }\n\n async getWikiData() {\n return await this.user.getWikiData()\n }\n\n async haveOfficialRole() {\n return await this.user.haveOfficialRole()\n }\n\n async oneTapLoginRestriction() {\n return await this.user.oneTapLoginRestriction()\n }\n\n async recommendConfig() {\n return await this.user.recommendConfig()\n }\n\n async refreshToken(refreshToken: string) {\n return await this.user.refreshToken(refreshToken)\n }\n\n async register(code: string, devCode: string, gameList: string, mobile: string, password: string) {\n return await this.user.register(code, devCode, gameList, mobile, password)\n }\n\n async saveUserInfo(gender: number | null, headCode: string, headUrl: string, userName: string) {\n return await this.user.saveUserInfo(gender, headCode, headUrl, userName)\n }\n\n async signature(newSignature: string) {\n return await this.user.signature(newSignature)\n }\n\n async updateHeadCode(headCode: string) {\n return await this.user.updateHeadCode(headCode)\n }\n\n async updateHeadUrl(headUrl: string) {\n return await this.user.updateHeadUrl(headUrl)\n }\n\n async updateProfileBg(bgUrl: string) {\n return await this.user.updateProfileBg(bgUrl)\n }\n\n async uploadHead(file: File) {\n return await this.user.uploadHead(file)\n }\n\n async uploadProfileBg(file: File) {\n return await this.user.uploadProfileBg(file)\n }\n\n async getEmoji() {\n return await this.user.getEmoji()\n }\n\n async getGameConfig() {\n return await this.user.getGameConfig()\n }\n\n async getGameHeadCode() {\n return await this.user.getGameHeadCode()\n }\n\n //#endregion\n //#region H5 模块便捷方法\n async getMapCategorizeList() {\n return await this.h5.getMapCategorizeList()\n }\n\n async getMapDetail(id: number) {\n return await this.h5.getMapDetail(id)\n }\n\n async getMapSiteDetail(id: number) {\n return await this.h5.getMapSiteDetail(id)\n }\n\n async getEmojiList() {\n return await this.h5.getEmojiList()\n }\n\n async getMapMatterCategorizeOptions() {\n return await this.h5.getMapMatterCategorizeOptions()\n }\n //#endregion\n //#region Profile 模块便捷方法\n async blackUser(toUserId: string, type: number) {\n return await this.profile.blackUser(toUserId, type)\n }\n\n async cleanFansNew(type: number, userFollowId: string) {\n return await this.profile.cleanFansNew(type, userFollowId)\n }\n\n async defaultRole(otherUserId?: string, type = 1) {\n return await this.profile.defaultRole(otherUserId, type)\n }\n\n async deleteRole(roleBoundId: string) {\n return await this.profile.deleteRole(roleBoundId)\n }\n\n async draftDelete(draftId: string) {\n return await this.profile.draftDelete(draftId)\n }\n\n async fans(otherUserId: string, pageNo: number, pageSize: number, type: number) {\n return await this.profile.fans(otherUserId, pageNo, pageSize, type)\n }\n\n async fastBind() {\n return await this.profile.fastBind()\n }\n\n async follow(otherUserId: string, pageNo: number, pageSize: number, type: number) {\n return await this.profile.follow(otherUserId, pageNo, pageSize, type)\n }\n\n async getApplyStatus() {\n return await this.profile.getApplyStatus()\n }\n\n async getDraftList(pageIndex: number, pageSize: number) {\n return await this.profile.getDraftList(pageIndex, pageSize)\n }\n\n async getMineComment(otherUserId: string, pageIndex: number, pageSize: number, type: number) {\n return await this.profile.getMineComment(otherUserId, pageIndex, pageSize, type)\n }\n\n async getMinePost(otherUserId: string, pageIndex: number, pageSize: number, searchType: number, type: number, postType?: number) {\n return await this.profile.getMinePost(otherUserId, pageIndex, pageSize, searchType, type, postType)\n }\n\n async getProfileNotifySwitch() {\n return await this.profile.getNotifySwitch()\n }\n\n async historyView(pageIndex: number, pageSize: number) {\n return await this.profile.historyView(pageIndex, pageSize)\n }\n\n async likeProfilePost(data: {\n forumId: number\n gameId: number\n likeType: number\n operateType: number\n postCommentId: number\n postCommentReplyId: number\n postId: number\n postType: number\n toUserId: string\n }) {\n return await this.profile.like(data)\n }\n\n async manualBound(roleId: string, type: number, code: string) {\n return await this.profile.manualBound(roleId, type, code)\n }\n\n async mine(otherUserId: string, searchType: number, type: number, postType?: number) {\n return await this.profile.mine(otherUserId, searchType, type, postType)\n }\n\n async mineV2(otherUserId: string) {\n return await this.profile.mineV2(otherUserId)\n }\n\n async moderatorByGame(gameId: number) {\n return await this.profile.moderatorByGame(gameId)\n }\n\n async muteCancel(toUserId: string) {\n return await this.profile.muteCancel(toUserId)\n }\n\n async muteUser(toUserId: string, gameIdStr: string, type: number, reason: number, content: string) {\n return await this.profile.muteUser(toUserId, gameIdStr, type, reason, content)\n }\n\n async resetDefault(roleBoundId: string) {\n return await this.profile.resetDefault(roleBoundId)\n }\n\n //#endregion\n //#region Setting 模块便捷方法\n async addAddress(receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this.setting.addAddress(receiverName, receiverMobile, receiverAddress)\n }\n\n async cancelCode(code: string) {\n return await this.setting.cancelCode(code)\n }\n\n async cancel(cancelType: number, operateType: number, position: string, cancelReason: number | null, reasonDetail: string) {\n return await this.setting.cancel(cancelType, operateType, position, cancelReason, reasonDetail)\n }\n\n async deleteAddress(addressId: number) {\n return await this.setting.deleteAddress(addressId)\n }\n\n async editAddress(addressId: number, receiverName: string, receiverMobile: string, receiverAddress: string) {\n return await this.setting.editAddress(addressId, receiverName, receiverMobile, receiverAddress)\n }\n\n async feedback(listPic: string, proDesc: string, mobile: string, isLogin: number) {\n return await this.setting.feedback(listPic, proDesc, mobile, isLogin)\n }\n\n async getCancelStatus() {\n return await this.setting.getCancelStatus()\n }\n\n async getPrivateSet() {\n return await this.setting.getPrivateSet()\n }\n\n async getUserAddress(userId: number, type: number) {\n return await this.setting.getUserAddress(userId, type)\n }\n\n async getUserBlackList(pageIndex: number, pageSize: number) {\n return await this.setting.getUserBlackList(pageIndex, pageSize)\n }\n\n async msgListDetail(pageNo: number, pageSize: number, type: number) {\n return await this.setting.msgListDetail(pageNo, pageSize, type)\n }\n\n async postListDetail(pageNo: number, pageSize: number, type: number) {\n return await this.setting.postListDetail(pageNo, pageSize, type)\n }\n\n async privateSet(operateType: number, option: number) {\n return await this.setting.privateSet(operateType, option)\n }\n\n async sendSms(mobile: string, timeStamp: string, type: number) {\n return await this.setting.sendSms(mobile, timeStamp, type)\n }\n\n async setDefaultAddress(addressId: number) {\n return await this.setting.setDefaultAddress(addressId)\n }\n\n async setNotifySwitch(operateType: number, switchType: number) {\n return await this.setting.setNotifySwitch(operateType, switchType)\n }\n\n async uploadFeedBack(file: File) {\n return await this.setting.uploadFeedBack(file)\n }\n\n //#endregion\n //#region Trend 模块便捷方法\n async draftSave(\n content: string,\n draftId: string,\n h5Content: string,\n postTitle: string,\n postType: number,\n gameId: number,\n videoReUpload: number\n ) {\n return await this.trend.draftSave(content, draftId, h5Content, postTitle, postType, gameId, videoReUpload)\n }\n\n async getConfigTopicByGameId(name: string, showType: number) {\n return await this.trend.getConfigTopicByGameId(name, showType)\n }\n\n async getPostPublishPage() {\n return await this.trend.getPostPublishPage()\n }\n\n async getRecommend(history: string, pageSize: number) {\n return await this.trend.getRecommend(history, pageSize)\n }\n\n async getVodToken(fileName: string, title: string) {\n return await this.trend.getVodToken(fileName, title)\n }\n\n async trendList(pageIndex: number, pageSize: number, userId: string) {\n return await this.trend.list(pageIndex, pageSize, userId)\n }\n\n async parseLink(link: string) {\n return await this.trend.parseLink(link)\n }\n\n async posAdminEdit(\n content: string,\n gameForumId: number,\n h5Content: string,\n postId: string,\n postTitle: string,\n topics: string,\n postType: number,\n gameId: number,\n videoReUpload: number\n ) {\n return await this.trend.posAdminEdit(content, gameForumId, h5Content, postId, postTitle, topics, postType, gameId, videoReUpload)\n }\n\n async postEdit(\n content: string,\n gameForumId: number,\n h5Content: string,\n postId: string,\n postTitle: string,\n topics: string,\n postType: number,\n videoReUpload: number\n ) {\n return await this.trend.postEdit(content, gameForumId, h5Content, postId, postTitle, topics, postType, videoReUpload)\n }\n\n async postPublish(\n content: string,\n draftId: string,\n gameForumId: number,\n gameId: number,\n h5Content: string,\n postTitle: string,\n postType: number,\n topics: string\n ) {\n return await this.trend.postPublish(content, draftId, gameForumId, gameId, h5Content, postTitle, postType, topics)\n }\n\n async safeCheck(url: string) {\n return await this.trend.safeCheck(url)\n }\n\n async uploadImage(file: File) {\n return await this.trend.uploadImage(file)\n }\n\n async videoPostPublish(\n content: string,\n draftId: string,\n gameForumId: number,\n gameId: number,\n h5Content: string,\n postTitle: string,\n postType: number,\n topics: string\n ) {\n return await this.trend.videoPostPublish(content, draftId, gameForumId, gameId, h5Content, postTitle, postType, topics)\n }\n\n //#endregion\n //#region UserGrowing 模块便捷方法\n async apply(\n type: number,\n id: number | null,\n concatWay: string,\n otherPlatform: string,\n otherPlatformUrl: string,\n otherPlatformFans: string,\n materialUrl: string,\n gameId: number | null\n ) {\n return await this.userGrowing.apply(type, id, concatWay, otherPlatform, otherPlatformUrl, otherPlatformFans, materialUrl, gameId)\n }\n\n async awardList(drawId: number) {\n return await this.userGrowing.awardList(drawId)\n }\n\n async awardWin(drawId: number, fullName: string, mobile: string, address: string) {\n return await this.userGrowing.awardWin(drawId, fullName, mobile, address)\n }\n\n async buyGold(drawId: number, count: number) {\n return await this.userGrowing.buyGold(drawId, count)\n }\n\n async buyProduct(address: string, fullName: string, mobile: string, productId: number) {\n return await this.userGrowing.buyProduct(address, fullName, mobile, productId)\n }\n\n async drawDetail(drawId: number) {\n return await this.userGrowing.drawDetail(drawId)\n }\n\n async getAliProductConfig() {\n return await this.userGrowing.getAliProductConfig()\n }\n\n async getAliProductList(gameId: number | null, pageIndex: number, pageSize: number) {\n return await this.userGrowing.getAliProductList(gameId, pageIndex, pageSize)\n }\n\n async getApplyPage() {\n return await this.userGrowing.getApplyPage()\n }\n\n async getExpLogsList(gameId: number, pageIndex: number, pageSize: number) {\n return await this.userGrowing.getExpLogsList(gameId, pageIndex, pageSize)\n }\n\n async getGameCreator() {\n return await this.userGrowing.getGameCreator()\n }\n\n async getGoldDetailList(pageIndex: number, pageSize: number, type: number, storeType: number) {\n return await this.userGrowing.getGoldDetailList(pageIndex, pageSize, type, storeType)\n }\n\n async getProductList(gameId: number | null, pageIndex: number, pageSize: number, storeType: number) {\n return await this.userGrowing.getProductList(gameId, pageIndex, pageSize, storeType)\n }\n\n async getTotalGold(type?: number) {\n return await this.userGrowing.getTotalGold(type)\n }\n\n async getUserGameLevel(gameId: number | null, ifProcess: number, otherUserId: number | null) {\n return await this.userGrowing.getUserGameLevel(gameId, ifProcess, otherUserId)\n }\n\n async getUserGameTaskProcess(gameId: number, userId: number) {\n return await this.userGrowing.getUserGameTaskProcess(gameId, userId)\n }\n\n async list(pageIndex: number, pageSize: number, queryType: number | null, gameId: number | null) {\n return await this.userGrowing.list(pageIndex, pageSize, queryType, gameId)\n }\n\n async page() {\n return await this.userGrowing.page()\n }\n\n async productDetail(productId: number) {\n return await this.userGrowing.productDetail(productId)\n }\n\n //#endregion\n}\n"
18
18
  ],
19
- "mappings": "AAAO,IAAK,GAAL,CAAK,IAAL,CACH,UAAQ,MAAR,QACA,YAAU,GAAV,UACA,YAAU,KAAV,UACA,gBAAc,KAAd,cACA,iBAAe,KAAf,iBALQ,QAQL,MAAM,CAA2B,CACpC,KAAe,EACf,IAAc,GACd,KAEA,WAAW,CAAC,EAAe,CACvB,KAAK,KAAO,EAAS,MAAQ,EAC7B,KAAK,IAAM,EAAS,KAAO,GAC3B,KAAK,KAAO,EAAS,QAGrB,WAAU,EAAY,CACtB,OAAO,KAAK,OAAS,KAAoB,KAAK,OAAS,KAGvD,QAAO,EAAY,CACnB,OAAO,KAAK,iBAGT,IAAkB,CAAC,EAAa,EAAe,KAAsC,CACxF,OAAO,IAAI,EAAqB,CAAE,OAAM,MAAK,KAAM,MAAU,CAAC,EAEtE,CC9BA,6BAqBO,SAAS,CAAW,CAAC,EAAc,EAAgC,CACtE,GAAI,CACA,IAAM,EAAkB,CAAC,EACzB,QAAS,EAAI,EAAG,EAAI,EAAe,OAAQ,GAAK,GAC5C,EAAM,KAAK,EAAe,MAAM,EAAG,EAAI,EAAE,CAAC,EAE9C,IAAM,EAAM;AAAA,EAA+B,EAAM,KAAK;AAAA,CAAI;AAAA,0BAEpD,EAAkB,MAAI,iBAAiB,CAAG,EAC1C,EAAkB,OAAK,WAAW,CAAI,EACtC,EAAY,EAAU,QAAQ,CAAS,EAE7C,OAAa,OAAK,SAAS,CA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,CACzD,OAAO,MAAM,KAAK,YAAY,uBAAuB,EAAQ,CAAM,OAGjE,KAAI,CAAC,EAAmB,EAAkB,EAA0B,EAAuB,CAC7F,OAAO,MAAM,KAAK,YAAY,KAAK,EAAW,EAAU,EAAW,CAAM,OAGvE,KAAI,EAAG,CACT,OAAO,MAAM,KAAK,YAAY,KAAK,OAGjC,cAAa,CAAC,EAAmB,CACnC,OAAO,MAAM,KAAK,YAAY,cAAc,CAAS,EAI7D",
20
+ "debugId": "1FBE1CA11594482D64756E2164756E21",
21
21
  "names": []
22
22
  }
@@ -1,5 +1,5 @@
1
1
  import { TimeBasicResponse } from "../TimeBasicResponse";
2
- import { RequestOptions, HeadersPayload } from "./utils";
2
+ import { type HeadersPayload, type RequestOptions } from "./utils";
3
3
  export declare class DNABaseAPI {
4
4
  dev_code: string;
5
5
  token: string;
@@ -1,12 +1,11 @@
1
- import { DNASubModule, DNABaseAPI } from "./base";
2
- import { DNARoleEntity, DNAShortNoteEntity, DNACharDetailEntity, DNAWeaponDetailEntity, DNAPushStringBean, DNASoulTaskBean } from "../type-generated";
1
+ import type { DNACharDetailEntity, DNAPushStringBean, DNARoleEntity, DNAShortNoteEntity, DNASoulTaskBean, DNAWeaponDetailEntity } from "../type-generated";
2
+ import { DNASubModule } from "./base";
3
3
  export declare class GameAPI extends DNASubModule {
4
- constructor(base: DNABaseAPI);
5
4
  defaultRoleForTool(type?: number, otherUserId?: string): Promise<import("..").TimeBasicResponse<DNARoleEntity>>;
6
5
  getMhSwitchStatus(): Promise<import("..").TimeBasicResponse<DNAPushStringBean>>;
7
- getRoleDetail(char_id: string, char_eid: string, otherUserId?: string): Promise<import("..").TimeBasicResponse<DNACharDetailEntity>>;
6
+ getRoleDetail(char_id: number | string, char_eid: string, otherUserId?: string): Promise<import("..").TimeBasicResponse<DNACharDetailEntity>>;
8
7
  getShortNoteInfo(): Promise<import("..").TimeBasicResponse<DNAShortNoteEntity>>;
9
- getWeaponDetail(weapon_id: string, weapon_eid: string, otherUserId?: string): Promise<import("..").TimeBasicResponse<DNAWeaponDetailEntity>>;
8
+ getWeaponDetail(weapon_id: number | string, weapon_eid: string, otherUserId?: string): Promise<import("..").TimeBasicResponse<DNAWeaponDetailEntity>>;
10
9
  updateMhSwitchStatus(config: string): Promise<import("..").TimeBasicResponse<any>>;
11
10
  soulTask(): Promise<import("..").TimeBasicResponse<DNASoulTaskBean>>;
12
11
  }
@@ -1,4 +1,4 @@
1
- import { DNASubModule, DNABaseAPI } from "./base";
1
+ import { DNASubModule } from "./base";
2
2
  export interface DNAMapMatterCategorizeOption {
3
3
  icon: string;
4
4
  id: number;
@@ -89,7 +89,6 @@ export interface DNAEmoji {
89
89
  url: string;
90
90
  }
91
91
  export declare class H5API extends DNASubModule {
92
- constructor(base: DNABaseAPI);
93
92
  getMapMatterCategorizeOptions(): Promise<import("..").TimeBasicResponse<DNAMapMatterCategorizeOption[]>>;
94
93
  getMapCategorizeList(): Promise<import("..").TimeBasicResponse<DNAMapCategorizeListRes>>;
95
94
  getMapDetail(id: number): Promise<import("..").TimeBasicResponse<DNAMapDetailRes>>;
@@ -1,7 +1,6 @@
1
- import { DNASubModule, DNABaseAPI } from "./base";
2
- import { DNAPostDetailResponse, DNAGameSignInShowDataBean, DNAGameSignInResultBean, DNAUserTaskProcessEntity, DNADiscussAreaResponse, DNAHomeOffWaterResponse, DNATipsBean, DNAIsRedPointBean, DNARecommendBean, DNATopicListResponse, DNAReplyListResponse, DNACommentListResponse, DNASignInBean, DNABlockBean, DNACreateCommentResponse, DNAReplayCommentResponse, DNAFollowBean, DNAGameBannerBean, DNAFraternityResponse, DNAStatisticsBean, DNAPostListBean, DNAReceiveRecord, DNASearchPostBean, DNASearchTopicBean, DNASearchUserBean, DNASoulTaskBean } from "../type-generated";
1
+ import type { DNABlockBean, DNACommentListResponse, DNACreateCommentResponse, DNADiscussAreaResponse, DNAFollowBean, DNAFraternityResponse, DNAGameBannerBean, DNAGameSignInResultBean, DNAGameSignInShowDataBean, DNAHomeOffWaterResponse, DNAIsRedPointBean, DNAPostDetailResponse, DNAPostListBean, DNAReceiveRecord, DNARecommendBean, DNAReplayCommentResponse, DNAReplyListResponse, DNASearchPostBean, DNASearchTopicBean, DNASearchUserBean, DNASignInBean, DNASoulTaskBean, DNAStatisticsBean, DNATipsBean, DNATopicListResponse, DNAUserTaskProcessEntity } from "../type-generated";
2
+ import { DNASubModule } from "./base";
3
3
  export declare class HomeAPI extends DNASubModule {
4
- constructor(base: DNABaseAPI);
5
4
  adminAdjustScore(postId: number, gameForumId: number, weight: string, gameId?: number): Promise<import("..").TimeBasicResponse<any>>;
6
5
  adminDelete(post: {
7
6
  postId: number;
@@ -53,7 +52,7 @@ export declare class HomeAPI extends DNASubModule {
53
52
  getGameBanner(gameId?: number): Promise<import("..").TimeBasicResponse<DNAGameBannerBean>>;
54
53
  getPostByTopic(topicId?: number, pageIndex?: number, pageSize?: number, searchType?: number, timeType?: number): Promise<import("..").TimeBasicResponse<DNATopicListResponse>>;
55
54
  getPostCommentList(postId: number, pageIndex?: number, pageSize?: number, isOnlyPublisher?: number): Promise<import("..").TimeBasicResponse<DNACommentListResponse>>;
56
- getPostDetail(postId: string): Promise<import("..").TimeBasicResponse<DNAPostDetailResponse>>;
55
+ getPostDetail(postId: string | number): Promise<import("..").TimeBasicResponse<DNAPostDetailResponse>>;
57
56
  getPostList(forumId?: number, pageIndex?: number, pageSize?: number, searchType?: number, timeType?: number): Promise<import("..").TimeBasicResponse<DNADiscussAreaResponse>>;
58
57
  getRankList(forumId: number): Promise<import("..").TimeBasicResponse<DNAFraternityResponse>>;
59
58
  getRecommendPosts(gameId?: number, pageIndex?: number, pageSize?: number): Promise<import("..").TimeBasicResponse<DNAHomeOffWaterResponse>>;
@@ -1,7 +1,6 @@
1
- import { DNASubModule, DNABaseAPI } from "./base";
2
- import { DNARoleEntityForTrend, DNARoleListBean, DNAMineFansBean, DNAMineFollowBean, DNADraftBean, DNAFastBindResultBean, DNABindStatus, DNAProfileResponse, DNAProfileLoadResponse, DNANotifySwitchEntity, DNAHistoryBean, DNAAcewarBean, DNAModeratorByGame } from "../type-generated";
1
+ import type { DNAAcewarBean, DNABindStatus, DNADraftBean, DNAFastBindResultBean, DNAHistoryBean, DNAMineFansBean, DNAMineFollowBean, DNAModeratorByGame, DNANotifySwitchEntity, DNAProfileLoadResponse, DNAProfileResponse, DNARoleEntityForTrend, DNARoleListBean } from "../type-generated";
2
+ import { DNASubModule } from "./base";
3
3
  export declare class ProfileAPI extends DNASubModule {
4
- constructor(base: DNABaseAPI);
5
4
  blackUser(toUserId: string, type: number): Promise<import("..").TimeBasicResponse<any>>;
6
5
  cleanFansNew(type: number, userFollowId: string): Promise<import("..").TimeBasicResponse<any>>;
7
6
  collect(postId: number, toUserId: string, operateType?: number): Promise<import("..").TimeBasicResponse<any>>;
@@ -1,7 +1,6 @@
1
- import { DNASubModule, DNABaseAPI } from "./base";
2
- import { DNACancleStatus, DNACommonBooleanBean, DNAPrivateSetBean, DNAUserAddressBean, DNAsettingBlackBean, DNAsettingMsgShiledBean, DNAsettingPostShiledBean, DNANotifySwitchEntity } from "../type-generated";
1
+ import type { DNACancleStatus, DNACommonBooleanBean, DNANotifySwitchEntity, DNAPrivateSetBean, DNAsettingBlackBean, DNAsettingMsgShiledBean, DNAsettingPostShiledBean, DNAUserAddressBean } from "../type-generated";
2
+ import { DNASubModule } from "./base";
3
3
  export declare class SettingAPI extends DNASubModule {
4
- constructor(base: DNABaseAPI);
5
4
  addAddress(receiverName: string, receiverMobile: string, receiverAddress: string): Promise<import("..").TimeBasicResponse<any>>;
6
5
  blackUser(toUserId: string, type: number): Promise<import("..").TimeBasicResponse<any>>;
7
6
  cancelCode(code: string): Promise<import("..").TimeBasicResponse<any>>;
@@ -1,7 +1,6 @@
1
- import { DNASubModule, DNABaseAPI } from "./base";
2
- import { DNATopicListBean, DNAParseLinkBean, DNAPostPublishPageBean, DNAPublishPostResponse, DNARecomdBean, DNATrendPostBean, DNAVodTokenBean, DNATipsBean, DNACommonBooleanBean } from "../type-generated";
1
+ import type { DNACommonBooleanBean, DNAParseLinkBean, DNAPostPublishPageBean, DNAPublishPostResponse, DNARecomdBean, DNATipsBean, DNATopicListBean, DNATrendPostBean, DNAVodTokenBean } from "../type-generated";
2
+ import { DNASubModule } from "./base";
3
3
  export declare class TrendAPI extends DNASubModule {
4
- constructor(base: DNABaseAPI);
5
4
  draftSave(content: string, draftId: string, h5Content: string, postTitle: string, postType: number, gameId: number, videoReUpload: number): Promise<import("..").TimeBasicResponse<any>>;
6
5
  followUser(followUserId: string, operateType: number): Promise<import("..").TimeBasicResponse<any>>;
7
6
  getConfigTopicByGameId(name: string, showType: number): Promise<import("..").TimeBasicResponse<DNATopicListBean[]>>;
@@ -1,7 +1,6 @@
1
- import { DNASubModule, DNABaseAPI } from "./base";
2
- import { DNABlockBean, DNACanEditNickNameBean, DNACommonConfigEntity, DNAConfigSwitchBean, DNAFollowGameIdBean, DNAHaveOfficialRoleBean, DNAIsRedPointBean, DNARecommendConfig, DNAScreenResponse, DNASplashResponse, DNATokenBean, DNAUserHeadResponse, DNAWikiVoEntity, DNAModeratorPermission, DNAUserDataBean, DNAGameConfigResponse, DNAGameNewHeadBean, DNAEmojiConfigBean } from "../type-generated";
1
+ import type { DNABlockBean, DNACanEditNickNameBean, DNACommonConfigEntity, DNAConfigSwitchBean, DNAEmojiConfigBean, DNAFollowGameIdBean, DNAGameConfigResponse, DNAGameNewHeadBean, DNAHaveOfficialRoleBean, DNAIsRedPointBean, DNAModeratorPermission, DNARecommendConfig, DNAScreenResponse, DNASplashResponse, DNATokenBean, DNAUserDataBean, DNAUserHeadResponse, DNAWikiVoEntity } from "../type-generated";
2
+ import { DNASubModule } from "./base";
3
3
  export declare class UserAPI extends DNASubModule {
4
- constructor(base: DNABaseAPI);
5
4
  loginLog(): Promise<import("..").TimeBasicResponse<any>>;
6
5
  blockList(): Promise<import("..").TimeBasicResponse<DNABlockBean>>;
7
6
  canEditNickName(): Promise<import("..").TimeBasicResponse<DNACanEditNickNameBean>>;
@@ -1,7 +1,6 @@
1
- import { DNASubModule, DNABaseAPI } from "./base";
2
- import { DNAAliProductConfigBean, DNAAliProductListBean, DNAApplyStatusBean, DNACreatorDescriptionBean, DNACustomCreativeDesc, DNAGoldBuyBean, DNAGoldDrawBean, DNAGoldGoodsEntity, DNAGoldRealBean, DNAGoldRecordEntity, DNAGoldTotalBean, DNALookPageBean, DNALuckyDrawBean, DNAUserExperienceRecordEntity, DNAUserGameLevelEntity, DNAUserTaskProcessEntity, DNAWinListBean, DNACommonBooleanBean, DNAUserAddressBean } from "../type-generated";
1
+ import type { DNAAliProductConfigBean, DNAAliProductListBean, DNAApplyStatusBean, DNACommonBooleanBean, DNACreatorDescriptionBean, DNACustomCreativeDesc, DNAGoldBuyBean, DNAGoldDrawBean, DNAGoldGoodsEntity, DNAGoldRealBean, DNAGoldRecordEntity, DNAGoldTotalBean, DNALookPageBean, DNALuckyDrawBean, DNAUserAddressBean, DNAUserExperienceRecordEntity, DNAUserGameLevelEntity, DNAUserTaskProcessEntity, DNAWinListBean } from "../type-generated";
2
+ import { DNASubModule } from "./base";
3
3
  export declare class UserGrowingAPI extends DNASubModule {
4
- constructor(base: DNABaseAPI);
5
4
  addAddress(receiverName: string, receiverMobile: string, receiverAddress: string): Promise<import("..").TimeBasicResponse<any>>;
6
5
  apply(type: number, id: number | null, concatWay: string, otherPlatform: string, otherPlatformUrl: string, otherPlatformFans: string, materialUrl: string, gameId: number | null): Promise<import("..").TimeBasicResponse<DNAApplyStatusBean>>;
7
6
  awardList(drawId: number): Promise<import("..").TimeBasicResponse<DNAWinListBean>>;
@@ -502,8 +502,7 @@ export interface DNAScreenResponse {
502
502
  export interface DNAFollowGameIdBean {
503
503
  userGameList: DNAUserGameListBean[];
504
504
  }
505
- export interface DNAWikiVoEntity {
506
- }
505
+ export type DNAWikiVoEntity = {};
507
506
  export interface DNAHaveOfficialRoleBean {
508
507
  canBoundOfficialRole: boolean;
509
508
  haveOfficialRole: boolean;
@@ -584,7 +583,7 @@ export interface DNABlockListBean {
584
583
  }
585
584
  export interface DNACharDetailBean {
586
585
  attribute: DNAAttributeBean;
587
- charId: string;
586
+ charId: number;
588
587
  charName: string;
589
588
  currentVolume: string;
590
589
  elementIcon: string;
@@ -1585,7 +1584,7 @@ export interface DNAWeaponBean {
1585
1584
  skillLevel: number;
1586
1585
  unLocked: boolean;
1587
1586
  weaponEid: string;
1588
- weaponId: string;
1587
+ weaponId: number;
1589
1588
  }
1590
1589
  export interface DNARoleParamBean {
1591
1590
  paramKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dna-api",
3
- "version": "0.3.7",
3
+ "version": "0.3.10",
4
4
  "description": "dna bbs api",
5
5
  "author": {
6
6
  "name": "pa001024",
@@ -18,10 +18,7 @@
18
18
  "default": "./dist/index.js",
19
19
  "types": "./dist/index.d.ts"
20
20
  },
21
- "keywords": [
22
- "dna",
23
- "api"
24
- ],
21
+ "keywords": ["dna", "api"],
25
22
  "homepage": "https://github.com/pa001024/dna-builder",
26
23
  "repository": {
27
24
  "type": "git",
@@ -32,7 +29,7 @@
32
29
  "scripts": {
33
30
  "test": "bun test && npm run test:types",
34
31
  "build": "rimraf dist && bun build.ts && tsc --project tsconfig.build.json",
35
- "release": "npm run build && npm publish --access public",
32
+ "release": "npm run build && npm publish --access public --registry https://registry.npmjs.org/",
36
33
  "lint": "tsc --noEmit",
37
34
  "trace": "tsc --generateTrace ./trace --incremental false"
38
35
  },
@@ -45,9 +42,5 @@
45
42
  "rimraf": "6.1.2",
46
43
  "typescript": "^5.1.6"
47
44
  },
48
- "files": [
49
- "dist/**/*",
50
- "README.md",
51
- "LICENSE"
52
- ]
45
+ "files": ["dist/**/*", "README.md", "LICENSE"]
53
46
  }