Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zw_game_sdk
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
CI / CD
CI / CD
流水线
日程表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
提交
问题看板
Open sidebar
zwwl
zw_game_sdk
Commits
5242c3cb
提交
5242c3cb
authored
10月 28, 2021
作者:
黄程泽
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sdk
上级
f51e1c5d
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
+2
-2
sdk.js
sdk.js
+2
-2
没有找到文件。
sdk.js
浏览文件 @
5242c3cb
'use strict'
;
var
__awaiter
=
this
&&
this
[
'__awaiter'
]
||
function
(
_0x62b83a
,
_0x50ebeb
,
_0x569429
,
_0x19a446
){
function
_0x15e4fe
(
_0x1376c1
){
return
_0x1376c1
instanceof
_0x569429
?
_0x1376c1
:
new
_0x569429
(
function
(
_0x95f991
){
_0x95f991
(
_0x1376c1
);});}
return
new
(
_0x569429
||
(
_0x569429
=
Promise
))(
function
(
_0x5dbfa4
,
_0x24bb8f
){
function
_0x4ca766
(
_0x3b01c5
){
try
{
_0x2c4856
(
_0x19a446
[
'next'
](
_0x3b01c5
));}
catch
(
_0x30d525
){
_0x24bb8f
(
_0x30d525
);}}
function
_0x2e6ee8
(
_0x5370c6
){
try
{
_0x2c4856
(
_0x19a446
[
'throw'
](
_0x5370c6
));}
catch
(
_0x30fdda
){
_0x24bb8f
(
_0x30fdda
);}}
function
_0x2c4856
(
_0x15e83c
){
_0x15e83c
[
'done'
]?
_0x5dbfa4
(
_0x15e83c
[
'value'
]):
_0x15e4fe
(
_0x15e83c
[
'value'
])[
'then'
](
_0x4ca766
,
_0x2e6ee8
);}
_0x2c4856
((
_0x19a446
=
_0x19a446
[
'apply'
](
_0x62b83a
,
_0x50ebeb
||
[]))[
'next'
]());});};
var
__generator
=
this
&&
this
[
'__generator'
]
||
function
(
_0x378a5e
,
_0x19566c
){
var
_0x4ed2a9
=
{
'label'
:
0x0
,
'sent'
:
function
(){
if
(
_0x3ab0db
[
0x0
]
&
0x1
)
throw
_0x3ab0db
[
0x1
];
return
_0x3ab0db
[
0x1
];},
'trys'
:[],
'ops'
:[]},
_0x13ab32
,
_0x16363c
,
_0x3ab0db
,
_0xe3379a
;
return
_0xe3379a
=
{
'next'
:
_0x566ec2
(
0x0
),
'throw'
:
_0x566ec2
(
0x1
),
'return'
:
_0x566ec2
(
0x2
)},
typeof
Symbol
===
'function'
&&
(
_0xe3379a
[
Symbol
[
'iterator'
]]
=
function
(){
return
this
;}),
_0xe3379a
;
function
_0x566ec2
(
_0x126032
){
return
function
(
_0x5935a5
){
return
_0x1f658f
([
_0x126032
,
_0x5935a5
]);};}
function
_0x1f658f
(
_0x592bc4
){
if
(
_0x13ab32
)
throw
new
TypeError
(
'Generator
\
x20is
\
x20already
\
x20executing.'
);
while
(
_0x4ed2a9
)
try
{
if
(
_0x13ab32
=
0x1
,
_0x16363c
&&
(
_0x3ab0db
=
_0x592bc4
[
0x0
]
&
0x2
?
_0x16363c
[
'return'
]:
_0x592bc4
[
0x0
]?
_0x16363c
[
'throw'
]
||
((
_0x3ab0db
=
_0x16363c
[
'return'
])
&&
_0x3ab0db
[
'call'
](
_0x16363c
),
0x0
):
_0x16363c
[
'next'
])
&&!
(
_0x3ab0db
=
_0x3ab0db
[
'call'
](
_0x16363c
,
_0x592bc4
[
0x1
]))[
'done'
])
return
_0x3ab0db
;
if
(
_0x16363c
=
0x0
,
_0x3ab0db
)
_0x592bc4
=
[
_0x592bc4
[
0x0
]
&
0x2
,
_0x3ab0db
[
'value'
]];
switch
(
_0x592bc4
[
0x0
]){
case
0x0
:
case
0x1
:
_0x3ab0db
=
_0x592bc4
;
break
;
case
0x4
:
_0x4ed2a9
[
'label'
]
++
;
return
{
'value'
:
_0x592bc4
[
0x1
],
'done'
:
!
[]};
case
0x5
:
_0x4ed2a9
[
'label'
]
++
;
_0x16363c
=
_0x592bc4
[
0x1
];
_0x592bc4
=
[
0x0
];
continue
;
case
0x7
:
_0x592bc4
=
_0x4ed2a9
[
'ops'
][
'pop'
]();
_0x4ed2a9
[
'trys'
][
'pop'
]();
continue
;
default
:
if
(
!
(
_0x3ab0db
=
_0x4ed2a9
[
'trys'
],
_0x3ab0db
=
_0x3ab0db
[
'length'
]
>
0x0
&&
_0x3ab0db
[
_0x3ab0db
[
'length'
]
-
0x1
])
&&
(
_0x592bc4
[
0x0
]
===
0x6
||
_0x592bc4
[
0x0
]
===
0x2
)){
_0x4ed2a9
=
0x0
;
continue
;}
if
(
_0x592bc4
[
0x0
]
===
0x3
&&
(
!
_0x3ab0db
||
_0x592bc4
[
0x1
]
>
_0x3ab0db
[
0x0
]
&&
_0x592bc4
[
0x1
]
<
_0x3ab0db
[
0x3
])){
_0x4ed2a9
[
'label'
]
=
_0x592bc4
[
0x1
];
break
;}
if
(
_0x592bc4
[
0x0
]
===
0x6
&&
_0x4ed2a9
[
'label'
]
<
_0x3ab0db
[
0x1
]){
_0x4ed2a9
[
'label'
]
=
_0x3ab0db
[
0x1
];
_0x3ab0db
=
_0x592bc4
;
break
;}
if
(
_0x3ab0db
&&
_0x4ed2a9
[
'label'
]
<
_0x3ab0db
[
0x2
]){
_0x4ed2a9
[
'label'
]
=
_0x3ab0db
[
0x2
];
_0x4ed2a9
[
'ops'
][
'push'
](
_0x592bc4
);
break
;}
if
(
_0x3ab0db
[
0x2
])
_0x4ed2a9
[
'ops'
][
'pop'
]();
_0x4ed2a9
[
'trys'
][
'pop'
]();
continue
;}
_0x592bc4
=
_0x19566c
[
'call'
](
_0x378a5e
,
_0x4ed2a9
);}
catch
(
_0x7a43a
){
_0x592bc4
=
[
0x6
,
_0x7a43a
];
_0x16363c
=
0x0
;}
finally
{
_0x13ab32
=
_0x3ab0db
=
0x0
;}
if
(
_0x592bc4
[
0x0
]
&
0x5
)
throw
_0x592bc4
[
0x1
];
return
{
'value'
:
_0x592bc4
[
0x0
]?
_0x592bc4
[
0x1
]:
void
0x0
,
'done'
:
!!
[]};}};
exports
[
'__esModule'
]
=!!
[];
var
zwsdk
=
function
(){
function
_0x5754ef
(){
this
[
'VERSION'
]
=
'1.0'
;
var
_0x2279f3
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:
null
;
if
(
_0x2279f3
){
_0x5754ef
[
'default'
][
'appId'
]
=
_0x2279f3
[
'app_id'
];
_0x5754ef
[
'default'
][
'gameId'
]
=
_0x2279f3
[
'game_id'
];
_0x5754ef
[
'default'
][
'os'
]
=
_0x5754ef
[
'getSystemOS'
]();
_0x5754ef
[
'default'
][
'baseUrl'
]
=
_0x2279f3
[
'dev'
]?
'https://zs.zwwlkj03.top/api'
:
'https://zyou.wozhangwan.com/api'
;}}
_0x5754ef
[
'prototype'
][
'getGameConf'
]
=
function
(){
return
new
Promise
(
function
(
_0x33007b
,
_0x27796c
){
_0x5754ef
[
'ajax'
](
'/mini_sdk/game/getConf'
,{
'app_id'
:
_0x5754ef
[
'default'
][
'appId'
],
'game_id'
:
_0x5754ef
[
'default'
][
'gameId'
]})[
'then'
](
function
(
_0x306fac
){
_0x33007b
(
_0x306fac
);});});};
_0x5754ef
[
'prototype'
][
'login'
]
=
function
(){
var
_0x399d18
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x2cbcdc
,
_0x445e66
){
wx
[
'login'
]({
'success'
:
function
(
_0x4b8cef
){
var
_0x4221b9
=
_0x4b8cef
[
'code'
];
_0x5754ef
[
'ajax'
](
'/mini_sdk/auth/login'
,{
'code'
:
_0x4221b9
,
'state'
:
_0x399d18
[
'state'
]
||
''
,
'query'
:
_0x399d18
[
'query'
]
||
''
,
'app_id'
:
_0x5754ef
[
'default'
][
'appId'
],
'game_id'
:
_0x5754ef
[
'default'
][
'gameId'
],
'os'
:
_0x5754ef
[
'default'
][
'os'
],
'device_number'
:
_0x5754ef
[
'default'
][
'device_brand'
],
'device_brand'
:
_0x5754ef
[
'default'
][
'device_brand'
]})[
'then'
](
function
(
_0x46b9e0
){
var
_0x444d1d
=
_0x46b9e0
;
if
(
_0x46b9e0
[
'status_code'
]
===
0x1
){
_0x5754ef
[
'default'
][
'userToken'
]
=
_0x46b9e0
[
'data'
][
'data'
][
'user_token'
];
_0x5754ef
[
'default'
][
'memberId'
]
=
_0x46b9e0
[
'data'
][
'data'
][
'member_id'
];}
_0x2cbcdc
(
_0x444d1d
);});}});});};
_0x5754ef
[
'prototype'
][
'updateUserInfo'
]
=
function
(){
var
_0x16dade
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x20fa91
,
_0x19a9e2
){
_0x5754ef
[
'ajax'
](
'/mini_sdk/member/updateInfo'
,{
'app_id'
:
_0x5754ef
[
'default'
][
'appId'
],
'game_id'
:
_0x5754ef
[
'default'
][
'gameId'
],
'member_id'
:
_0x5754ef
[
'default'
][
'memberId'
],
'raw_data'
:
_0x16dade
[
'raw_data'
]
||
''
,
'signature'
:
_0x16dade
[
'signature'
]
||
''
,
'encrypted_data'
:
_0x16dade
[
'encrypted_data'
]
||
''
,
'iv'
:
_0x16dade
[
'iv'
]
||
''
,
'user_info'
:
_0x16dade
[
'user_info'
]
||
''
})[
'then'
](
function
(
_0x2551bb
){
_0x5754ef
[
'default'
][
'roleId'
]
=
_0x2551bb
[
'data'
][
'data'
][
'role_id'
]
||
''
;
_0x20fa91
(
_0x2551bb
);});});};
_0x5754ef
[
'prototype'
][
'createOrder'
]
=
function
(){
var
_0x33b311
=
this
;
var
_0x4f6ba4
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x2d2bb6
,
_0x408bde
){
return
__awaiter
(
_0x33b311
,
void
0x0
,
void
0x0
,
function
(){
var
_0x53f145
,
_0x14e2fe
,
_0x26835f
,
_0x4e22d8
,
_0x323f13
,
_0x3d9f94
,
_0x459342
,
_0x3073c8
,
_0x3cb702
,
_0x3d5438
;
return
__generator
(
this
,
function
(
_0x581915
){
switch
(
_0x581915
[
'label'
]){
case
0x0
:
return
[
0x4
,
_0x5754ef
[
'ajax'
](
'/mini_sdk/order/create'
,{
'app_id'
:
_0x5754ef
[
'default'
][
'appId'
],
'game_id'
:
_0x5754ef
[
'default'
][
'gameId'
],
'member_id'
:
_0x5754ef
[
'default'
][
'memberId'
],
'os'
:
_0x5754ef
[
'default'
][
'os'
],
'device_number'
:
_0x5754ef
[
'default'
][
'device_number'
],
'device_brand'
:
_0x5754ef
[
'default'
][
'device_brand'
],
'order'
:
_0x4f6ba4
[
'order'
]
||
{},
'role'
:
_0x4f6ba4
[
'role'
]
||
{},
'role_id'
:
_0x5754ef
[
'default'
][
'roleId'
]})];
case
0x1
:
_0x53f145
=
_0x581915
[
'sent'
]();
if
(
_0x53f145
[
'status_code'
]
===
0x1
){
_0x2d2bb6
({
'status_code'
:
_0x53f145
[
'status_code'
],
'msg'
:
_0x53f145
[
'msg'
],
'data'
:{
'data'
:{
'order_id'
:
_0x53f145
[
'data'
][
'data'
][
'order_id'
]}}});
_0x14e2fe
=
_0x53f145
[
'data'
][
'data'
][
'pay_type'
];
if
(
_0x14e2fe
===
'minipay'
){
wx
[
'navigateToMiniProgram'
]({
'appId'
:
_0x53f145
[
'data'
][
'data'
][
'mini_pay'
][
'app_id'
],
'path'
:
_0x53f145
[
'data'
][
'data'
][
'mini_pay'
][
'path'
]});}
if
(
_0x14e2fe
===
'mpay'
){
_0x26835f
=
_0x53f145
[
'data'
][
'data'
][
'mpay'
],
_0x4e22d8
=
_0x26835f
[
'mode'
],
_0x323f13
=
_0x26835f
[
'env'
],
_0x3d9f94
=
_0x26835f
[
'offer_id'
],
_0x459342
=
_0x26835f
[
'currency_type'
],
_0x3073c8
=
_0x26835f
[
'platform'
],
_0x3cb702
=
_0x26835f
[
'buy_quantity'
],
_0x3d5438
=
_0x26835f
[
'zone_id'
];
wx
[
'requestMidasPayment'
]({
'mode'
:
_0x4e22d8
,
'env'
:
_0x323f13
,
'offerId'
:
_0x3d9f94
,
'currencyType'
:
_0x459342
,
'buyQuantity'
:
_0x3cb702
,
'platform'
:
_0x3073c8
,
'zoneId'
:
_0x3d5438
,
'complete'
:
function
(
_0x5bffe2
){
_0x5754ef
[
'ajax'
](
'/mini_sdk/mds_pay/callback'
,{
'order_id'
:
_0x53f145
[
'data'
][
'data'
][
'order_id'
]
||
''
,
'status'
:
_0x5bffe2
[
'errCode'
]?
!
[]:
!!
[],
'code'
:
_0x5bffe2
[
'errCode'
],
'msg'
:
_0x5bffe2
[
'errMsg'
]})[
'then'
](
function
(
_0x1420f9
){});}});}}
else
{
_0x2d2bb6
(
_0x53f145
);}
return
[
0x2
];}});});});};
_0x5754ef
[
'prototype'
][
'checkOrder'
]
=
function
(){
var
_0x8634b6
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x551707
,
_0x2c973c
){
_0x5754ef
[
'ajax'
](
'/mini_sdk/order/getPayStatus'
,{
'order'
:
_0x8634b6
[
'order'
]})[
'then'
](
function
(
_0xc2aa10
){
_0x551707
(
_0xc2aa10
);});});};
_0x5754ef
[
'prototype'
][
'getShareInfo'
]
=
function
(){
var
_0x588ac1
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x32cb05
,
_0x4b121e
){
_0x5754ef
[
'ajax'
](
'/mini_sdk/share/getShareInfo'
,{
'game_id'
:
_0x5754ef
[
'default'
][
'gameId'
],
'member_id'
:
_0x5754ef
[
'default'
][
'memberId'
],
'app_id'
:
_0x5754ef
[
'default'
][
'appId'
],
'path'
:
_0x588ac1
[
'path'
]
||
''
})[
'then'
](
function
(
_0x22847d
){
_0x32cb05
(
_0x22847d
);});});};
_0x5754ef
[
'prototype'
][
'reportShare'
]
=
function
(){
var
_0x263e7a
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x1ba3ed
,
_0x5ac25a
){
_0x5754ef
[
'ajax'
](
'/mini_sdk/share/report'
,{
'game_id'
:
_0x5754ef
[
'default'
][
'gameId'
],
'member_id'
:
_0x5754ef
[
'default'
][
'memberId'
],
'app_id'
:
_0x5754ef
[
'default'
][
'appId'
],
'share_id'
:
_0x263e7a
[
'share_id'
]
||
''
,
'ext'
:
_0x263e7a
[
'ext'
]
||
''
})[
'then'
](
function
(
_0x3a09b5
){
_0x1ba3ed
(
_0x3a09b5
);});});};
_0x5754ef
[
'prototype'
][
'updateRole'
]
=
function
(){
var
_0x5d8855
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x4d6b52
,
_0x3ebb1f
){
_0x5754ef
[
'ajax'
](
'/mini_sdk/role/report'
,{
'app_id'
:
_0x5754ef
[
'default'
][
'appId'
],
'game_id'
:
_0x5754ef
[
'default'
][
'gameId'
],
'member_id'
:
_0x5754ef
[
'default'
][
'memberId'
],
'os'
:
_0x5754ef
[
'default'
][
'os'
],
'device_number'
:
_0x5754ef
[
'default'
][
'device_number'
],
'device_brand'
:
_0x5754ef
[
'default'
][
'device_brand'
],
'role'
:
_0x5d8855
[
'role'
]
||
{}})[
'then'
](
function
(
_0x1d0a66
){
_0x4d6b52
(
_0x1d0a66
);});});};
_0x5754ef
[
'prototype'
][
'checkMsg'
]
=
function
(){
var
_0x215587
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x293dda
,
_0xbfe667
){
_0x5754ef
[
'ajax'
](
'/mini_sdk/check/message'
,{
'game_id'
:
_0x5754ef
[
'default'
][
'gameId'
],
'member_id'
:
_0x5754ef
[
'default'
][
'memberId'
],
'app_id'
:
_0x5754ef
[
'default'
][
'appId'
],
'content'
:
_0x215587
[
'content'
]
||
''
})[
'then'
](
function
(
_0x55677c
){
_0x293dda
(
_0x55677c
);});});};
_0x5754ef
[
'prototype'
][
'checkImg'
]
=
function
(){
var
_0xb15e77
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x502809
,
_0x479ca6
){
wx
[
'uploadFile'
]({
'url'
:
_0x5754ef
[
'default'
][
'baseUrl'
]
+
'/mini_sdk/check/image'
,
'filePath'
:
_0xb15e77
[
'filePath'
],
'name'
:
'image'
,
'header'
:{
'User-Token'
:
_0x5754ef
[
'default'
][
'userToken'
]},
'formData'
:{
'game_id'
:
_0x5754ef
[
'default'
][
'gameId'
],
'member_id'
:
_0x5754ef
[
'default'
][
'memberId'
],
'app_id'
:
_0x5754ef
[
'default'
][
'appId'
],
'user_token'
:
_0x5754ef
[
'default'
][
'userToken'
]},
'success'
:
function
(
_0x1f49db
){
_0x502809
(
_0x1f49db
);}});});};
_0x5754ef
[
'ajax'
]
=
function
(
_0xe12bfb
,
_0x18302c
){
var
_0x1e3b35
=
{
'content-type'
:
'application/json'
};
if
(
_0x5754ef
[
'default'
][
'userToken'
]){
_0x1e3b35
[
'User-Token'
]
=
_0x5754ef
[
'default'
][
'userToken'
];}
var
_0x312496
=
_0x18302c
[
'showLoading'
],
_0x5c8cb9
=
_0x18302c
[
'loadingParams'
],
_0x32d7e0
=
_0x18302c
[
'showToast'
],
_0x4503be
=
_0x18302c
[
'toastParams'
];
_0x312496
&&
wx
[
'showLoading'
](
_0x5c8cb9
);
return
new
Promise
(
function
(
_0x2dd796
,
_0x119480
){
wx
[
'request'
]({
'method'
:
'POST'
,
'url'
:
_0x5754ef
[
'default'
][
'baseUrl'
]
+
_0xe12bfb
,
'data'
:
_0x18302c
,
'header'
:
_0x1e3b35
,
'success'
:
function
(
_0x36bb6f
){
_0x312496
&&
wx
[
'hideLoading'
]();
if
(
_0x32d7e0
){
_0x4503be
[
'title'
]
=
_0x36bb6f
[
'data'
][
'msg'
];
wx
[
'showToast'
](
_0x4503be
);}
_0x2dd796
(
_0x36bb6f
[
'data'
]);},
'fail'
:
function
(
_0x126b98
){
_0x312496
&&
wx
[
'hideLoading'
]();
if
(
_0x32d7e0
){
_0x4503be
[
'title'
]
=
_0x126b98
[
'errMsg'
];
wx
[
'showToast'
](
_0x4503be
);}
_0x2dd796
(
_0x126b98
);}});});};
_0x5754ef
[
'getSystemOS'
]
=
function
(){
var
_0x475b97
=
wx
[
'getSystemInfoSync'
]()[
'system'
];
if
(
_0x475b97
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'android'
)
>-
0x1
)
return
'android'
;
if
(
_0x475b97
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'ios'
)
>-
0x1
)
return
'ios'
;
if
(
_0x475b97
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'windows'
)
>-
0x1
)
return
'windows'
;
if
(
_0x475b97
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'macos'
)
>-
0x1
)
return
'macos'
;
return
'other'
;};
_0x5754ef
[
'getSystemBrand'
]
=
function
(){
var
_0x49cf00
=
wx
[
'getSystemInfoSync'
]()[
'brand'
];
return
_0x49cf00
;};
_0x5754ef
[
'getSystemNumber'
]
=
function
(){
var
_0x59cd1a
=
wx
[
'getSystemInfoSync'
]()[
'model'
];
return
_0x59cd1a
;};
_0x5754ef
[
'midasPay'
]
=
function
(
_0x32516a
){
return
wx
[
'requestMidasPayment'
](
_0x32516a
);};
_0x5754ef
[
'default'
]
=
{
'appId'
:
''
,
'gameId'
:
''
,
'os'
:
_0x5754ef
[
'getSystemOS'
](),
'device_number'
:
_0x5754ef
[
'getSystemNumber'
](),
'device_brand'
:
_0x5754ef
[
'getSystemBrand'
](),
'memberId'
:
''
,
'roleId'
:
''
,
'playerId'
:
''
,
'userToken'
:
''
,
'baseUrl'
:
''
};
return
_0x5754ef
;}();
exports
[
'default'
]
=
zwsdk
;
\ No newline at end of file
'use strict'
;
var
__awaiter
=
this
&&
this
[
'__awaiter'
]
||
function
(
_0x26854d
,
_0x18c36c
,
_0x2e9fd9
,
_0x43720e
){
function
_0x5f4fd5
(
_0x57b6a8
){
return
_0x57b6a8
instanceof
_0x2e9fd9
?
_0x57b6a8
:
new
_0x2e9fd9
(
function
(
_0x2d98b8
){
_0x2d98b8
(
_0x57b6a8
);});}
return
new
(
_0x2e9fd9
||
(
_0x2e9fd9
=
Promise
))(
function
(
_0x589cc1
,
_0xc9c152
){
function
_0x47db05
(
_0x12ef85
){
try
{
_0x53b702
(
_0x43720e
[
'next'
](
_0x12ef85
));}
catch
(
_0x49ee9c
){
_0xc9c152
(
_0x49ee9c
);}}
function
_0x39b81c
(
_0x1a553a
){
try
{
_0x53b702
(
_0x43720e
[
'throw'
](
_0x1a553a
));}
catch
(
_0x3cbe62
){
_0xc9c152
(
_0x3cbe62
);}}
function
_0x53b702
(
_0x2f6a85
){
_0x2f6a85
[
'done'
]?
_0x589cc1
(
_0x2f6a85
[
'value'
]):
_0x5f4fd5
(
_0x2f6a85
[
'value'
])[
'then'
](
_0x47db05
,
_0x39b81c
);}
_0x53b702
((
_0x43720e
=
_0x43720e
[
'apply'
](
_0x26854d
,
_0x18c36c
||
[]))[
'next'
]());});};
var
__generator
=
this
&&
this
[
'__generator'
]
||
function
(
_0x43cea3
,
_0x4f4d5c
){
var
_0x4c89cf
=
{
'label'
:
0x0
,
'sent'
:
function
(){
if
(
_0x45cdbc
[
0x0
]
&
0x1
)
throw
_0x45cdbc
[
0x1
];
return
_0x45cdbc
[
0x1
];},
'trys'
:[],
'ops'
:[]},
_0x19ea86
,
_0x2724d2
,
_0x45cdbc
,
_0xe2f2bd
;
return
_0xe2f2bd
=
{
'next'
:
_0x4cf971
(
0x0
),
'throw'
:
_0x4cf971
(
0x1
),
'return'
:
_0x4cf971
(
0x2
)},
typeof
Symbol
===
'function'
&&
(
_0xe2f2bd
[
Symbol
[
'iterator'
]]
=
function
(){
return
this
;}),
_0xe2f2bd
;
function
_0x4cf971
(
_0x160c73
){
return
function
(
_0x4d488a
){
return
_0x59a9f6
([
_0x160c73
,
_0x4d488a
]);};}
function
_0x59a9f6
(
_0x1d86ba
){
if
(
_0x19ea86
)
throw
new
TypeError
(
'Generator
\
x20is
\
x20already
\
x20executing.'
);
while
(
_0x4c89cf
)
try
{
if
(
_0x19ea86
=
0x1
,
_0x2724d2
&&
(
_0x45cdbc
=
_0x1d86ba
[
0x0
]
&
0x2
?
_0x2724d2
[
'return'
]:
_0x1d86ba
[
0x0
]?
_0x2724d2
[
'throw'
]
||
((
_0x45cdbc
=
_0x2724d2
[
'return'
])
&&
_0x45cdbc
[
'call'
](
_0x2724d2
),
0x0
):
_0x2724d2
[
'next'
])
&&!
(
_0x45cdbc
=
_0x45cdbc
[
'call'
](
_0x2724d2
,
_0x1d86ba
[
0x1
]))[
'done'
])
return
_0x45cdbc
;
if
(
_0x2724d2
=
0x0
,
_0x45cdbc
)
_0x1d86ba
=
[
_0x1d86ba
[
0x0
]
&
0x2
,
_0x45cdbc
[
'value'
]];
switch
(
_0x1d86ba
[
0x0
]){
case
0x0
:
case
0x1
:
_0x45cdbc
=
_0x1d86ba
;
break
;
case
0x4
:
_0x4c89cf
[
'label'
]
++
;
return
{
'value'
:
_0x1d86ba
[
0x1
],
'done'
:
!
[]};
case
0x5
:
_0x4c89cf
[
'label'
]
++
;
_0x2724d2
=
_0x1d86ba
[
0x1
];
_0x1d86ba
=
[
0x0
];
continue
;
case
0x7
:
_0x1d86ba
=
_0x4c89cf
[
'ops'
][
'pop'
]();
_0x4c89cf
[
'trys'
][
'pop'
]();
continue
;
default
:
if
(
!
(
_0x45cdbc
=
_0x4c89cf
[
'trys'
],
_0x45cdbc
=
_0x45cdbc
[
'length'
]
>
0x0
&&
_0x45cdbc
[
_0x45cdbc
[
'length'
]
-
0x1
])
&&
(
_0x1d86ba
[
0x0
]
===
0x6
||
_0x1d86ba
[
0x0
]
===
0x2
)){
_0x4c89cf
=
0x0
;
continue
;}
if
(
_0x1d86ba
[
0x0
]
===
0x3
&&
(
!
_0x45cdbc
||
_0x1d86ba
[
0x1
]
>
_0x45cdbc
[
0x0
]
&&
_0x1d86ba
[
0x1
]
<
_0x45cdbc
[
0x3
])){
_0x4c89cf
[
'label'
]
=
_0x1d86ba
[
0x1
];
break
;}
if
(
_0x1d86ba
[
0x0
]
===
0x6
&&
_0x4c89cf
[
'label'
]
<
_0x45cdbc
[
0x1
]){
_0x4c89cf
[
'label'
]
=
_0x45cdbc
[
0x1
];
_0x45cdbc
=
_0x1d86ba
;
break
;}
if
(
_0x45cdbc
&&
_0x4c89cf
[
'label'
]
<
_0x45cdbc
[
0x2
]){
_0x4c89cf
[
'label'
]
=
_0x45cdbc
[
0x2
];
_0x4c89cf
[
'ops'
][
'push'
](
_0x1d86ba
);
break
;}
if
(
_0x45cdbc
[
0x2
])
_0x4c89cf
[
'ops'
][
'pop'
]();
_0x4c89cf
[
'trys'
][
'pop'
]();
continue
;}
_0x1d86ba
=
_0x4f4d5c
[
'call'
](
_0x43cea3
,
_0x4c89cf
);}
catch
(
_0x2d3124
){
_0x1d86ba
=
[
0x6
,
_0x2d3124
];
_0x2724d2
=
0x0
;}
finally
{
_0x19ea86
=
_0x45cdbc
=
0x0
;}
if
(
_0x1d86ba
[
0x0
]
&
0x5
)
throw
_0x1d86ba
[
0x1
];
return
{
'value'
:
_0x1d86ba
[
0x0
]?
_0x1d86ba
[
0x1
]:
void
0x0
,
'done'
:
!!
[]};}};
exports
[
'__esModule'
]
=!!
[];
var
zwsdk
=
function
(){
function
_0x9839b3
(){
this
[
'VERSION'
]
=
'1.0'
;
var
_0x4b49a6
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:
null
;
var
_0x338af0
=
wx
[
'getEnterOptionsSync'
]()[
'query'
];
if
(
_0x4b49a6
){
_0x9839b3
[
'default'
][
'appId'
]
=
_0x4b49a6
[
'app_id'
];
_0x9839b3
[
'default'
][
'gameId'
]
=
_0x4b49a6
[
'game_id'
];
_0x9839b3
[
'default'
][
'os'
]
=
_0x9839b3
[
'getSystemOS'
]();
_0x9839b3
[
'default'
][
'baseUrl'
]
=
_0x4b49a6
[
'dev'
]?
'https://zs.zwwlkj03.top/api'
:
'https://zyou.wozhangwan.com/api'
;
_0x9839b3
[
'default'
][
'query'
]
=
_0x338af0
;
_0x9839b3
[
'default'
][
'state'
]
=
_0x9839b3
[
'getState'
](
_0x338af0
);}}
_0x9839b3
[
'prototype'
][
'getGameConf'
]
=
function
(){
return
new
Promise
(
function
(
_0x2cf4c1
,
_0x3a8ca1
){
_0x9839b3
[
'ajax'
](
'/mini_sdk/game/getConf'
,{
'app_id'
:
_0x9839b3
[
'default'
][
'appId'
],
'game_id'
:
_0x9839b3
[
'default'
][
'gameId'
]})[
'then'
](
function
(
_0x918558
){
_0x2cf4c1
(
_0x918558
);});});};
_0x9839b3
[
'prototype'
][
'login'
]
=
function
(){
var
_0x56039c
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0xa9eaa3
,
_0x4e5e5b
){
wx
[
'login'
]({
'success'
:
function
(
_0x109355
){
var
_0xa7bf86
=
_0x109355
[
'code'
];
_0x9839b3
[
'ajax'
](
'/mini_sdk/auth/login'
,{
'code'
:
_0xa7bf86
,
'state'
:
_0x9839b3
[
'default'
][
'state'
],
'query'
:
_0x9839b3
[
'default'
][
'query'
],
'app_id'
:
_0x9839b3
[
'default'
][
'appId'
],
'game_id'
:
_0x9839b3
[
'default'
][
'gameId'
],
'os'
:
_0x9839b3
[
'default'
][
'os'
],
'device_number'
:
_0x9839b3
[
'default'
][
'device_brand'
],
'device_brand'
:
_0x9839b3
[
'default'
][
'device_brand'
]})[
'then'
](
function
(
_0x59ff46
){
var
_0x27c959
=
_0x59ff46
;
if
(
_0x59ff46
[
'status_code'
]
===
0x1
){
_0x9839b3
[
'default'
][
'userToken'
]
=
_0x59ff46
[
'data'
][
'data'
][
'user_token'
];
_0x9839b3
[
'default'
][
'memberId'
]
=
_0x59ff46
[
'data'
][
'data'
][
'member_id'
];}
_0xa9eaa3
(
_0x27c959
);});}});});};
_0x9839b3
[
'prototype'
][
'updateUserInfo'
]
=
function
(){
var
_0xf5844
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x3afcf7
,
_0x4b14c9
){
_0x9839b3
[
'ajax'
](
'/mini_sdk/member/updateInfo'
,{
'app_id'
:
_0x9839b3
[
'default'
][
'appId'
],
'game_id'
:
_0x9839b3
[
'default'
][
'gameId'
],
'member_id'
:
_0x9839b3
[
'default'
][
'memberId'
],
'raw_data'
:
_0xf5844
[
'raw_data'
]
||
''
,
'signature'
:
_0xf5844
[
'signature'
]
||
''
,
'encrypted_data'
:
_0xf5844
[
'encrypted_data'
]
||
''
,
'iv'
:
_0xf5844
[
'iv'
]
||
''
,
'user_info'
:
_0xf5844
[
'user_info'
]
||
''
})[
'then'
](
function
(
_0x4c2904
){
_0x9839b3
[
'default'
][
'roleId'
]
=
_0x4c2904
[
'data'
][
'data'
][
'role_id'
]
||
''
;
_0x3afcf7
(
_0x4c2904
);});});};
_0x9839b3
[
'prototype'
][
'createOrder'
]
=
function
(){
var
_0x908056
=
this
;
var
_0x519be9
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x402626
,
_0x536c58
){
return
__awaiter
(
_0x908056
,
void
0x0
,
void
0x0
,
function
(){
var
_0x20b163
,
_0x1a4f14
,
_0x5205bc
,
_0x1be852
,
_0x513866
,
_0x24e4d4
,
_0x158cd4
,
_0x48dd99
,
_0x56788e
,
_0x2fe8ad
;
return
__generator
(
this
,
function
(
_0x17c73b
){
switch
(
_0x17c73b
[
'label'
]){
case
0x0
:
return
[
0x4
,
_0x9839b3
[
'ajax'
](
'/mini_sdk/order/create'
,{
'app_id'
:
_0x9839b3
[
'default'
][
'appId'
],
'game_id'
:
_0x9839b3
[
'default'
][
'gameId'
],
'member_id'
:
_0x9839b3
[
'default'
][
'memberId'
],
'os'
:
_0x9839b3
[
'default'
][
'os'
],
'device_number'
:
_0x9839b3
[
'default'
][
'device_number'
],
'device_brand'
:
_0x9839b3
[
'default'
][
'device_brand'
],
'order'
:
_0x519be9
[
'order'
]
||
{},
'role'
:
_0x519be9
[
'role'
]
||
{},
'role_id'
:
_0x9839b3
[
'default'
][
'roleId'
]})];
case
0x1
:
_0x20b163
=
_0x17c73b
[
'sent'
]();
if
(
_0x20b163
[
'status_code'
]
===
0x1
){
_0x402626
({
'status_code'
:
_0x20b163
[
'status_code'
],
'msg'
:
_0x20b163
[
'msg'
],
'data'
:{
'data'
:{
'order_id'
:
_0x20b163
[
'data'
][
'data'
][
'order_id'
]}}});
_0x1a4f14
=
_0x20b163
[
'data'
][
'data'
][
'pay_type'
];
if
(
_0x1a4f14
===
'minipay'
){
wx
[
'navigateToMiniProgram'
]({
'appId'
:
_0x20b163
[
'data'
][
'data'
][
'mini_pay'
][
'app_id'
],
'path'
:
_0x20b163
[
'data'
][
'data'
][
'mini_pay'
][
'path'
]});}
if
(
_0x1a4f14
===
'mpay'
){
_0x5205bc
=
_0x20b163
[
'data'
][
'data'
][
'mpay'
],
_0x1be852
=
_0x5205bc
[
'mode'
],
_0x513866
=
_0x5205bc
[
'env'
],
_0x24e4d4
=
_0x5205bc
[
'offer_id'
],
_0x158cd4
=
_0x5205bc
[
'currency_type'
],
_0x48dd99
=
_0x5205bc
[
'platform'
],
_0x56788e
=
_0x5205bc
[
'buy_quantity'
],
_0x2fe8ad
=
_0x5205bc
[
'zone_id'
];
wx
[
'requestMidasPayment'
]({
'mode'
:
_0x1be852
,
'env'
:
_0x513866
,
'offerId'
:
_0x24e4d4
,
'currencyType'
:
_0x158cd4
,
'buyQuantity'
:
_0x56788e
,
'platform'
:
_0x48dd99
,
'zoneId'
:
_0x2fe8ad
,
'complete'
:
function
(
_0x2ffc92
){
_0x9839b3
[
'ajax'
](
'/mini_sdk/mds_pay/callback'
,{
'order_id'
:
_0x20b163
[
'data'
][
'data'
][
'order_id'
]
||
''
,
'status'
:
_0x2ffc92
[
'errCode'
]?
!
[]:
!!
[],
'code'
:
_0x2ffc92
[
'errCode'
],
'msg'
:
_0x2ffc92
[
'errMsg'
]})[
'then'
](
function
(
_0x31a4a4
){});}});}}
else
{
_0x402626
(
_0x20b163
);}
return
[
0x2
];}});});});};
_0x9839b3
[
'prototype'
][
'checkOrder'
]
=
function
(){
var
_0x146633
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x1f43ef
,
_0x206adb
){
_0x9839b3
[
'ajax'
](
'/mini_sdk/order/getPayStatus'
,{
'order'
:
_0x146633
[
'order'
]})[
'then'
](
function
(
_0x39c511
){
_0x1f43ef
(
_0x39c511
);});});};
_0x9839b3
[
'prototype'
][
'getShareInfo'
]
=
function
(){
var
_0x2ae610
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x240e2f
,
_0x42a83d
){
_0x9839b3
[
'ajax'
](
'/mini_sdk/share/getShareInfo'
,{
'game_id'
:
_0x9839b3
[
'default'
][
'gameId'
],
'member_id'
:
_0x9839b3
[
'default'
][
'memberId'
],
'app_id'
:
_0x9839b3
[
'default'
][
'appId'
],
'path'
:
_0x2ae610
[
'path'
]
||
''
})[
'then'
](
function
(
_0x1ef079
){
_0x240e2f
(
_0x1ef079
);});});};
_0x9839b3
[
'prototype'
][
'reportShare'
]
=
function
(){
var
_0x2e1063
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x11b728
,
_0x244aca
){
_0x9839b3
[
'ajax'
](
'/mini_sdk/share/report'
,{
'game_id'
:
_0x9839b3
[
'default'
][
'gameId'
],
'member_id'
:
_0x9839b3
[
'default'
][
'memberId'
],
'app_id'
:
_0x9839b3
[
'default'
][
'appId'
],
'share_id'
:
_0x2e1063
[
'share_id'
]
||
''
,
'ext'
:
_0x2e1063
[
'ext'
]
||
''
})[
'then'
](
function
(
_0x1374f4
){
_0x11b728
(
_0x1374f4
);});});};
_0x9839b3
[
'prototype'
][
'updateRole'
]
=
function
(){
var
_0xa41125
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x17ba54
,
_0x1a8832
){
_0x9839b3
[
'ajax'
](
'/mini_sdk/role/report'
,{
'app_id'
:
_0x9839b3
[
'default'
][
'appId'
],
'game_id'
:
_0x9839b3
[
'default'
][
'gameId'
],
'member_id'
:
_0x9839b3
[
'default'
][
'memberId'
],
'os'
:
_0x9839b3
[
'default'
][
'os'
],
'device_number'
:
_0x9839b3
[
'default'
][
'device_number'
],
'device_brand'
:
_0x9839b3
[
'default'
][
'device_brand'
],
'role'
:
_0xa41125
[
'role'
]
||
{}})[
'then'
](
function
(
_0x2a72c0
){
_0x17ba54
(
_0x2a72c0
);});});};
_0x9839b3
[
'prototype'
][
'checkMsg'
]
=
function
(){
var
_0x57a215
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0xe00dd4
,
_0x5e63cb
){
_0x9839b3
[
'ajax'
](
'/mini_sdk/check/message'
,{
'game_id'
:
_0x9839b3
[
'default'
][
'gameId'
],
'member_id'
:
_0x9839b3
[
'default'
][
'memberId'
],
'app_id'
:
_0x9839b3
[
'default'
][
'appId'
],
'content'
:
_0x57a215
[
'content'
]
||
''
})[
'then'
](
function
(
_0x55f849
){
_0xe00dd4
(
_0x55f849
);});});};
_0x9839b3
[
'prototype'
][
'checkImg'
]
=
function
(){
var
_0x293197
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x3cfc9d
,
_0x3ce27e
){
wx
[
'uploadFile'
]({
'url'
:
_0x9839b3
[
'default'
][
'baseUrl'
]
+
'/mini_sdk/check/image'
,
'filePath'
:
_0x293197
[
'filePath'
],
'name'
:
'image'
,
'header'
:{
'User-Token'
:
_0x9839b3
[
'default'
][
'userToken'
]},
'formData'
:{
'game_id'
:
_0x9839b3
[
'default'
][
'gameId'
],
'member_id'
:
_0x9839b3
[
'default'
][
'memberId'
],
'app_id'
:
_0x9839b3
[
'default'
][
'appId'
],
'user_token'
:
_0x9839b3
[
'default'
][
'userToken'
]},
'success'
:
function
(
_0x295e27
){
_0x3cfc9d
(
_0x295e27
);}});});};
_0x9839b3
[
'ajax'
]
=
function
(
_0x401255
,
_0x219841
){
var
_0xe4c9db
=
{
'content-type'
:
'application/json'
};
if
(
_0x9839b3
[
'default'
][
'userToken'
]){
_0xe4c9db
[
'User-Token'
]
=
_0x9839b3
[
'default'
][
'userToken'
];}
var
_0x542860
=
_0x219841
[
'showLoading'
],
_0x5add49
=
_0x219841
[
'loadingParams'
],
_0x447808
=
_0x219841
[
'showToast'
],
_0x454403
=
_0x219841
[
'toastParams'
];
_0x542860
&&
wx
[
'showLoading'
](
_0x5add49
);
return
new
Promise
(
function
(
_0xb11e83
,
_0x420f19
){
wx
[
'request'
]({
'method'
:
'POST'
,
'url'
:
_0x9839b3
[
'default'
][
'baseUrl'
]
+
_0x401255
,
'data'
:
_0x219841
,
'header'
:
_0xe4c9db
,
'success'
:
function
(
_0x31b34f
){
_0x542860
&&
wx
[
'hideLoading'
]();
if
(
_0x447808
){
_0x454403
[
'title'
]
=
_0x31b34f
[
'data'
][
'msg'
];
wx
[
'showToast'
](
_0x454403
);}
_0xb11e83
(
_0x31b34f
[
'data'
]);},
'fail'
:
function
(
_0x5d97f2
){
_0x542860
&&
wx
[
'hideLoading'
]();
if
(
_0x447808
){
_0x454403
[
'title'
]
=
_0x5d97f2
[
'errMsg'
];
wx
[
'showToast'
](
_0x454403
);}
_0xb11e83
(
_0x5d97f2
);}});});};
_0x9839b3
[
'getSystemOS'
]
=
function
(){
var
_0x2cd1c8
=
wx
[
'getSystemInfoSync'
]()[
'system'
];
if
(
_0x2cd1c8
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'android'
)
>-
0x1
)
return
'android'
;
if
(
_0x2cd1c8
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'ios'
)
>-
0x1
)
return
'ios'
;
if
(
_0x2cd1c8
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'windows'
)
>-
0x1
)
return
'windows'
;
if
(
_0x2cd1c8
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'macos'
)
>-
0x1
)
return
'macos'
;
return
'other'
;};
_0x9839b3
[
'getSystemBrand'
]
=
function
(){
var
_0x382b08
=
wx
[
'getSystemInfoSync'
]()[
'brand'
];
return
_0x382b08
;};
_0x9839b3
[
'getSystemNumber'
]
=
function
(){
var
_0x5cb7ea
=
wx
[
'getSystemInfoSync'
]()[
'model'
];
return
_0x5cb7ea
;};
_0x9839b3
[
'midasPay'
]
=
function
(
_0x498ace
){
return
wx
[
'requestMidasPayment'
](
_0x498ace
);};
_0x9839b3
[
'getQueryVariable'
]
=
function
(
_0x138951
,
_0x58af7e
){
var
_0xfce451
=
_0x138951
;
var
_0x176f9a
=
_0xfce451
[
'split'
](
'&'
);
for
(
var
_0x2f08dc
=
0x0
;
_0x2f08dc
<
_0x176f9a
[
'length'
];
_0x2f08dc
++
){
var
_0x49d559
=
_0x176f9a
[
_0x2f08dc
][
'split'
](
'='
);
if
(
_0x49d559
[
0x0
]
===
_0x58af7e
){
return
_0x49d559
[
0x1
];}}
return
''
;};
_0x9839b3
[
'getState'
]
=
function
(
_0x5a8fd6
){
if
(
_0x5a8fd6
[
'state'
]){
return
_0x5a8fd6
[
'state'
];}
if
(
_0x5a8fd6
[
'scene'
]
&&
_0x5a8fd6
[
'scene'
][
'indexOf'
](
'state'
)
>-
0x1
){
return
_0x9839b3
[
'getQueryVariable'
](
decodeURIComponent
(
_0x5a8fd6
[
'scene'
]),
'state'
);}
return
''
;};
_0x9839b3
[
'default'
]
=
{
'appId'
:
''
,
'gameId'
:
''
,
'os'
:
_0x9839b3
[
'getSystemOS'
](),
'device_number'
:
_0x9839b3
[
'getSystemNumber'
](),
'device_brand'
:
_0x9839b3
[
'getSystemBrand'
](),
'memberId'
:
''
,
'roleId'
:
''
,
'playerId'
:
''
,
'userToken'
:
''
,
'baseUrl'
:
''
};
return
_0x9839b3
;}();
exports
[
'default'
]
=
zwsdk
;
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论