southnote-mini-sdk 1.0.21 → 1.0.22
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/app.js +1 -22
- package/assets/file/badwords.js +1 -63008
- package/assets/file/rules.js +1 -38
- package/components/bottomSheet/bottomSheet.js +1 -473
- package/components/experience-item/experience-item.js +1 -105
- package/components/grid-item/grid-item.js +1 -8
- package/components/post-item/post-item.js +1 -1086
- package/components/wiki-renderer/wiki-renderer.js +1 -636
- package/components/wiki-tabs/wiki-tabs.js +1 -52
- package/index.js +1 -49
- package/package.json +2 -22
- package/pages/addGame/addGame.js +1 -454
- package/pages/addSubject/addSubject.js +1 -199
- package/pages/commonLogin/commonLogin.js +1 -269
- package/pages/copyOfficial/copyOfficial.js +1 -25
- package/pages/demo/demo.js +1 -23
- package/pages/game/game.js +1 -1305
- package/pages/home/home.js +1 -665
- package/pages/lottery-winners/lottery-winners.js +1 -60
- package/pages/message/messageCommentsAndAt/messageCommentsAndAt.js +1 -178
- package/pages/message/messageEntire/messageEntire.js +1 -112
- package/pages/message/messageLikeAndCollect/messageLikeAndCollect.js +1 -147
- package/pages/message/messageNewFans/messageNewFans.js +1 -139
- package/pages/officialWebview/officialWebview.js +1 -13
- package/pages/post/post.js +1 -1856
- package/pages/post-editor/post-editor.js +1 -465
- package/pages/postDialog/postDialog.js +1 -560
- package/pages/report-category/report-category.js +1 -29
- package/pages/report-form/report-form.js +1 -65
- package/pages/sevenDaySignDetail/sevenDaySignDetail.js +1 -273
- package/pages/topic/topic.js +1 -266
- package/pages/user/user.js +1 -939
- package/pages/userDatum/userDatum.js +1 -24
- package/pages/userGameLib/userGameLib.js +1 -105
- package/pages/webview/webview.js +1 -25
- package/pages/wheelActivivty/wheelActivivty.js +1 -492
- package/pages/wiki/wiki.js +1 -138
- package/request/JKRequest.js +1 -177
- package/services/home.js +1 -603
- package/utils/auth.js +1 -17
- package/utils/base64.js +1 -67
- package/utils/compressImage.js +1 -41
- package/utils/exp.js +1 -49
- package/utils/formatPost.js +1 -18
- package/utils/parseContent.js +1 -191
- package/utils/query-select.js +1 -9
- package/utils/sensitive.js +1 -82
package/services/home.js
CHANGED
|
@@ -1,603 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
JKRequestInstance
|
|
3
|
-
} from "../request/JKRequest";
|
|
4
|
-
|
|
5
|
-
export function getBanner() {
|
|
6
|
-
return JKRequestInstance.get({
|
|
7
|
-
url: "queryBanners",
|
|
8
|
-
data: {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function queryPublicPost(page, filter) {
|
|
15
|
-
return JKRequestInstance.get({
|
|
16
|
-
url: "queryPublicPost",
|
|
17
|
-
data: {
|
|
18
|
-
page,
|
|
19
|
-
filter,
|
|
20
|
-
},
|
|
21
|
-
showLoading: false
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
// 获取帖子详情
|
|
25
|
-
export function queryPostInfo(post_id) {
|
|
26
|
-
return JKRequestInstance.get({
|
|
27
|
-
url: "queryPostInfo",
|
|
28
|
-
data: {
|
|
29
|
-
post_id,
|
|
30
|
-
}
|
|
31
|
-
})
|
|
32
|
-
}
|
|
33
|
-
// 获取帖子评论列表详情
|
|
34
|
-
export function queryPostComments(post_id, page, order) {
|
|
35
|
-
return JKRequestInstance.get({
|
|
36
|
-
url: "queryPostComments",
|
|
37
|
-
data: {
|
|
38
|
-
post_id,
|
|
39
|
-
page,
|
|
40
|
-
order,
|
|
41
|
-
},
|
|
42
|
-
showLoading: false
|
|
43
|
-
})
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// 获取帖子点赞详情
|
|
47
|
-
export function queryPostLikes(post_id, page) {
|
|
48
|
-
return JKRequestInstance.get({
|
|
49
|
-
url: "queryPostLikes",
|
|
50
|
-
data: {
|
|
51
|
-
post_id,
|
|
52
|
-
page,
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// 查看帖子转发
|
|
58
|
-
export function queryPostShare(post_id, page) {
|
|
59
|
-
return JKRequestInstance.get({
|
|
60
|
-
url: "queryPostShare",
|
|
61
|
-
data: {
|
|
62
|
-
post_id,
|
|
63
|
-
page,
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// 查看用户详情
|
|
69
|
-
export function queryUserInfo(target_id) {
|
|
70
|
-
return JKRequestInstance.get({
|
|
71
|
-
url: "queryUserInfo",
|
|
72
|
-
data: {
|
|
73
|
-
target_id,
|
|
74
|
-
}
|
|
75
|
-
})
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
// 查看用户帖子
|
|
80
|
-
export function queryUserPosts(target_id, page, filter) {
|
|
81
|
-
return JKRequestInstance.get({
|
|
82
|
-
url: "queryUserPosts",
|
|
83
|
-
data: {
|
|
84
|
-
target_id,
|
|
85
|
-
page,
|
|
86
|
-
filter
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// 查看用户评论
|
|
92
|
-
export function queryUserComments(target_id, page) {
|
|
93
|
-
return JKRequestInstance.get({
|
|
94
|
-
url: "queryUserComments",
|
|
95
|
-
data: {
|
|
96
|
-
target_id,
|
|
97
|
-
page
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
// 查看用户收藏列表
|
|
104
|
-
export function queryUsercollections(target_id, page) {
|
|
105
|
-
return JKRequestInstance.get({
|
|
106
|
-
url: "queryUsercollections",
|
|
107
|
-
data: {
|
|
108
|
-
target_id,
|
|
109
|
-
page
|
|
110
|
-
}
|
|
111
|
-
})
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
// 发布帖子
|
|
116
|
-
export function publishPost(token, user_id, content, images) {
|
|
117
|
-
return JKRequestInstance.get({
|
|
118
|
-
url: "queryUsercollections",
|
|
119
|
-
data: {
|
|
120
|
-
token,
|
|
121
|
-
user_id,
|
|
122
|
-
isGuide: 0,
|
|
123
|
-
content,
|
|
124
|
-
images
|
|
125
|
-
}
|
|
126
|
-
})
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
//查看游戏详情
|
|
131
|
-
export function queryGameInfo(game_id, platform, nType) {
|
|
132
|
-
return JKRequestInstance.get({
|
|
133
|
-
url: "queryGameInfo",
|
|
134
|
-
data: {
|
|
135
|
-
game_id,
|
|
136
|
-
platform,
|
|
137
|
-
nType
|
|
138
|
-
}
|
|
139
|
-
})
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
//查看游戏攻略
|
|
143
|
-
export function queryGameWiki(game_id) {
|
|
144
|
-
return JKRequestInstance.get({
|
|
145
|
-
url: "queryGameWiki",
|
|
146
|
-
data: {
|
|
147
|
-
game_id,
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
})
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
//查看游戏攻略
|
|
154
|
-
export function queryGameWikiByName(game_id, name) {
|
|
155
|
-
return JKRequestInstance.get({
|
|
156
|
-
url: "queryGameWiki",
|
|
157
|
-
data: {
|
|
158
|
-
game_id,
|
|
159
|
-
name
|
|
160
|
-
}
|
|
161
|
-
})
|
|
162
|
-
}
|
|
163
|
-
//查看游戏攻略组成员
|
|
164
|
-
export function queryGameWikiUsers(game_id) {
|
|
165
|
-
return JKRequestInstance.get({
|
|
166
|
-
url: "queryGameWikiUsers",
|
|
167
|
-
data: {
|
|
168
|
-
game_id,
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
})
|
|
172
|
-
}
|
|
173
|
-
// 查看游戏帖子列表
|
|
174
|
-
export function queryGamePosts(game_id, page, filter) {
|
|
175
|
-
return JKRequestInstance.get({
|
|
176
|
-
url: "queryGamePosts",
|
|
177
|
-
data: {
|
|
178
|
-
game_id,
|
|
179
|
-
page,
|
|
180
|
-
filter
|
|
181
|
-
}
|
|
182
|
-
})
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// 查看话题详情
|
|
186
|
-
export function queryTopic(topic_name, page, order) {
|
|
187
|
-
return JKRequestInstance.get({
|
|
188
|
-
url: "queryTopic",
|
|
189
|
-
data: {
|
|
190
|
-
topic_name,
|
|
191
|
-
page,
|
|
192
|
-
order
|
|
193
|
-
}
|
|
194
|
-
})
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
// 用户中心登录
|
|
199
|
-
export function passwdLogin(account, pass, appId) {
|
|
200
|
-
return JKRequestInstance.get({
|
|
201
|
-
url: "passwdLogin",
|
|
202
|
-
data: {
|
|
203
|
-
account,
|
|
204
|
-
pass,
|
|
205
|
-
appId: 'BlueBook',
|
|
206
|
-
channel: 'whale',
|
|
207
|
-
client: 4
|
|
208
|
-
},
|
|
209
|
-
showLoading: false
|
|
210
|
-
})
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
// 小南书小程序登录
|
|
215
|
-
export function blueBookLogin(appuid, token) {
|
|
216
|
-
return JKRequestInstance.get({
|
|
217
|
-
url: "blueBookLogin",
|
|
218
|
-
data: {
|
|
219
|
-
appuid,
|
|
220
|
-
token,
|
|
221
|
-
client: 4,
|
|
222
|
-
version: '1.0.6'
|
|
223
|
-
},
|
|
224
|
-
showLoading: false
|
|
225
|
-
})
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// 发送验证码
|
|
229
|
-
export function sendSMS(phone) {
|
|
230
|
-
return JKRequestInstance.get({
|
|
231
|
-
url: "sendSMS",
|
|
232
|
-
data: {
|
|
233
|
-
phone,
|
|
234
|
-
appId: 'BlueBook',
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
})
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// 验证码登录
|
|
241
|
-
export function phoneLogin(phone, code) {
|
|
242
|
-
return JKRequestInstance.get({
|
|
243
|
-
url: "phoneLogin",
|
|
244
|
-
data: {
|
|
245
|
-
phone,
|
|
246
|
-
code,
|
|
247
|
-
appId: 'BlueBook',
|
|
248
|
-
channel: 'whale',
|
|
249
|
-
client: 4
|
|
250
|
-
},
|
|
251
|
-
showLoading: false
|
|
252
|
-
})
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// 关注/取关
|
|
256
|
-
export function followUser(target_id, nType) {
|
|
257
|
-
return JKRequestInstance.get({
|
|
258
|
-
url: "followUser",
|
|
259
|
-
data: {
|
|
260
|
-
target_id,
|
|
261
|
-
nType
|
|
262
|
-
}
|
|
263
|
-
})
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
// 添加/删除至游戏库
|
|
267
|
-
export function addGame(game_id, nType) {
|
|
268
|
-
return JKRequestInstance.get({
|
|
269
|
-
url: "addGame",
|
|
270
|
-
data: {
|
|
271
|
-
game_id,
|
|
272
|
-
nType
|
|
273
|
-
}
|
|
274
|
-
})
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// 收藏话题
|
|
278
|
-
export function collectTopic(topic_id, nType) {
|
|
279
|
-
return JKRequestInstance.get({
|
|
280
|
-
url: "collectTopic",
|
|
281
|
-
data: {
|
|
282
|
-
topic_id,
|
|
283
|
-
nType
|
|
284
|
-
}
|
|
285
|
-
})
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
// 点赞帖子
|
|
290
|
-
export function likePost(content_id, nType) {
|
|
291
|
-
return JKRequestInstance.get({
|
|
292
|
-
url: "likePost",
|
|
293
|
-
data: {
|
|
294
|
-
content_id,
|
|
295
|
-
nType
|
|
296
|
-
},
|
|
297
|
-
showLoading: false
|
|
298
|
-
})
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
// 收藏帖子
|
|
302
|
-
export function collectPost(post_id, nType) {
|
|
303
|
-
return JKRequestInstance.get({
|
|
304
|
-
url: "collectPost",
|
|
305
|
-
data: {
|
|
306
|
-
post_id,
|
|
307
|
-
nType
|
|
308
|
-
}
|
|
309
|
-
})
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
// 获取上传文件token
|
|
313
|
-
export function getUploadToken(list, showLoading) {
|
|
314
|
-
return JKRequestInstance.get({
|
|
315
|
-
url: "getUploadToken",
|
|
316
|
-
data: {
|
|
317
|
-
nType: 1,
|
|
318
|
-
list,
|
|
319
|
-
},
|
|
320
|
-
showLoading
|
|
321
|
-
})
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
// 发布帖子
|
|
325
|
-
export function publishPostNew(content, images_id, showLoading, game_id) {
|
|
326
|
-
const data = {
|
|
327
|
-
is_guide: 0,
|
|
328
|
-
content,
|
|
329
|
-
game_id
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
// 只有 images_id 有值才拼接
|
|
333
|
-
if (images_id && images_id > 0) {
|
|
334
|
-
data.images_id = images_id;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
return JKRequestInstance.postForm({
|
|
338
|
-
url: "publishPostNew",
|
|
339
|
-
data,
|
|
340
|
-
showLoading
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
// 用户话题列表
|
|
346
|
-
export function queryUserTopics(page) {
|
|
347
|
-
return JKRequestInstance.get({
|
|
348
|
-
url: "queryUserTopics",
|
|
349
|
-
data: {
|
|
350
|
-
order: 2,
|
|
351
|
-
page
|
|
352
|
-
}
|
|
353
|
-
})
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
// 获取话题排行榜
|
|
357
|
-
export function queryTopicRank(page) {
|
|
358
|
-
return JKRequestInstance.get({
|
|
359
|
-
url: "queryTopicRank",
|
|
360
|
-
data: {
|
|
361
|
-
nType: 2,
|
|
362
|
-
page
|
|
363
|
-
}
|
|
364
|
-
})
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
// 评论帖子
|
|
368
|
-
// nType 1.评论 2.转发 3.评论并转发
|
|
369
|
-
export function commentPostNew(post_id, content, images_id, parent_comment_id, nType, showLoading) {
|
|
370
|
-
const data = {
|
|
371
|
-
post_id,
|
|
372
|
-
content,
|
|
373
|
-
nType
|
|
374
|
-
}
|
|
375
|
-
if (images_id && images_id > 0) {
|
|
376
|
-
data.images_id = images_id
|
|
377
|
-
}
|
|
378
|
-
if (parent_comment_id) {
|
|
379
|
-
data.parent_comment_id = parent_comment_id
|
|
380
|
-
}
|
|
381
|
-
return JKRequestInstance.postForm({
|
|
382
|
-
url: "commentPostNew",
|
|
383
|
-
data,
|
|
384
|
-
showLoading
|
|
385
|
-
})
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
// 查看用户游戏库
|
|
389
|
-
export function queryUserGames(target_id, page) {
|
|
390
|
-
return JKRequestInstance.get({
|
|
391
|
-
url: "queryUserGames",
|
|
392
|
-
data: {
|
|
393
|
-
target_id,
|
|
394
|
-
page
|
|
395
|
-
}
|
|
396
|
-
})
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
// 按分类查看游戏库
|
|
400
|
-
export function queryGames(filter, page) {
|
|
401
|
-
return JKRequestInstance.get({
|
|
402
|
-
url: "queryGames",
|
|
403
|
-
data: {
|
|
404
|
-
filter,
|
|
405
|
-
page
|
|
406
|
-
}
|
|
407
|
-
})
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
// 用户投票
|
|
412
|
-
export function votePost(post_id, vote_id, option_id) {
|
|
413
|
-
return JKRequestInstance.post({
|
|
414
|
-
url: "votePost",
|
|
415
|
-
data: {
|
|
416
|
-
post_id,
|
|
417
|
-
vote_id,
|
|
418
|
-
option_id
|
|
419
|
-
}
|
|
420
|
-
})
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
// 搜索
|
|
424
|
-
// 类型
|
|
425
|
-
// 1: 帖子
|
|
426
|
-
// 2: 玩家
|
|
427
|
-
// 3: 游戏库
|
|
428
|
-
// 4: 话题
|
|
429
|
-
// 10: 综合查询
|
|
430
|
-
export function search(input, nType, page) {
|
|
431
|
-
return JKRequestInstance.get({
|
|
432
|
-
url: "search",
|
|
433
|
-
data: {
|
|
434
|
-
input,
|
|
435
|
-
nType,
|
|
436
|
-
page
|
|
437
|
-
}
|
|
438
|
-
})
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
// 删帖
|
|
442
|
-
export function deleteContent(post_id) {
|
|
443
|
-
return JKRequestInstance.get({
|
|
444
|
-
url: "deleteContent",
|
|
445
|
-
data: {
|
|
446
|
-
post_id
|
|
447
|
-
}
|
|
448
|
-
})
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
// 举报帖子 举报类型:
|
|
455
|
-
// 1 涉及政治敏感内容
|
|
456
|
-
// 2 涉及色情低俗内容
|
|
457
|
-
// 3 涉及违禁品
|
|
458
|
-
// 4 涉及未成年人有害信息
|
|
459
|
-
// 5 涉及垃圾或广告内容
|
|
460
|
-
// 6 涉及人身攻击、辱骂内容
|
|
461
|
-
// 7 涉及抄袭或侵权内容
|
|
462
|
-
// 8 引战
|
|
463
|
-
// 9 涉及企业侵权内容
|
|
464
|
-
// 100 其他
|
|
465
|
-
export function reportPost(post_id, nType, reason) {
|
|
466
|
-
return JKRequestInstance.get({
|
|
467
|
-
url: "reportPost",
|
|
468
|
-
data: {
|
|
469
|
-
post_id,
|
|
470
|
-
nType,
|
|
471
|
-
reason
|
|
472
|
-
}
|
|
473
|
-
})
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
// 玩家个人主页置顶
|
|
477
|
-
export function setUserPostTop(post_id, nType) {
|
|
478
|
-
return JKRequestInstance.get({
|
|
479
|
-
url: "setUserPostTop",
|
|
480
|
-
data: {
|
|
481
|
-
post_id,
|
|
482
|
-
nType
|
|
483
|
-
}
|
|
484
|
-
})
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
// 查看用户消息
|
|
488
|
-
// 1.赞和收藏 2.新增粉丝 3.评论和@
|
|
489
|
-
|
|
490
|
-
export function queryUserMessages(page, nType) {
|
|
491
|
-
return JKRequestInstance.get({
|
|
492
|
-
url: "queryUserMessages",
|
|
493
|
-
data: {
|
|
494
|
-
page,
|
|
495
|
-
nType
|
|
496
|
-
}
|
|
497
|
-
})
|
|
498
|
-
}
|
|
499
|
-
// 查看用户未读消息数量
|
|
500
|
-
export function queryUserNotRead() {
|
|
501
|
-
return JKRequestInstance.get({
|
|
502
|
-
url: "queryUserNotRead",
|
|
503
|
-
data: {
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
showLoading: false
|
|
507
|
-
})
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
// 清除用户消息 0.所有 1.赞和收藏 2.新增粉丝 3.评论和@
|
|
511
|
-
export function cleanUserMessages(nType) {
|
|
512
|
-
return JKRequestInstance.get({
|
|
513
|
-
url: "cleanUserMessages",
|
|
514
|
-
data: {
|
|
515
|
-
nType
|
|
516
|
-
}
|
|
517
|
-
})
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
// 查看游戏活动详情
|
|
521
|
-
export function queryGameActivityInfo(activity_id) {
|
|
522
|
-
return JKRequestInstance.get({
|
|
523
|
-
url: "queryGameActivityInfo",
|
|
524
|
-
data: {
|
|
525
|
-
activity_id
|
|
526
|
-
}
|
|
527
|
-
})
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
// 查看帖子一级评论
|
|
531
|
-
|
|
532
|
-
export function queryMainComments(post_id, comment_id, page) {
|
|
533
|
-
return JKRequestInstance.get({
|
|
534
|
-
url: "queryMainComments",
|
|
535
|
-
data: {
|
|
536
|
-
post_id,
|
|
537
|
-
comment_id,
|
|
538
|
-
page
|
|
539
|
-
}
|
|
540
|
-
})
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
// 查看抽奖贴中奖用户列表接口
|
|
545
|
-
|
|
546
|
-
export function queryLotteryWinners(post_id) {
|
|
547
|
-
return JKRequestInstance.get({
|
|
548
|
-
url: "queryLotteryWinners",
|
|
549
|
-
data: {
|
|
550
|
-
post_id
|
|
551
|
-
|
|
552
|
-
}
|
|
553
|
-
})
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
// 查看抽奖贴中奖用户列表接口
|
|
557
|
-
|
|
558
|
-
export function queryMoreShareComments(post_id, page) {
|
|
559
|
-
return JKRequestInstance.get({
|
|
560
|
-
url: "queryMoreShareComments",
|
|
561
|
-
data: {
|
|
562
|
-
post_id,
|
|
563
|
-
page
|
|
564
|
-
}
|
|
565
|
-
})
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
// 查看游戏Banner视频
|
|
570
|
-
|
|
571
|
-
export function queryGameBannerVideo(game_id) {
|
|
572
|
-
return JKRequestInstance.get({
|
|
573
|
-
url: "queryGameBannerVideo",
|
|
574
|
-
data: {
|
|
575
|
-
game_id
|
|
576
|
-
}
|
|
577
|
-
})
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
// 查看帖子视频
|
|
583
|
-
|
|
584
|
-
export function queryPostVideo(post_id) {
|
|
585
|
-
return JKRequestInstance.get({
|
|
586
|
-
url: "queryPostVideo",
|
|
587
|
-
data: {
|
|
588
|
-
post_id
|
|
589
|
-
}
|
|
590
|
-
})
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
// 提交攻略评分
|
|
594
|
-
|
|
595
|
-
export function submitGameWikiScore(game_id, wiki_name, score) {
|
|
596
|
-
const data = { game_id, score }
|
|
597
|
-
if (wiki_name) data.wiki_name = wiki_name
|
|
598
|
-
return JKRequestInstance.get({
|
|
599
|
-
url: "submitGameWikiScore",
|
|
600
|
-
data
|
|
601
|
-
})
|
|
602
|
-
}
|
|
603
|
-
|
|
1
|
+
(function(_0x46cc22,_0x12a85c){const _0x2dfacb=_0x4450,_0x3e2139=_0x46cc22();while(!![]){try{const _0x4170c5=-parseInt(_0x2dfacb(0x9d))/0x1*(parseInt(_0x2dfacb(0x96))/0x2)+-parseInt(_0x2dfacb(0x9c))/0x3*(parseInt(_0x2dfacb(0xd1))/0x4)+parseInt(_0x2dfacb(0x93))/0x5*(-parseInt(_0x2dfacb(0xdb))/0x6)+parseInt(_0x2dfacb(0xba))/0x7+parseInt(_0x2dfacb(0xc3))/0x8+parseInt(_0x2dfacb(0xcf))/0x9*(-parseInt(_0x2dfacb(0xdf))/0xa)+parseInt(_0x2dfacb(0xb7))/0xb*(parseInt(_0x2dfacb(0xc8))/0xc);if(_0x4170c5===_0x12a85c)break;else _0x3e2139['push'](_0x3e2139['shift']());}catch(_0x2b8a44){_0x3e2139['push'](_0x3e2139['shift']());}}}(_0x34dc,0x81e62));import{JKRequestInstance}from'../request/JKRequest';export function getBanner(){const _0x134a2b=_0x4450,_0x1ef905={'DFdGy':_0x134a2b(0xd4)};return JKRequestInstance['get']({'url':_0x1ef905[_0x134a2b(0xb3)],'data':{}});}export function queryPublicPost(_0xa0900e,_0x3b4c0d){return JKRequestInstance['get']({'url':'queryPublicPost','data':{'page':_0xa0900e,'filter':_0x3b4c0d},'showLoading':![]});}export function queryPostInfo(_0x5c703f){const _0x52c770=_0x4450,_0xc9f7fa={'hnily':_0x52c770(0xb2)};return JKRequestInstance[_0x52c770(0x9b)]({'url':_0xc9f7fa[_0x52c770(0xa6)],'data':{'post_id':_0x5c703f}});}export function queryPostComments(_0x442fcb,_0x583aad,_0x1b3c6d){const _0x25984c=_0x4450,_0x10b975={'QfYBA':_0x25984c(0xbe)};return JKRequestInstance[_0x25984c(0x9b)]({'url':_0x10b975[_0x25984c(0x98)],'data':{'post_id':_0x442fcb,'page':_0x583aad,'order':_0x1b3c6d},'showLoading':![]});}export function queryPostLikes(_0x45ab2b,_0x14fcd8){const _0x508500=_0x4450;return JKRequestInstance[_0x508500(0x9b)]({'url':'queryPostLikes','data':{'post_id':_0x45ab2b,'page':_0x14fcd8}});}export function queryPostShare(_0x35ecef,_0x45b55f){const _0x596b5c={'srlkF':'queryPostShare'};return JKRequestInstance['get']({'url':_0x596b5c['srlkF'],'data':{'post_id':_0x35ecef,'page':_0x45b55f}});}export function queryUserInfo(_0x101d68){const _0x378d2a=_0x4450,_0x38b2d0={'GgRgQ':_0x378d2a(0xc7)};return JKRequestInstance['get']({'url':_0x38b2d0[_0x378d2a(0xaf)],'data':{'target_id':_0x101d68}});}export function queryUserPosts(_0x486aea,_0x326538,_0x1e0ff0){const _0x695fde=_0x4450;return JKRequestInstance[_0x695fde(0x9b)]({'url':'queryUserPosts','data':{'target_id':_0x486aea,'page':_0x326538,'filter':_0x1e0ff0}});}function _0x34dc(){const _0x223384=['nZmXnZiWofDxq2fxBG','z2v0vxbSB2fKvg9Rzw4','D2LRAv9Uyw1L','yMX1zujVB2TmB2DPBG','CxvLCNLvC2vYsw5MBW','mtqYndr5vK1MDLO','tM9Yzue','ChvIBgLZAfbVC3rozxC','y29SBgvJDfbVC3q','qMX1zujVB2S','Aw1Hz2vZx2LK','tMTrvxq','mtHAzLDyBe4','CLDAwLC','mtzuBuXxqNu','sgzbCgO','ms4WlJy','CxvLCNLcyw5UzxjZ','CgfZC3DKtg9NAw4','CxvLCNLhyw1Lqwn0AxzPDhLjBMzV','zxvuDu0','y29SBgvJDfrVCgLJ','CxvLCNLvC2vYq29TBwvUDhm','CxvLCNLvC2vYy29SBgvJDgLVBNm','nte0nJjcrez1sK4','zM9SBg93vxnLCG','Ehr2Cgq','CxvLCNLhyw1Lv2LRAq','nta4ndCXmhHnuvLXDq','shzLsLa','CxvLCNLhyw1Lsw5MBW','DNrbyMK','BgLRzvbVC3q','CwPdsem','CxvLCNLnywLUq29TBwvUDhm','C2vUzfnnuW','mJe1v2DSAuX6','ywnvtLG','wwPuALa','mtaWCwL5Aeny','CxvLCNLhyw1Lug9ZDhm','uwzzqKe','CxvLCNLvC2vYtM90uMvHza','CxvLCNLhyw1LCW','z2v0','mZCXmZe5r2fKzeH3','mte1nhnjD0TsCG','CgHVBMvmB2DPBG','CxvLCNLvC2vYvg9WAwnZ','tvPACKC','y2XLyw5vC2vYtwvZC2fNzxm','CgTLrMG','rKfcBhi','Afvlvvm','C2vHCMnO','Ag5PBhK','Cg9ZDezVCM0','CxvLCNLnB3jLu2HHCMvdB21Tzw50CW','uMnTy2W','BeD4uLu','zMrzs2i','Cg9ZDa','CxvLCNLuB3bPyW','D2HHBgu','r2Dsz1e','CxvLCNLvC2vYtwvZC2fNzxm','CxvLCNLhyw1Lv2LRAvvZzxjZ','CxvLCNLqB3n0sw5MBW','rezKr3K','CMjwy3e','z1HNzMG','y29TBwvUDfbVC3rozxC','mte5ndzvsMDOA3K','CxvLCNLmB3r0zxj5v2LUBMvYCW','zgvSzxrLq29UDgvUDa','mtG2ode0nKjzrfbuua','CgfYzw50x2nVBw1LBNrFAwq','zLzHAMS','tKjdDxK','CxvLCNLqB3n0q29TBwvUDhm','ywrKr2fTzq','C3vIBwL0r2fTzvDPA2Lty29Yzq','vhrmsu4','tK1JB0e'];_0x34dc=function(){return _0x223384;};return _0x34dc();}export function queryUserComments(_0x576e37,_0x117096){const _0x14795b=_0x4450;return JKRequestInstance[_0x14795b(0x9b)]({'url':_0x14795b(0xd9),'data':{'target_id':_0x576e37,'page':_0x117096}});}export function queryUsercollections(_0x4dc465,_0x4be30a){const _0x76c49a=_0x4450,_0x4a626d={'Rcmcl':_0x76c49a(0xda)};return JKRequestInstance[_0x76c49a(0x9b)]({'url':_0x4a626d[_0x76c49a(0xa9)],'data':{'target_id':_0x4dc465,'page':_0x4be30a}});}export function publishPost(_0x2f55fc,_0x39043a,_0x1c3ec5,_0x1cfa93){const _0x13d73f=_0x4450,_0x59cbc5={'TtLIN':_0x13d73f(0xda)};return JKRequestInstance['get']({'url':_0x59cbc5[_0x13d73f(0xc1)],'data':{'token':_0x2f55fc,'user_id':_0x39043a,'isGuide':0x0,'content':_0x1c3ec5,'images':_0x1cfa93}});}export function queryGameInfo(_0x38212b,_0x36c052,_0x20f95f){const _0x46623e=_0x4450,_0x4b8475={'vtAbi':_0x46623e(0x8d)};return JKRequestInstance[_0x46623e(0x9b)]({'url':_0x4b8475[_0x46623e(0x8e)],'data':{'game_id':_0x38212b,'platform':_0x36c052,'nType':_0x20f95f}});}export function queryGameWiki(_0x22c34f){const _0x3e0ec1=_0x4450,_0x509951={'rWZZW':_0x3e0ec1(0xde)};return JKRequestInstance[_0x3e0ec1(0x9b)]({'url':_0x509951[_0x3e0ec1(0xd0)],'data':{'game_id':_0x22c34f}});}export function queryGameWikiByName(_0x3c269f,_0x339a74){const _0x2ea717=_0x4450;return JKRequestInstance[_0x2ea717(0x9b)]({'url':'queryGameWiki','data':{'game_id':_0x3c269f,'name':_0x339a74}});}export function queryGameWikiUsers(_0x2bd3f1){const _0x1a89f7=_0x4450;return JKRequestInstance[_0x1a89f7(0x9b)]({'url':_0x1a89f7(0xb1),'data':{'game_id':_0x2bd3f1}});}export function queryGamePosts(_0x18c0ee,_0x8a0e69,_0x18ca7c){const _0x2b340b=_0x4450,_0xb28161={'xtvpd':_0x2b340b(0x97)};return JKRequestInstance['get']({'url':_0xb28161[_0x2b340b(0xdd)],'data':{'game_id':_0x18c0ee,'page':_0x8a0e69,'filter':_0x18ca7c}});}export function queryTopic(_0x2640b6,_0x5e8e62,_0x377df7){const _0x25a0c0=_0x4450,_0x24f730={'euTuM':_0x25a0c0(0xad)};return JKRequestInstance[_0x25a0c0(0x9b)]({'url':_0x24f730[_0x25a0c0(0xd7)],'data':{'topic_name':_0x2640b6,'page':_0x5e8e62,'order':_0x377df7}});}export function passwdLogin(_0xf00edc,_0x49b37a,_0x3b43cc){const _0x547adc=_0x4450,_0x36604e={'acUNX':_0x547adc(0xd5),'YjTjP':'BlueBook','MZZrG':_0x547adc(0xae)};return JKRequestInstance[_0x547adc(0x9b)]({'url':_0x36604e[_0x547adc(0x94)],'data':{'account':_0xf00edc,'pass':_0x49b37a,'appId':_0x36604e[_0x547adc(0x95)],'channel':_0x36604e[_0x547adc(0xa0)],'client':0x4},'showLoading':![]});}export function blueBookLogin(_0x5dc977,_0x5c92c6){const _0x5529c8=_0x4450,_0x28876a={'PsfjK':_0x5529c8(0xc6),'FABlr':_0x5529c8(0xd3)};return JKRequestInstance[_0x5529c8(0x9b)]({'url':_0x28876a['PsfjK'],'data':{'appuid':_0x5dc977,'token':_0x5c92c6,'client':0x4,'version':_0x28876a[_0x5529c8(0xa3)]},'showLoading':![]});}export function sendSMS(_0x19ced0){const _0x5b27df=_0x4450,_0x3d6ebd={'rbVcq':_0x5b27df(0x92)};return JKRequestInstance['get']({'url':_0x3d6ebd[_0x5b27df(0xb4)],'data':{'phone':_0x19ced0,'appId':_0x5b27df(0xcc)}});}export function phoneLogin(_0x5de200,_0x17e446){const _0x31bb4b=_0x4450,_0x45be2b={'qjCHC':_0x31bb4b(0x9e)};return JKRequestInstance[_0x31bb4b(0x9b)]({'url':_0x45be2b[_0x31bb4b(0x90)],'data':{'phone':_0x5de200,'code':_0x17e446,'appId':'BlueBook','channel':'whale','client':0x4},'showLoading':![]});}export function followUser(_0x332d55,_0x124141){const _0x3676c5=_0x4450,_0x53906e={'qxiPI':_0x3676c5(0xdc)};return JKRequestInstance[_0x3676c5(0x9b)]({'url':_0x53906e['qxiPI'],'data':{'target_id':_0x332d55,'nType':_0x124141}});}export function addGame(_0x536f7a,_0x43ffdb){const _0x362c61=_0x4450,_0x15b9a5={'hUKUS':_0x362c61(0xbf)};return JKRequestInstance['get']({'url':_0x15b9a5[_0x362c61(0xa4)],'data':{'game_id':_0x536f7a,'nType':_0x43ffdb}});}export function collectTopic(_0x39117b,_0x4bd301){const _0xe98698=_0x4450,_0x3ecebf={'gXgfh':_0xe98698(0xd8)};return JKRequestInstance[_0xe98698(0x9b)]({'url':_0x3ecebf[_0xe98698(0xb5)],'data':{'topic_id':_0x39117b,'nType':_0x4bd301}});}export function likePost(_0xa80203,_0x49ae9f){const _0x1e20d9=_0x4450;return JKRequestInstance[_0x1e20d9(0x9b)]({'url':_0x1e20d9(0x8f),'data':{'content_id':_0xa80203,'nType':_0x49ae9f},'showLoading':![]});}export function collectPost(_0x18c52d,_0x576ed5){const _0x492fc7=_0x4450;return JKRequestInstance[_0x492fc7(0x9b)]({'url':_0x492fc7(0xcb),'data':{'post_id':_0x18c52d,'nType':_0x576ed5}});}export function getUploadToken(_0x205b5f,_0x3c6be1){const _0x35b78b=_0x4450,_0x155235={'fdYKb':_0x35b78b(0xc4)};return JKRequestInstance[_0x35b78b(0x9b)]({'url':_0x155235[_0x35b78b(0xab)],'data':{'nType':0x1,'list':_0x205b5f},'showLoading':_0x3c6be1});}export function publishPostNew(_0x380422,_0x5a8e04,_0x11fe53,_0xff1334){const _0x187f56=_0x4450,_0x550836={'fVajk':function(_0x140a49,_0x1e8bf1){return _0x140a49>_0x1e8bf1;},'MDUgw':_0x187f56(0xca)},_0xed862e={'is_guide':0x0,'content':_0x380422,'game_id':_0xff1334};return _0x5a8e04&&_0x550836[_0x187f56(0xbc)](_0x5a8e04,0x0)&&(_0xed862e[_0x187f56(0xcd)]=_0x5a8e04),JKRequestInstance[_0x187f56(0xa7)]({'url':_0x550836['MDUgw'],'data':_0xed862e,'showLoading':_0x11fe53});}export function queryUserTopics(_0xcec069){const _0x23cdc5=_0x4450;return JKRequestInstance[_0x23cdc5(0x9b)]({'url':_0x23cdc5(0x9f),'data':{'order':0x2,'page':_0xcec069}});}export function queryTopicRank(_0x3c14ca){const _0x34e6a5=_0x4450,_0x14447b={'NkQUt':'queryTopicRank'};return JKRequestInstance[_0x34e6a5(0x9b)]({'url':_0x14447b[_0x34e6a5(0xce)],'data':{'nType':0x2,'page':_0x3c14ca}});}export function commentPostNew(_0x33cfc1,_0x5a0dc5,_0x7694e7,_0x5ee429,_0x340580,_0x1087d3){const _0x1c2a4e=_0x4450,_0x5c29ea={'lGxRU':function(_0x14cc78,_0x14ca60){return _0x14cc78>_0x14ca60;}},_0x7b7f90={'post_id':_0x33cfc1,'content':_0x5a0dc5,'nType':_0x340580};return _0x7694e7&&_0x5c29ea[_0x1c2a4e(0xaa)](_0x7694e7,0x0)&&(_0x7b7f90[_0x1c2a4e(0xcd)]=_0x7694e7),_0x5ee429&&(_0x7b7f90[_0x1c2a4e(0xbb)]=_0x5ee429),JKRequestInstance[_0x1c2a4e(0xa7)]({'url':_0x1c2a4e(0xb6),'data':_0x7b7f90,'showLoading':_0x1087d3});}export function queryUserGames(_0x309fb9,_0x3e3dd4){const _0x2dfa6e=_0x4450,_0x6a8c15={'IusGF':'queryUserGames'};return JKRequestInstance[_0x2dfa6e(0x9b)]({'url':_0x6a8c15['IusGF'],'data':{'target_id':_0x309fb9,'page':_0x3e3dd4}});}export function queryGames(_0x4b553b,_0x377b2b){const _0x522329=_0x4450;return JKRequestInstance['get']({'url':_0x522329(0x9a),'data':{'filter':_0x4b553b,'page':_0x377b2b}});}export function votePost(_0x3a4520,_0x2448a2,_0x5005c1){const _0x20cb80=_0x4450,_0x57e611={'eKYed':'votePost'};return JKRequestInstance[_0x20cb80(0xac)]({'url':_0x57e611['eKYed'],'data':{'post_id':_0x3a4520,'vote_id':_0x2448a2,'option_id':_0x5005c1}});}export function search(_0x4e2b2e,_0x42f13a,_0x44c2c2){const _0x50304b=_0x4450;return JKRequestInstance['get']({'url':_0x50304b(0xa5),'data':{'input':_0x4e2b2e,'nType':_0x42f13a,'page':_0x44c2c2}});}export function deleteContent(_0x31ba29){const _0x1393d6=_0x4450,_0x27c05f={'HveJP':_0x1393d6(0xb9)};return JKRequestInstance[_0x1393d6(0x9b)]({'url':_0x27c05f[_0x1393d6(0x8c)],'data':{'post_id':_0x31ba29}});}export function reportPost(_0x376f5c,_0x875a79,_0xca8f1f){const _0x4e5663=_0x4450,_0x386612={'HfApj':'reportPost'};return JKRequestInstance[_0x4e5663(0x9b)]({'url':_0x386612[_0x4e5663(0xd2)],'data':{'post_id':_0x376f5c,'nType':_0x875a79,'reason':_0xca8f1f}});}export function setUserPostTop(_0x52cc72,_0x303504){const _0xa8b3a5=_0x4450,_0x4ba4f6={'NoreA':'setUserPostTop'};return JKRequestInstance['get']({'url':_0x4ba4f6[_0xa8b3a5(0xc9)],'data':{'post_id':_0x52cc72,'nType':_0x303504}});}function _0x4450(_0x5db263,_0x426606){_0x5db263=_0x5db263-0x8c;const _0x34dc5e=_0x34dc();let _0x445078=_0x34dc5e[_0x5db263];if(_0x4450['BeCMnR']===undefined){var _0x567e2e=function(_0x4aae74){const _0x506cb5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a1383='',_0x4dd1d8='';for(let _0x30ae4b=0x0,_0x27a919,_0x1d653a,_0x57b936=0x0;_0x1d653a=_0x4aae74['charAt'](_0x57b936++);~_0x1d653a&&(_0x27a919=_0x30ae4b%0x4?_0x27a919*0x40+_0x1d653a:_0x1d653a,_0x30ae4b++%0x4)?_0x1a1383+=String['fromCharCode'](0xff&_0x27a919>>(-0x2*_0x30ae4b&0x6)):0x0){_0x1d653a=_0x506cb5['indexOf'](_0x1d653a);}for(let _0x4f8c32=0x0,_0x87043d=_0x1a1383['length'];_0x4f8c32<_0x87043d;_0x4f8c32++){_0x4dd1d8+='%'+('00'+_0x1a1383['charCodeAt'](_0x4f8c32)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4dd1d8);};_0x4450['rflEyj']=_0x567e2e,_0x4450['AJPZRt']={},_0x4450['BeCMnR']=!![];}const _0x303760=_0x34dc5e[0x0],_0xc818b0=_0x5db263+_0x303760,_0xf2cf8d=_0x4450['AJPZRt'][_0xc818b0];return!_0xf2cf8d?(_0x445078=_0x4450['rflEyj'](_0x445078),_0x4450['AJPZRt'][_0xc818b0]=_0x445078):_0x445078=_0xf2cf8d,_0x445078;}export function queryUserMessages(_0x154e8c,_0x137dd4){const _0x1cbe52=_0x4450,_0x4a6723={'NMcoA':_0x1cbe52(0xb0)};return JKRequestInstance[_0x1cbe52(0x9b)]({'url':_0x4a6723[_0x1cbe52(0xc2)],'data':{'page':_0x154e8c,'nType':_0x137dd4}});}export function queryUserNotRead(){const _0x3525b2=_0x4450;return JKRequestInstance[_0x3525b2(0x9b)]({'url':_0x3525b2(0x99),'data':{},'showLoading':![]});}export function cleanUserMessages(_0xd9a54d){const _0x1d2b34=_0x4450,_0x36f376={'gCexw':_0x1d2b34(0xa1)};return JKRequestInstance[_0x1d2b34(0x9b)]({'url':_0x36f376['gCexw'],'data':{'nType':_0xd9a54d}});}export function queryGameActivityInfo(_0x59623b){const _0x1e1437=_0x4450,_0x8d9a50={'NBCuy':_0x1e1437(0xd6)};return JKRequestInstance['get']({'url':_0x8d9a50[_0x1e1437(0xbd)],'data':{'activity_id':_0x59623b}});}export function queryMainComments(_0x29ebc1,_0x5e0c67,_0x4d72f5){const _0x1f512b=_0x4450,_0x64980f={'MQuol':_0x1f512b(0x91)};return JKRequestInstance[_0x1f512b(0x9b)]({'url':_0x64980f['MQuol'],'data':{'post_id':_0x29ebc1,'comment_id':_0x5e0c67,'page':_0x4d72f5}});}export function queryLotteryWinners(_0x51c065){const _0x254401=_0x4450;return JKRequestInstance[_0x254401(0x9b)]({'url':_0x254401(0xb8),'data':{'post_id':_0x51c065}});}export function queryMoreShareComments(_0x4a6d16,_0x4f2d11){const _0x4e31ad=_0x4450,_0x2e9ef5={'pkeFh':_0x4e31ad(0xa8)};return JKRequestInstance[_0x4e31ad(0x9b)]({'url':_0x2e9ef5[_0x4e31ad(0xa2)],'data':{'post_id':_0x4a6d16,'page':_0x4f2d11}});}export function queryGameBannerVideo(_0x26722d){const _0x3bdc7b=_0x4450,_0x5044bd={'LEPtx':'queryGameBannerVideo'};return JKRequestInstance[_0x3bdc7b(0x9b)]({'url':_0x5044bd['LEPtx'],'data':{'game_id':_0x26722d}});}export function queryPostVideo(_0x954d3e){const _0x49eb35=_0x4450;return JKRequestInstance[_0x49eb35(0x9b)]({'url':'queryPostVideo','data':{'post_id':_0x954d3e}});}export function submitGameWikiScore(_0x24df95,_0x2c4c45,_0x2076a3){const _0x46cfc3=_0x4450,_0x3592c0={'SbWIw':_0x46cfc3(0xc0)},_0x41d509={'game_id':_0x24df95,'score':_0x2076a3};if(_0x2c4c45)_0x41d509[_0x46cfc3(0xc5)]=_0x2c4c45;return JKRequestInstance[_0x46cfc3(0x9b)]({'url':_0x3592c0['SbWIw'],'data':_0x41d509});}
|
package/utils/auth.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 检查是否登录
|
|
5
|
-
* @returns {boolean} 是否已登录
|
|
6
|
-
*/
|
|
7
|
-
export function checkLogin() {
|
|
8
|
-
const token = wx.getStorageSync('token');
|
|
9
|
-
if (!token) {
|
|
10
|
-
// 未登录,跳转登录页
|
|
11
|
-
wx.navigateTo({
|
|
12
|
-
url: '../../pages/commonLogin/commonLogin',
|
|
13
|
-
});
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
1
|
+
(function(_0x2707fa,_0x22d7ca){const _0x12631d=_0x3df2,_0x13c713=_0x2707fa();while(!![]){try{const _0x17804c=parseInt(_0x12631d(0xd8))/0x1+-parseInt(_0x12631d(0xe2))/0x2*(-parseInt(_0x12631d(0xdc))/0x3)+parseInt(_0x12631d(0xd5))/0x4+-parseInt(_0x12631d(0xe1))/0x5*(parseInt(_0x12631d(0xd7))/0x6)+parseInt(_0x12631d(0xe0))/0x7*(-parseInt(_0x12631d(0xda))/0x8)+-parseInt(_0x12631d(0xdf))/0x9+-parseInt(_0x12631d(0xde))/0xa*(-parseInt(_0x12631d(0xdb))/0xb);if(_0x17804c===_0x22d7ca)break;else _0x13c713['push'](_0x13c713['shift']());}catch(_0x4fb0cf){_0x13c713['push'](_0x13c713['shift']());}}}(_0x64a5,0x7a7c0));function _0x64a5(){const _0x422145=['mJu1mJq5AeTQDMvT','lI4VlI4VCgfNzxmVy29TBw9Utg9NAw4Vy29TBw9Utg9NAw4','mJKYnJKWwg55CxLv','mJGZmdu1ngr3B0reta','nZaXntq3z2Tnufvj','nZC3nuDbvfDTvW','nfLABLHrsW','nJm1nJi4r0zer25T','z2v0u3rVCMfNzvn5BMm','mZyZmffnCNr3AW','nZiWmdK4Avjbsu1q','sxbLExu','nZjdu2nUv2i','nJa1s1rNEe5J'];_0x64a5=function(){return _0x422145;};return _0x64a5();}function _0x3df2(_0x31251f,_0x5085f8){_0x31251f=_0x31251f-0xd5;const _0x64a5c6=_0x64a5();let _0x3df2f5=_0x64a5c6[_0x31251f];if(_0x3df2['bgxibK']===undefined){var _0x561b19=function(_0x35e61e){const _0x161c50='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1dfb01='',_0x49fb2f='';for(let _0x108bb2=0x0,_0xb25546,_0x1fc433,_0x601797=0x0;_0x1fc433=_0x35e61e['charAt'](_0x601797++);~_0x1fc433&&(_0xb25546=_0x108bb2%0x4?_0xb25546*0x40+_0x1fc433:_0x1fc433,_0x108bb2++%0x4)?_0x1dfb01+=String['fromCharCode'](0xff&_0xb25546>>(-0x2*_0x108bb2&0x6)):0x0){_0x1fc433=_0x161c50['indexOf'](_0x1fc433);}for(let _0x2165c1=0x0,_0x32ab30=_0x1dfb01['length'];_0x2165c1<_0x32ab30;_0x2165c1++){_0x49fb2f+='%'+('00'+_0x1dfb01['charCodeAt'](_0x2165c1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49fb2f);};_0x3df2['srIKOI']=_0x561b19,_0x3df2['nSzuEk']={},_0x3df2['bgxibK']=!![];}const _0x3f72ff=_0x64a5c6[0x0],_0x88d5aa=_0x31251f+_0x3f72ff,_0x532bfa=_0x3df2['nSzuEk'][_0x88d5aa];return!_0x532bfa?(_0x3df2f5=_0x3df2['srIKOI'](_0x3df2f5),_0x3df2['nSzuEk'][_0x88d5aa]=_0x3df2f5):_0x3df2f5=_0x532bfa,_0x3df2f5;}export function checkLogin(){const _0x357232=_0x3df2,_0x1bffa3={'Ipeyu':'token','nlMwV':_0x357232(0xdd)},_0x2d5125=wx[_0x357232(0xd6)](_0x1bffa3[_0x357232(0xd9)]);if(!_0x2d5125)return wx['navigateTo']({'url':_0x1bffa3['nlMwV']}),![];return!![];}
|