Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zw_game_sdk
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
CI / CD
CI / CD
流水线
日程表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
提交
问题看板
Open sidebar
zwwl
zw_game_sdk
Commits
b52816a6
提交
b52816a6
authored
6月 14, 2022
作者:
张梦磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mini_sdk,1.3.1
上级
9839eaeb
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
+2
-2
sdk.js
sdk.js
+2
-2
没有找到文件。
sdk.js
浏览文件 @
b52816a6
'use strict'
;
var
__awaiter
=
this
&&
this
[
'__awaiter'
]
||
function
(
_0x472ec7
,
_0x5b2454
,
_0x276db8
,
_0x2bafe4
){
function
_0x21ff89
(
_0x39c75a
){
return
_0x39c75a
instanceof
_0x276db8
?
_0x39c75a
:
new
_0x276db8
(
function
(
_0x2fdbe6
){
_0x2fdbe6
(
_0x39c75a
);});}
return
new
(
_0x276db8
||
(
_0x276db8
=
Promise
))(
function
(
_0x5f1f25
,
_0x97cf77
){
function
_0x1fd72d
(
_0x165fed
){
try
{
_0x3261ad
(
_0x2bafe4
[
'next'
](
_0x165fed
));}
catch
(
_0x5dba1f
){
_0x97cf77
(
_0x5dba1f
);}}
function
_0x42806a
(
_0x5d27db
){
try
{
_0x3261ad
(
_0x2bafe4
[
'throw'
](
_0x5d27db
));}
catch
(
_0xea8bc2
){
_0x97cf77
(
_0xea8bc2
);}}
function
_0x3261ad
(
_0x240f36
){
_0x240f36
[
'done'
]?
_0x5f1f25
(
_0x240f36
[
'value'
]):
_0x21ff89
(
_0x240f36
[
'value'
])[
'then'
](
_0x1fd72d
,
_0x42806a
);}
_0x3261ad
((
_0x2bafe4
=
_0x2bafe4
[
'apply'
](
_0x472ec7
,
_0x5b2454
||
[]))[
'next'
]());});};
var
__generator
=
this
&&
this
[
'__generator'
]
||
function
(
_0x40e447
,
_0x514d91
){
var
_0x388720
=
{
'label'
:
0x0
,
'sent'
:
function
(){
if
(
_0x1499b3
[
0xb1ec4
^
0xb1ec4
]
&
(
0xf2ad3
^
0xf2ad2
))
throw
_0x1499b3
[
0x55bec
^
0x55bed
];
return
_0x1499b3
[
0x337ba
^
0x337bb
];},
'trys'
:[],
'ops'
:[]},
_0x3c2c5f
,
_0x290450
,
_0x1499b3
,
_0x6e1b28
;
return
_0x6e1b28
=
{
'next'
:
_0x55c02f
(
0x47a36
^
0x47a36
),
'throw'
:
_0x55c02f
(
0x81bc3
^
0x81bc2
),
'return'
:
_0x55c02f
(
0xb673a
^
0xb6738
)},
typeof
Symbol
===
'function'
&&
(
_0x6e1b28
[
Symbol
[
'iterator'
]]
=
function
(){
return
this
;}),
_0x6e1b28
;
function
_0x55c02f
(
_0x12e9d3
){
return
function
(
_0x5f408b
){
return
_0x4ceb7f
([
_0x12e9d3
,
_0x5f408b
]);};}
function
_0x4ceb7f
(
_0xa33ea5
){
if
(
_0x3c2c5f
)
throw
new
TypeError
(
'Generator
\
x20is
\
x20already
\
x20executing.'
);
while
(
_0x388720
)
try
{
if
(
_0x3c2c5f
=
0x4ab7b
^
0x4ab7a
,
_0x290450
&&
(
_0x1499b3
=
_0xa33ea5
[
0xa08d1
^
0xa08d1
]
&
(
0x82242
^
0x82240
)?
_0x290450
[
'return'
]:
_0xa33ea5
[
0x0
]?
_0x290450
[
'throw'
]
||
((
_0x1499b3
=
_0x290450
[
'return'
])
&&
_0x1499b3
[
'call'
](
_0x290450
),
0x3cdff
^
0x3cdff
):
_0x290450
[
'next'
])
&&!
(
_0x1499b3
=
_0x1499b3
[
'call'
](
_0x290450
,
_0xa33ea5
[
0x252ce
^
0x252cf
]))[
'done'
])
return
_0x1499b3
;
if
(
_0x290450
=
0x8c4c3
^
0x8c4c3
,
_0x1499b3
)
_0xa33ea5
=
[
_0xa33ea5
[
0x0
]
&
0x2
,
_0x1499b3
[
'value'
]];
switch
(
_0xa33ea5
[
0x0
]){
case
0xe3565
^
0xe3565
:
case
0x1
:
_0x1499b3
=
_0xa33ea5
;
break
;
case
0x4
:
_0x388720
[
'label'
]
++
;
return
{
'value'
:
_0xa33ea5
[
0x1
],
'done'
:
!
[]};
case
0x5
:
_0x388720
[
'label'
]
++
;
_0x290450
=
_0xa33ea5
[
0x1
];
_0xa33ea5
=
[
0x0
];
continue
;
case
0x4b0a0
^
0x4b0a7
:
_0xa33ea5
=
_0x388720
[
'ops'
][
'pop'
]();
_0x388720
[
'trys'
][
'pop'
]();
continue
;
default
:
if
(
!
(
_0x1499b3
=
_0x388720
[
'trys'
],
_0x1499b3
=
_0x1499b3
[
'length'
]
>
(
0xd7018
^
0xd7018
)
&&
_0x1499b3
[
_0x1499b3
[
'length'
]
-
(
0x8e236
^
0x8e237
)])
&&
(
_0xa33ea5
[
0x0
]
===
0x6
||
_0xa33ea5
[
0x0
]
===
0x2
)){
_0x388720
=
0xcafd2
^
0xcafd2
;
continue
;}
if
(
_0xa33ea5
[
0xa4466
^
0xa4466
]
===
(
0x9e2c8
^
0x9e2cb
)
&&
(
!
_0x1499b3
||
_0xa33ea5
[
0x1
]
>
_0x1499b3
[
0x0
]
&&
_0xa33ea5
[
0x4e8c8
^
0x4e8c9
]
<
_0x1499b3
[
0x3
])){
_0x388720
[
'label'
]
=
_0xa33ea5
[
0x1
];
break
;}
if
(
_0xa33ea5
[
0xdbb4b
^
0xdbb4b
]
===
(
0xa4a8f
^
0xa4a89
)
&&
_0x388720
[
'label'
]
<
_0x1499b3
[
0x7903a
^
0x7903b
]){
_0x388720
[
'label'
]
=
_0x1499b3
[
0x1
];
_0x1499b3
=
_0xa33ea5
;
break
;}
if
(
_0x1499b3
&&
_0x388720
[
'label'
]
<
_0x1499b3
[
0xbcef7
^
0xbcef5
]){
_0x388720
[
'label'
]
=
_0x1499b3
[
0x49862
^
0x49860
];
_0x388720
[
'ops'
][
'push'
](
_0xa33ea5
);
break
;}
if
(
_0x1499b3
[
0x2f3f3
^
0x2f3f1
])
_0x388720
[
'ops'
][
'pop'
]();
_0x388720
[
'trys'
][
'pop'
]();
continue
;}
_0xa33ea5
=
_0x514d91
[
'call'
](
_0x40e447
,
_0x388720
);}
catch
(
_0x2f5c93
){
_0xa33ea5
=
[
0x6
,
_0x2f5c93
];
_0x290450
=
0x0
;}
finally
{
_0x3c2c5f
=
_0x1499b3
=
0x0
;}
if
(
_0xa33ea5
[
0x0
]
&
0x5
)
throw
_0xa33ea5
[
0x1
];
return
{
'value'
:
_0xa33ea5
[
0x8c1cd
^
0x8c1cd
]?
_0xa33ea5
[
0xc4649
^
0xc4648
]:
void
(
0x505f6
^
0x505f6
),
'done'
:
!!
[]};}};
exports
[
'__esModule'
]
=!!
[];
var
zwsdk
=
function
(){
function
_0x1df74e
(){
this
[
'VERSION'
]
=
'1.3.1'
;
var
_0x420d99
=
arguments
[
'length'
]
>
(
0xcf9f7
^
0xcf9f7
)
&&
void
0x0
!==
arguments
[
0x76d90
^
0x76d90
]?
arguments
[
0x0
]:
null
;
var
_0x1890aa
=
wx
[
'getEnterOptionsSync'
]()[
'query'
];
if
(
_0x420d99
){
_0x1df74e
[
'default'
][
'appId'
]
=
_0x420d99
[
'app_id'
];
_0x1df74e
[
'default'
][
'gameId'
]
=
_0x420d99
[
'game_id'
];
_0x1df74e
[
'default'
][
'os'
]
=
_0x1df74e
[
'getSystemOS'
]();
_0x1df74e
[
'default'
][
'baseUrl'
]
=
_0x420d99
[
'dev'
]?
'https://zs.zwwlkj03.top/api'
:
'https://zyou.wozhangwan.com/api'
;
_0x1df74e
[
'default'
][
'query'
]
=
_0x1890aa
;
_0x1df74e
[
'default'
][
'state'
]
=
_0x1df74e
[
'getState'
](
_0x1890aa
);
var
_0xa8b3a8
=
wx
[
'getSystemInfoSync'
]()[
'SDKVersion'
];
console
[
'log'
](
'lib
\
x20version:'
+
_0xa8b3a8
);
if
(
_0x1df74e
[
'selfCompareVersion'
](
_0xa8b3a8
,
'1.4.0'
)
>=
0x0
){
wx
[
'setKeepScreenOn'
]({
'keepScreenOn'
:
!!
[]});
console
[
'log'
](
'设置不息屏'
);}
else
{}}}
_0x1df74e
[
'selfCompareVersion'
]
=
function
(
_0x3c82b8
,
_0x25e2ef
){
_0x3c82b8
=
_0x3c82b8
[
'split'
](
'.'
);
_0x25e2ef
=
_0x25e2ef
[
'split'
](
'.'
);
var
_0x4d5ac3
=
Math
[
'max'
](
_0x3c82b8
[
'length'
],
_0x25e2ef
[
'length'
]);
while
(
_0x3c82b8
[
'length'
]
<
_0x4d5ac3
){
_0x3c82b8
[
'push'
](
'0'
);}
while
(
_0x25e2ef
[
'length'
]
<
_0x4d5ac3
){
_0x25e2ef
[
'push'
](
'0'
);}
for
(
var
_0x20455f
=
0x1e91a
^
0x1e91a
;
_0x20455f
<
_0x4d5ac3
;
_0x20455f
++
){
var
_0xaf286a
=
parseInt
(
_0x3c82b8
[
_0x20455f
]);
var
_0x3d4671
=
parseInt
(
_0x25e2ef
[
_0x20455f
]);
if
(
_0xaf286a
>
_0x3d4671
){
return
0x1
;}
else
if
(
_0xaf286a
<
_0x3d4671
){
return
-
0x1
;}}
return
0x1fd3b
^
0x1fd3b
;};
_0x1df74e
[
'prototype'
][
'getGameConf'
]
=
function
(){
return
new
Promise
(
function
(
_0x54ce56
,
_0x2c8387
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/game/getConf'
,{
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'app_version'
:
'1.1'
})[
'then'
](
function
(
_0x453531
){
_0x54ce56
(
_0x453531
);});});};
_0x1df74e
[
'prototype'
][
'login'
]
=
function
(){
var
_0x743386
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x4dbd4c
,
_0x8ef443
){
wx
[
'login'
]({
'success'
:
function
(
_0x2cf337
){
var
_0xb9a320
=
_0x2cf337
[
'code'
];
_0x1df74e
[
'ajax'
](
'/mini_sdk/auth/login'
,{
'code'
:
_0xb9a320
,
'state'
:
_0x1df74e
[
'default'
][
'state'
],
'query'
:
_0x1df74e
[
'default'
][
'query'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'os'
:
_0x1df74e
[
'default'
][
'os'
],
'device_number'
:
_0x1df74e
[
'default'
][
'device_brand'
],
'device_brand'
:
_0x1df74e
[
'default'
][
'device_brand'
]})[
'then'
](
function
(
_0x340c4f
){
var
_0x4fe469
=
_0x340c4f
;
if
(
_0x340c4f
[
'status_code'
]
===
0x1
){
_0x1df74e
[
'default'
][
'userToken'
]
=
_0x340c4f
[
'data'
][
'data'
][
'user_token'
];
_0x1df74e
[
'default'
][
'memberId'
]
=
_0x340c4f
[
'data'
][
'data'
][
'member_id'
];
_0x1df74e
[
'initShare'
]();
_0x1df74e
[
'checkLoginStatus'
]();
_0x4dbd4c
(
_0x4fe469
);}
else
{
wx
[
'showModal'
]({
'title'
:
'异常'
,
'content'
:
_0x340c4f
[
'msg'
],
'confirmText'
:
'我知道了'
,
'showCancel'
:
!
[]});}});}});});};
_0x1df74e
[
'prototype'
][
'updateUserInfo'
]
=
function
(){
var
_0x55f071
=
arguments
[
'length'
]
>
(
0xb21bf
^
0xb21bf
)
&&
void
(
0x302a1
^
0x302a1
)
!==
arguments
[
0x0
]?
arguments
[
0xcd1c8
^
0xcd1c8
]:{};
return
new
Promise
(
function
(
_0x54607c
,
_0x286b3c
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/member/updateInfo'
,{
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'raw_data'
:
_0x55f071
[
'raw_data'
]
||
''
,
'signature'
:
_0x55f071
[
'signature'
]
||
''
,
'encrypted_data'
:
_0x55f071
[
'encrypted_data'
]
||
''
,
'iv'
:
_0x55f071
[
'iv'
]
||
''
,
'user_info'
:
_0x55f071
[
'user_info'
]
||
''
})[
'then'
](
function
(
_0x4161bf
){
_0x1df74e
[
'default'
][
'roleId'
]
=
_0x4161bf
[
'data'
][
'data'
][
'role_id'
]
||
''
;
_0x54607c
(
_0x4161bf
);});});};
_0x1df74e
[
'prototype'
][
'createOrder'
]
=
function
(){
var
_0x52023c
=
this
;
var
_0x4c32e9
=
arguments
[
'length'
]
>
(
0xce3cf
^
0xce3cf
)
&&
void
(
0x82d20
^
0x82d20
)
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x3e7353
,
_0x26a5b7
){
return
__awaiter
(
_0x52023c
,
void
0x0
,
void
0x0
,
function
(){
var
_0x4c2690
,
_0x21afaa
,
_0x319738
,
_0x3574ea
,
_0x2aea00
,
_0x34d976
,
_0x5c02f
,
_0x1a43bf
,
_0x48eae7
,
_0x139f8f
;
var
_0x1d63ed
=
this
;
return
__generator
(
this
,
function
(
_0x36dede
){
switch
(
_0x36dede
[
'label'
]){
case
0x0
:
return
[
0x4
,
_0x1df74e
[
'ajax'
](
'/mini_sdk/order/create'
,{
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'os'
:
_0x1df74e
[
'default'
][
'os'
],
'device_number'
:
_0x1df74e
[
'default'
][
'device_number'
],
'device_brand'
:
_0x1df74e
[
'default'
][
'device_brand'
],
'order'
:
_0x4c32e9
[
'order'
]
||
{},
'role'
:
_0x4c32e9
[
'role'
]
||
{},
'role_id'
:
_0x1df74e
[
'default'
][
'roleId'
]})];
case
0xf18aa
^
0xf18ab
:
_0x4c2690
=
_0x36dede
[
'sent'
]();
if
(
_0x4c2690
[
'status_code'
]
===
0x1
){
_0x3e7353
({
'status_code'
:
_0x4c2690
[
'status_code'
],
'msg'
:
_0x4c2690
[
'msg'
],
'data'
:{
'data'
:{
'order_id'
:
_0x4c2690
[
'data'
][
'data'
][
'order_id'
]}}});
_0x21afaa
=
_0x4c2690
[
'data'
][
'data'
][
'pay_type'
];
if
(
_0x21afaa
===
'customer'
){
wx
[
'showModal'
]({
'title'
:
'充值教程'
,
'content'
:
'即将跳转官方【客服会话】充值,给客服回复“1”获取充值链接'
,
'confirmText'
:
'客服充值'
,
'showCancel'
:
!
[],
'success'
:
function
(
_0x147b62
){
if
(
_0x147b62
[
'confirm'
]){
console
[
'log'
](
'res'
);
_0x1d63ed
[
'customMessage'
]();}}});}
if
(
_0x21afaa
===
'minipay'
){
wx
[
'navigateToMiniProgram'
]({
'appId'
:
_0x4c2690
[
'data'
][
'data'
][
'mini_pay'
][
'app_id'
],
'path'
:
_0x4c2690
[
'data'
][
'data'
][
'mini_pay'
][
'path'
]});}
if
(
_0x21afaa
===
'mpay'
){
_0x319738
=
_0x4c2690
[
'data'
][
'data'
][
'mpay'
],
_0x3574ea
=
_0x319738
[
'mode'
],
_0x2aea00
=
_0x319738
[
'env'
],
_0x34d976
=
_0x319738
[
'offer_id'
],
_0x5c02f
=
_0x319738
[
'currency_type'
],
_0x1a43bf
=
_0x319738
[
'platform'
],
_0x48eae7
=
_0x319738
[
'buy_quantity'
],
_0x139f8f
=
_0x319738
[
'zone_id'
];
wx
[
'requestMidasPayment'
]({
'mode'
:
_0x3574ea
,
'env'
:
_0x2aea00
,
'offerId'
:
_0x34d976
,
'currencyType'
:
_0x5c02f
,
'buyQuantity'
:
_0x48eae7
,
'platform'
:
_0x1a43bf
,
'zoneId'
:
_0x139f8f
,
'complete'
:
function
(
_0x1af4e8
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/mds_pay/callback'
,{
'order_id'
:
_0x4c2690
[
'data'
][
'data'
][
'order_id'
]
||
''
,
'status'
:
_0x1af4e8
[
'errCode'
]?
!
[]:
!!
[],
'code'
:
_0x1af4e8
[
'errCode'
],
'msg'
:
_0x1af4e8
[
'errMsg'
]})[
'then'
](
function
(
_0x4fa3e5
){
console
[
'log'
](
'/mini_sdk/mds_pay/pay:'
,
_0x4fa3e5
);});}});}}
else
{
_0x3e7353
(
_0x4c2690
);}
return
[
0x370ce
^
0x370cc
];}});});});};
_0x1df74e
[
'prototype'
][
'checkOrder'
]
=
function
(){
var
_0x1a4c44
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0xd41da
^
0xd41da
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x3cd661
,
_0x108519
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/order/getPayStatus'
,{
'order'
:
_0x1a4c44
[
'order'
]})[
'then'
](
function
(
_0x2e4aed
){
_0x3cd661
(
_0x2e4aed
);});});};
_0x1df74e
[
'checkLoginStatus'
]
=
function
(){
_0x1df74e
[
'default'
][
'checkLoginStatusTimer'
]
=
setTimeout
(
function
(){
_0x1df74e
[
'ajax'
](
'/mini_sdk/member/checkLoginStatus'
,{})[
'then'
](
function
(
_0x36b799
){
if
(
_0x36b799
[
'status_code'
]
===
(
0x63546
^
0x63547
)){
console
[
'log'
](
_0x36b799
);
wx
[
'showLoading'
]({
'title'
:
'请重新登录!'
,
'mask'
:
!!
[],
'complete'
:
function
(
_0x4473fe
){
console
[
'log'
](
'showLoading,complete'
,
_0x4473fe
);}});
wx
[
'closeSocket'
]();
wx
[
'onSocketOpen'
](
function
(
_0x53cc5a
){
wx
[
'closeSocket'
]();});
clearInterval
(
_0x1df74e
[
'default'
][
'checkLoginStatusTimer'
]);}
else
{
_0x1df74e
[
'checkLoginStatus'
]();}});},
0xea60
);};
_0x1df74e
[
'initShare'
]
=
function
(){
_0x1df74e
[
'ajax'
](
'/mini_sdk/share/getShareInfo'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
]})[
'then'
](
function
(
_0x4bb76b
){
wx
[
'onShareAppMessage'
](
function
(){
_0x1df74e
[
'log'
](
'系统转发:onShareAppMessage'
,{
'params'
:{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
]},
'result'
:
_0x4bb76b
});
_0x1df74e
[
'reportShare'
]({
'share_id'
:
_0x4bb76b
[
'data'
][
'data'
][
'share_id'
]});
return
{
'title'
:
_0x4bb76b
[
'data'
][
'data'
][
'title'
],
'imageUrl'
:
_0x4bb76b
[
'data'
][
'data'
][
'share_img'
],
'query'
:
'state='
+
_0x4bb76b
[
'data'
][
'data'
][
'state'
]};});
wx
[
'showShareMenu'
]({
'withShareTicket'
:
!!
[],
'menus'
:[
'shareAppMessage'
,
'shareTimeline'
]});});};
_0x1df74e
[
'prototype'
][
'getShareInfo'
]
=
function
(){
var
_0x5dd5d2
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0xc68cb
^
0xc68cb
]:{};
_0x1df74e
[
'ajax'
](
'/mini_sdk/share/getShareInfo'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'path'
:
_0x5dd5d2
[
'path'
]
||
''
})[
'then'
](
function
(
_0x1506e7
){
wx
[
'onShareAppMessage'
](
function
(){
_0x1df74e
[
'log'
](
'系统转发:onShareAppMessage'
,{
'params'
:{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'path'
:
_0x5dd5d2
[
'path'
]
||
''
},
'result'
:
_0x1506e7
});
_0x1df74e
[
'reportShare'
]({
'share_id'
:
_0x1506e7
[
'data'
][
'data'
][
'share_id'
]});
return
{
'title'
:
_0x1506e7
[
'data'
][
'data'
][
'title'
],
'imageUrl'
:
_0x1506e7
[
'data'
][
'data'
][
'share_img'
],
'query'
:
'state='
+
_0x1506e7
[
'data'
][
'data'
][
'state'
]};});
wx
[
'showShareMenu'
]({
'withShareTicket'
:
!!
[],
'menus'
:[
'shareAppMessage'
,
'shareTimeline'
]});
if
(
_0x5dd5d2
[
'shareAppMessage'
]
||
_0x5dd5d2
[
'shareAppMessage'
]
===
undefined
){
wx
[
'shareAppMessage'
]({
'title'
:
_0x1506e7
[
'data'
][
'data'
][
'title'
],
'imageUrl'
:
_0x1506e7
[
'data'
][
'data'
][
'share_img'
],
'query'
:
'state='
+
_0x1506e7
[
'data'
][
'data'
][
'state'
]});
_0x1df74e
[
'reportShare'
]({
'share_id'
:
_0x1506e7
[
'data'
][
'data'
][
'share_id'
]});
_0x1df74e
[
'log'
](
'主动转发:shareAppMessage'
,{
'share_id'
:
_0x1506e7
[
'data'
][
'data'
][
'share_id'
]});}});};
_0x1df74e
[
'reportShare'
]
=
function
(){
var
_0x60a46a
=
arguments
[
'length'
]
>
(
0x64cea
^
0x64cea
)
&&
void
0x0
!==
arguments
[
0xce5f5
^
0xce5f5
]?
arguments
[
0x0
]:{};
_0x1df74e
[
'ajax'
](
'/mini_sdk/share/report'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'share_id'
:
_0x60a46a
[
'share_id'
]
||
''
,
'ext'
:
_0x60a46a
[
'ext'
]
||
''
})[
'then'
](
function
(
_0xc8c8ce
){
console
[
'log'
](
_0xc8c8ce
);});};
_0x1df74e
[
'prototype'
][
'updateRole'
]
=
function
(){
var
_0x6f039e
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x554f1
^
0x554f1
]?
arguments
[
0xd3fa3
^
0xd3fa3
]:{};
return
new
Promise
(
function
(
_0x465956
,
_0x5ebd0c
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/role/report'
,{
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'os'
:
_0x1df74e
[
'default'
][
'os'
],
'device_number'
:
_0x1df74e
[
'default'
][
'device_number'
],
'device_brand'
:
_0x1df74e
[
'default'
][
'device_brand'
],
'role'
:
_0x6f039e
[
'role'
]
||
{}})[
'then'
](
function
(
_0x49957d
){
_0x465956
(
_0x49957d
);});});};
_0x1df74e
[
'prototype'
][
'checkMsg'
]
=
function
(){
var
_0x32f43a
=
arguments
[
'length'
]
>
(
0xe0fd2
^
0xe0fd2
)
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x326f0a
,
_0x4643ef
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/check/message'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'content'
:
_0x32f43a
[
'content'
]
||
''
})[
'then'
](
function
(
_0x2461ff
){
_0x326f0a
(
_0x2461ff
);});});};
_0x1df74e
[
'prototype'
][
'checkImg'
]
=
function
(){
var
_0x37c2e8
=
arguments
[
'length'
]
>
(
0x7be6a
^
0x7be6a
)
&&
void
(
0x8c070
^
0x8c070
)
!==
arguments
[
0xba767
^
0xba767
]?
arguments
[
0x94003
^
0x94003
]:{};
return
new
Promise
(
function
(
_0x26294c
,
_0x1b6fd0
){
wx
[
'uploadFile'
]({
'url'
:
_0x1df74e
[
'default'
][
'baseUrl'
]
+
'/mini_sdk/check/image'
,
'filePath'
:
_0x37c2e8
[
'filePath'
],
'name'
:
'image'
,
'header'
:{
'User-Token'
:
_0x1df74e
[
'default'
][
'userToken'
]},
'formData'
:{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'user_token'
:
_0x1df74e
[
'default'
][
'userToken'
]},
'success'
:
function
(
_0x35d38d
){
_0x26294c
(
_0x35d38d
);}});});};
_0x1df74e
[
'prototype'
][
'customMessage'
]
=
function
(){
_0x1df74e
[
'ajax'
](
'/mini_sdk/custom_message/config'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
]})[
'then'
](
function
(
_0x22a90f
){
if
(
_0x22a90f
[
'status_code'
]
===
(
0xdbefd
^
0xdbefc
)){
wx
[
'openCustomerServiceConversation'
]({
'sessionFrom'
:
_0x22a90f
[
'data'
][
'data'
][
'session_from'
],
'showMessageCard'
:
_0x22a90f
[
'data'
][
'data'
][
'show_message_card'
],
'sendMessageTitle'
:
_0x22a90f
[
'data'
][
'data'
][
'send_message_title'
],
'sendMessagePath'
:
_0x22a90f
[
'data'
][
'data'
][
'send_message_path'
],
'sendMessageImg'
:
_0x22a90f
[
'data'
][
'data'
][
'send_message_img'
],
'complete'
:
function
(
_0x619183
){
_0x1df74e
[
'log'
](
'客服会话:openCustomerServiceConversation'
,
_0x619183
);}});}});};
_0x1df74e
[
'prototype'
][
'sendCaptcha'
]
=
function
(){
var
_0x5a0382
=
arguments
[
'length'
]
>
(
0x3f0cb
^
0x3f0cb
)
&&
void
(
0x9835c
^
0x9835c
)
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x4fdf06
,
_0x2a08cf
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/captcha/send'
,{
'mobile'
:
_0x5a0382
[
'mobile'
]
||
''
})[
'then'
](
function
(
_0x412c3f
){
_0x4fdf06
(
_0x412c3f
);});});};
_0x1df74e
[
'prototype'
][
'bindMobile'
]
=
function
(){
var
_0x534f8d
=
arguments
[
'length'
]
>
(
0x96081
^
0x96081
)
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x46aa8b
,
_0x4579ca
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/member/bindMobile'
,{
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'mobile'
:
_0x534f8d
[
'mobile'
]
||
''
,
'code'
:
_0x534f8d
[
'code'
]
||
''
,
'key'
:
_0x534f8d
[
'key'
]
||
''
})[
'then'
](
function
(
_0x4aae57
){
_0x46aa8b
(
_0x4aae57
);});});};
_0x1df74e
[
'ajax'
]
=
function
(
_0x2fcd45
,
_0x3c4d8f
){
var
_0x1a55ea
=
{
'content-type'
:
'application/json'
};
if
(
_0x1df74e
[
'default'
][
'userToken'
]){
_0x1a55ea
[
'User-Token'
]
=
_0x1df74e
[
'default'
][
'userToken'
];}
var
_0x2181b4
=
_0x3c4d8f
[
'showLoading'
],
_0x1cb37b
=
_0x3c4d8f
[
'loadingParams'
],
_0x5bfeaa
=
_0x3c4d8f
[
'showToast'
],
_0x313628
=
_0x3c4d8f
[
'toastParams'
];
_0x2181b4
&&
wx
[
'showLoading'
](
_0x1cb37b
);
return
new
Promise
(
function
(
_0x2ccfdd
,
_0x3c465b
){
wx
[
'request'
]({
'method'
:
'POST'
,
'url'
:
_0x1df74e
[
'default'
][
'baseUrl'
]
+
_0x2fcd45
,
'data'
:
_0x3c4d8f
,
'header'
:
_0x1a55ea
,
'success'
:
function
(
_0x27552f
){
_0x2181b4
&&
wx
[
'hideLoading'
]();
if
(
_0x5bfeaa
){
_0x313628
[
'title'
]
=
_0x27552f
[
'data'
][
'msg'
];
wx
[
'showToast'
](
_0x313628
);}
_0x2ccfdd
(
_0x27552f
[
'data'
]);},
'fail'
:
function
(
_0x24c001
){
_0x2181b4
&&
wx
[
'hideLoading'
]();
if
(
_0x5bfeaa
){
_0x313628
[
'title'
]
=
_0x24c001
[
'errMsg'
];
wx
[
'showToast'
](
_0x313628
);}
_0x2ccfdd
(
_0x24c001
);}});});};
_0x1df74e
[
'getSystemOS'
]
=
function
(){
var
_0x449c17
=
wx
[
'getSystemInfoSync'
]()[
'system'
];
if
(
_0x449c17
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'android'
)
>-
0x1
)
return
'android'
;
if
(
_0x449c17
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'ios'
)
>-
0x1
)
return
'ios'
;
if
(
_0x449c17
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'windows'
)
>-
0x1
)
return
'windows'
;
if
(
_0x449c17
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'macos'
)
>-
(
0x41819
^
0x41818
))
return
'macos'
;
return
'other'
;};
_0x1df74e
[
'getSystemBrand'
]
=
function
(){
var
_0x21a9cf
=
wx
[
'getSystemInfoSync'
]()[
'brand'
];
return
_0x21a9cf
;};
_0x1df74e
[
'getSystemNumber'
]
=
function
(){
var
_0x473a15
=
wx
[
'getSystemInfoSync'
]()[
'model'
];
return
_0x473a15
;};
_0x1df74e
[
'midasPay'
]
=
function
(
_0x56cdc0
){
return
wx
[
'requestMidasPayment'
](
_0x56cdc0
);};
_0x1df74e
[
'getQueryVariable'
]
=
function
(
_0x1bca54
,
_0xcb789f
){
var
_0x4b70a4
=
_0x1bca54
;
var
_0x54d3ae
=
_0x4b70a4
[
'split'
](
'&'
);
for
(
var
_0x3f550a
=
0x0
;
_0x3f550a
<
_0x54d3ae
[
'length'
];
_0x3f550a
++
){
var
_0x2b8433
=
_0x54d3ae
[
_0x3f550a
][
'split'
](
'='
);
if
(
_0x2b8433
[
0xca2af
^
0xca2af
]
===
_0xcb789f
){
return
_0x2b8433
[
0x1
];}}
return
''
;};
_0x1df74e
[
'getState'
]
=
function
(
_0x2f4174
){
if
(
_0x2f4174
[
'state'
]){
return
_0x2f4174
[
'state'
];}
if
(
_0x2f4174
[
'scene'
]
&&
_0x2f4174
[
'scene'
][
'indexOf'
](
'state'
)
>-
(
0x1a8e8
^
0x1a8e9
)){
return
_0x1df74e
[
'getQueryVariable'
](
decodeURIComponent
(
_0x2f4174
[
'scene'
]),
'state'
);}
return
''
;};
_0x1df74e
[
'log'
]
=
function
(
_0x2e33fe
,
_0x867cbe
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/sdk_log/miniLog'
,{
'name'
:
_0x2e33fe
,
'value'
:
_0x867cbe
})[
'then'
](
function
(
_0x543ab2
){
console
[
'log'
](
'log:'
,
_0x543ab2
);});};
_0x1df74e
[
'default'
]
=
{
'checkLoginStatusTimer'
:
null
,
'appId'
:
''
,
'gameId'
:
''
,
'os'
:
_0x1df74e
[
'getSystemOS'
](),
'device_number'
:
_0x1df74e
[
'getSystemNumber'
](),
'device_brand'
:
_0x1df74e
[
'getSystemBrand'
](),
'memberId'
:
''
,
'roleId'
:
''
,
'playerId'
:
''
,
'userToken'
:
''
,
'baseUrl'
:
''
};
return
_0x1df74e
;}();
exports
[
'default'
]
=
zwsdk
;
\ No newline at end of file
'use strict'
;
var
__awaiter
=
this
&&
this
[
'__awaiter'
]
||
function
(
_0x472ec7
,
_0x5b2454
,
_0x276db8
,
_0x2bafe4
){
function
_0x21ff89
(
_0x39c75a
){
return
_0x39c75a
instanceof
_0x276db8
?
_0x39c75a
:
new
_0x276db8
(
function
(
_0x2fdbe6
){
_0x2fdbe6
(
_0x39c75a
);});}
return
new
(
_0x276db8
||
(
_0x276db8
=
Promise
))(
function
(
_0x5f1f25
,
_0x97cf77
){
function
_0x1fd72d
(
_0x165fed
){
try
{
_0x3261ad
(
_0x2bafe4
[
'next'
](
_0x165fed
));}
catch
(
_0x5dba1f
){
_0x97cf77
(
_0x5dba1f
);}}
function
_0x42806a
(
_0x5d27db
){
try
{
_0x3261ad
(
_0x2bafe4
[
'throw'
](
_0x5d27db
));}
catch
(
_0xea8bc2
){
_0x97cf77
(
_0xea8bc2
);}}
function
_0x3261ad
(
_0x240f36
){
_0x240f36
[
'done'
]?
_0x5f1f25
(
_0x240f36
[
'value'
]):
_0x21ff89
(
_0x240f36
[
'value'
])[
'then'
](
_0x1fd72d
,
_0x42806a
);}
_0x3261ad
((
_0x2bafe4
=
_0x2bafe4
[
'apply'
](
_0x472ec7
,
_0x5b2454
||
[]))[
'next'
]());});};
var
__generator
=
this
&&
this
[
'__generator'
]
||
function
(
_0x40e447
,
_0x514d91
){
var
_0x388720
=
{
'label'
:
0x0
,
'sent'
:
function
(){
if
(
_0x1499b3
[
0xb1ec4
^
0xb1ec4
]
&
(
0xf2ad3
^
0xf2ad2
))
throw
_0x1499b3
[
0x55bec
^
0x55bed
];
return
_0x1499b3
[
0x337ba
^
0x337bb
];},
'trys'
:[],
'ops'
:[]},
_0x3c2c5f
,
_0x290450
,
_0x1499b3
,
_0x6e1b28
;
return
_0x6e1b28
=
{
'next'
:
_0x55c02f
(
0x47a36
^
0x47a36
),
'throw'
:
_0x55c02f
(
0x81bc3
^
0x81bc2
),
'return'
:
_0x55c02f
(
0xb673a
^
0xb6738
)},
typeof
Symbol
===
'function'
&&
(
_0x6e1b28
[
Symbol
[
'iterator'
]]
=
function
(){
return
this
;}),
_0x6e1b28
;
function
_0x55c02f
(
_0x12e9d3
){
return
function
(
_0x5f408b
){
return
_0x4ceb7f
([
_0x12e9d3
,
_0x5f408b
]);};}
function
_0x4ceb7f
(
_0xa33ea5
){
if
(
_0x3c2c5f
)
throw
new
TypeError
(
'Generator
\
x20is
\
x20already
\
x20executing.'
);
while
(
_0x388720
)
try
{
if
(
_0x3c2c5f
=
0x4ab7b
^
0x4ab7a
,
_0x290450
&&
(
_0x1499b3
=
_0xa33ea5
[
0xa08d1
^
0xa08d1
]
&
(
0x82242
^
0x82240
)?
_0x290450
[
'return'
]:
_0xa33ea5
[
0x0
]?
_0x290450
[
'throw'
]
||
((
_0x1499b3
=
_0x290450
[
'return'
])
&&
_0x1499b3
[
'call'
](
_0x290450
),
0x3cdff
^
0x3cdff
):
_0x290450
[
'next'
])
&&!
(
_0x1499b3
=
_0x1499b3
[
'call'
](
_0x290450
,
_0xa33ea5
[
0x252ce
^
0x252cf
]))[
'done'
])
return
_0x1499b3
;
if
(
_0x290450
=
0x8c4c3
^
0x8c4c3
,
_0x1499b3
)
_0xa33ea5
=
[
_0xa33ea5
[
0x0
]
&
0x2
,
_0x1499b3
[
'value'
]];
switch
(
_0xa33ea5
[
0x0
]){
case
0xe3565
^
0xe3565
:
case
0x1
:
_0x1499b3
=
_0xa33ea5
;
break
;
case
0x4
:
_0x388720
[
'label'
]
++
;
return
{
'value'
:
_0xa33ea5
[
0x1
],
'done'
:
!
[]};
case
0x5
:
_0x388720
[
'label'
]
++
;
_0x290450
=
_0xa33ea5
[
0x1
];
_0xa33ea5
=
[
0x0
];
continue
;
case
0x4b0a0
^
0x4b0a7
:
_0xa33ea5
=
_0x388720
[
'ops'
][
'pop'
]();
_0x388720
[
'trys'
][
'pop'
]();
continue
;
default
:
if
(
!
(
_0x1499b3
=
_0x388720
[
'trys'
],
_0x1499b3
=
_0x1499b3
[
'length'
]
>
(
0xd7018
^
0xd7018
)
&&
_0x1499b3
[
_0x1499b3
[
'length'
]
-
(
0x8e236
^
0x8e237
)])
&&
(
_0xa33ea5
[
0x0
]
===
0x6
||
_0xa33ea5
[
0x0
]
===
0x2
)){
_0x388720
=
0xcafd2
^
0xcafd2
;
continue
;}
if
(
_0xa33ea5
[
0xa4466
^
0xa4466
]
===
(
0x9e2c8
^
0x9e2cb
)
&&
(
!
_0x1499b3
||
_0xa33ea5
[
0x1
]
>
_0x1499b3
[
0x0
]
&&
_0xa33ea5
[
0x4e8c8
^
0x4e8c9
]
<
_0x1499b3
[
0x3
])){
_0x388720
[
'label'
]
=
_0xa33ea5
[
0x1
];
break
;}
if
(
_0xa33ea5
[
0xdbb4b
^
0xdbb4b
]
===
(
0xa4a8f
^
0xa4a89
)
&&
_0x388720
[
'label'
]
<
_0x1499b3
[
0x7903a
^
0x7903b
]){
_0x388720
[
'label'
]
=
_0x1499b3
[
0x1
];
_0x1499b3
=
_0xa33ea5
;
break
;}
if
(
_0x1499b3
&&
_0x388720
[
'label'
]
<
_0x1499b3
[
0xbcef7
^
0xbcef5
]){
_0x388720
[
'label'
]
=
_0x1499b3
[
0x49862
^
0x49860
];
_0x388720
[
'ops'
][
'push'
](
_0xa33ea5
);
break
;}
if
(
_0x1499b3
[
0x2f3f3
^
0x2f3f1
])
_0x388720
[
'ops'
][
'pop'
]();
_0x388720
[
'trys'
][
'pop'
]();
continue
;}
_0xa33ea5
=
_0x514d91
[
'call'
](
_0x40e447
,
_0x388720
);}
catch
(
_0x2f5c93
){
_0xa33ea5
=
[
0x6
,
_0x2f5c93
];
_0x290450
=
0x0
;}
finally
{
_0x3c2c5f
=
_0x1499b3
=
0x0
;}
if
(
_0xa33ea5
[
0x0
]
&
0x5
)
throw
_0xa33ea5
[
0x1
];
return
{
'value'
:
_0xa33ea5
[
0x8c1cd
^
0x8c1cd
]?
_0xa33ea5
[
0xc4649
^
0xc4648
]:
void
(
0x505f6
^
0x505f6
),
'done'
:
!!
[]};}};
exports
[
'__esModule'
]
=!!
[];
var
zwsdk
=
function
(){
function
_0x1df74e
(){
this
[
'VERSION'
]
=
'1.3.1'
;
var
_0x420d99
=
arguments
[
'length'
]
>
(
0xcf9f7
^
0xcf9f7
)
&&
void
0x0
!==
arguments
[
0x76d90
^
0x76d90
]?
arguments
[
0x0
]:
null
;
var
_0x1890aa
=
wx
[
'getEnterOptionsSync'
]()[
'query'
];
if
(
_0x420d99
){
_0x1df74e
[
'default'
][
'appId'
]
=
_0x420d99
[
'app_id'
];
_0x1df74e
[
'default'
][
'gameId'
]
=
_0x420d99
[
'game_id'
];
_0x1df74e
[
'default'
][
'os'
]
=
_0x1df74e
[
'getSystemOS'
]();
_0x1df74e
[
'default'
][
'baseUrl'
]
=
_0x420d99
[
'dev'
]?
'https://zs.zwwlkj03.top/api'
:
'https://zyou.wozhangwan.com/api'
;
_0x1df74e
[
'default'
][
'query'
]
=
_0x1890aa
;
_0x1df74e
[
'default'
][
'state'
]
=
_0x1df74e
[
'getState'
](
_0x1890aa
);
var
_0xa8b3a8
=
wx
[
'getSystemInfoSync'
]()[
'SDKVersion'
];
console
[
'log'
](
'lib
\
x20version:'
+
_0xa8b3a8
);
if
(
_0x1df74e
[
'selfCompareVersion'
](
_0xa8b3a8
,
'1.4.0'
)
>=
0x0
){
wx
[
'setKeepScreenOn'
]({
'keepScreenOn'
:
!!
[]});
console
[
'log'
](
'设置不息屏'
);}
else
{}}}
_0x1df74e
[
'selfCompareVersion'
]
=
function
(
_0x3c82b8
,
_0x25e2ef
){
_0x3c82b8
=
_0x3c82b8
[
'split'
](
'.'
);
_0x25e2ef
=
_0x25e2ef
[
'split'
](
'.'
);
var
_0x4d5ac3
=
Math
[
'max'
](
_0x3c82b8
[
'length'
],
_0x25e2ef
[
'length'
]);
while
(
_0x3c82b8
[
'length'
]
<
_0x4d5ac3
){
_0x3c82b8
[
'push'
](
'0'
);}
while
(
_0x25e2ef
[
'length'
]
<
_0x4d5ac3
){
_0x25e2ef
[
'push'
](
'0'
);}
for
(
var
_0x20455f
=
0x1e91a
^
0x1e91a
;
_0x20455f
<
_0x4d5ac3
;
_0x20455f
++
){
var
_0xaf286a
=
parseInt
(
_0x3c82b8
[
_0x20455f
]);
var
_0x3d4671
=
parseInt
(
_0x25e2ef
[
_0x20455f
]);
if
(
_0xaf286a
>
_0x3d4671
){
return
0x1
;}
else
if
(
_0xaf286a
<
_0x3d4671
){
return
-
0x1
;}}
return
0x1fd3b
^
0x1fd3b
;};
_0x1df74e
[
'prototype'
][
'getGameConf'
]
=
function
(){
return
new
Promise
(
function
(
_0x54ce56
,
_0x2c8387
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/game/getConf'
,{
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'app_version'
:
'1.1'
})[
'then'
](
function
(
_0x453531
){
_0x54ce56
(
_0x453531
);});});};
_0x1df74e
[
'prototype'
][
'login'
]
=
function
(){
var
_0x743386
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x4dbd4c
,
_0x8ef443
){
wx
[
'login'
]({
'success'
:
function
(
_0x2cf337
){
var
_0xb9a320
=
_0x2cf337
[
'code'
];
_0x1df74e
[
'ajax'
](
'/mini_sdk/auth/login'
,{
'code'
:
_0xb9a320
,
'state'
:
_0x1df74e
[
'default'
][
'state'
],
'query'
:
_0x1df74e
[
'default'
][
'query'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'os'
:
_0x1df74e
[
'default'
][
'os'
],
'device_number'
:
_0x1df74e
[
'default'
][
'device_brand'
],
'device_brand'
:
_0x1df74e
[
'default'
][
'device_brand'
]})[
'then'
](
function
(
_0x340c4f
){
var
_0x4fe469
=
_0x340c4f
;
if
(
_0x340c4f
[
'status_code'
]
===
0x1
){
_0x1df74e
[
'default'
][
'userToken'
]
=
_0x340c4f
[
'data'
][
'data'
][
'user_token'
];
_0x1df74e
[
'default'
][
'memberId'
]
=
_0x340c4f
[
'data'
][
'data'
][
'member_id'
];
_0x1df74e
[
'initShare'
]();
_0x1df74e
[
'checkLoginStatus'
]();
_0x4dbd4c
(
_0x4fe469
);}
else
{
wx
[
'showModal'
]({
'title'
:
'异常'
,
'content'
:
_0x340c4f
[
'msg'
],
'confirmText'
:
'我知道了'
,
'showCancel'
:
!
[]});}});}});});};
_0x1df74e
[
'prototype'
][
'updateUserInfo'
]
=
function
(){
var
_0x55f071
=
arguments
[
'length'
]
>
(
0xb21bf
^
0xb21bf
)
&&
void
(
0x302a1
^
0x302a1
)
!==
arguments
[
0x0
]?
arguments
[
0xcd1c8
^
0xcd1c8
]:{};
return
new
Promise
(
function
(
_0x54607c
,
_0x286b3c
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/member/updateInfo'
,{
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'raw_data'
:
_0x55f071
[
'raw_data'
]
||
''
,
'signature'
:
_0x55f071
[
'signature'
]
||
''
,
'encrypted_data'
:
_0x55f071
[
'encrypted_data'
]
||
''
,
'iv'
:
_0x55f071
[
'iv'
]
||
''
,
'user_info'
:
_0x55f071
[
'user_info'
]
||
''
})[
'then'
](
function
(
_0x4161bf
){
_0x1df74e
[
'default'
][
'roleId'
]
=
_0x4161bf
[
'data'
][
'data'
][
'role_id'
]
||
''
;
_0x54607c
(
_0x4161bf
);});});};
_0x1df74e
[
'prototype'
][
'createOrder'
]
=
function
(){
var
_0x52023c
=
this
;
var
_0x4c32e9
=
arguments
[
'length'
]
>
(
0xce3cf
^
0xce3cf
)
&&
void
(
0x82d20
^
0x82d20
)
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x3e7353
,
_0x26a5b7
){
return
__awaiter
(
_0x52023c
,
void
0x0
,
void
0x0
,
function
(){
var
_0x4c2690
,
_0x21afaa
,
_0x319738
,
_0x3574ea
,
_0x2aea00
,
_0x34d976
,
_0x5c02f
,
_0x1a43bf
,
_0x48eae7
,
_0x139f8f
;
var
_0x1d63ed
=
this
;
return
__generator
(
this
,
function
(
_0x36dede
){
switch
(
_0x36dede
[
'label'
]){
case
0x0
:
return
[
0x4
,
_0x1df74e
[
'ajax'
](
'/mini_sdk/order/create'
,{
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'os'
:
_0x1df74e
[
'default'
][
'os'
],
'device_number'
:
_0x1df74e
[
'default'
][
'device_number'
],
'device_brand'
:
_0x1df74e
[
'default'
][
'device_brand'
],
'order'
:
_0x4c32e9
[
'order'
]
||
{},
'role'
:
_0x4c32e9
[
'role'
]
||
{},
'role_id'
:
_0x1df74e
[
'default'
][
'roleId'
]})];
case
0xf18aa
^
0xf18ab
:
_0x4c2690
=
_0x36dede
[
'sent'
]();
if
(
_0x4c2690
[
'status_code'
]
===
0x1
){
_0x3e7353
({
'status_code'
:
_0x4c2690
[
'status_code'
],
'msg'
:
_0x4c2690
[
'msg'
],
'data'
:{
'data'
:{
'order_id'
:
_0x4c2690
[
'data'
][
'data'
][
'order_id'
]}}});
_0x21afaa
=
_0x4c2690
[
'data'
][
'data'
][
'pay_type'
];
if
(
_0x21afaa
===
'customer'
){
wx
[
'showModal'
]({
'title'
:
'充值教程'
,
'content'
:
'即将跳转官方【客服会话】充值,给客服回复“1”获取充值链接'
,
'confirmText'
:
'客服充值'
,
'showCancel'
:
!
[],
'success'
:
function
(
_0x147b62
){
if
(
_0x147b62
[
'confirm'
]){
console
[
'log'
](
'res'
);
_0x1d63ed
[
'customMessage'
]();}}});}
if
(
_0x21afaa
===
'minipay'
){
wx
[
'navigateToMiniProgram'
]({
'appId'
:
_0x4c2690
[
'data'
][
'data'
][
'mini_pay'
][
'app_id'
],
'path'
:
_0x4c2690
[
'data'
][
'data'
][
'mini_pay'
][
'path'
]});}
if
(
_0x21afaa
===
'mpay'
){
_0x319738
=
_0x4c2690
[
'data'
][
'data'
][
'mpay'
],
_0x3574ea
=
_0x319738
[
'mode'
],
_0x2aea00
=
_0x319738
[
'env'
],
_0x34d976
=
_0x319738
[
'offer_id'
],
_0x5c02f
=
_0x319738
[
'currency_type'
],
_0x1a43bf
=
_0x319738
[
'platform'
],
_0x48eae7
=
_0x319738
[
'buy_quantity'
],
_0x139f8f
=
_0x319738
[
'zone_id'
];
wx
[
'requestMidasPayment'
]({
'mode'
:
_0x3574ea
,
'env'
:
_0x2aea00
,
'offerId'
:
_0x34d976
,
'currencyType'
:
_0x5c02f
,
'buyQuantity'
:
_0x48eae7
,
'platform'
:
_0x1a43bf
,
'zoneId'
:
_0x139f8f
,
'complete'
:
function
(
_0x1af4e8
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/mds_pay/callback'
,{
'order_id'
:
_0x4c2690
[
'data'
][
'data'
][
'order_id'
]
||
''
,
'status'
:
_0x1af4e8
[
'errCode'
]?
!
[]:
!!
[],
'code'
:
_0x1af4e8
[
'errCode'
],
'msg'
:
_0x1af4e8
[
'errMsg'
]})[
'then'
](
function
(
_0x4fa3e5
){
console
[
'log'
](
'/mini_sdk/mds_pay/pay:'
,
_0x4fa3e5
);});}});}}
else
{
_0x3e7353
(
_0x4c2690
);}
return
[
0x370ce
^
0x370cc
];}});});});};
_0x1df74e
[
'prototype'
][
'checkOrder'
]
=
function
(){
var
_0x1a4c44
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0xd41da
^
0xd41da
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x3cd661
,
_0x108519
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/order/getPayStatus'
,{
'order'
:
_0x1a4c44
[
'order'
]})[
'then'
](
function
(
_0x2e4aed
){
_0x3cd661
(
_0x2e4aed
);});});};
_0x1df74e
[
'checkLoginStatus'
]
=
function
(){
_0x1df74e
[
'default'
][
'checkLoginStatusTimer'
]
=
setTimeout
(
function
(){
_0x1df74e
[
'ajax'
](
'/mini_sdk/member/checkLoginStatus'
,{})[
'then'
](
function
(
_0x36b799
){
if
(
_0x36b799
[
'status_code'
]
!==
(
0x63546
^
0x63547
)){
console
[
'log'
](
_0x36b799
);
wx
[
'showLoading'
]({
'title'
:
'请重新登录!'
,
'mask'
:
!!
[],
'complete'
:
function
(
_0x4473fe
){
console
[
'log'
](
'showLoading,complete'
,
_0x4473fe
);}});
wx
[
'closeSocket'
]();
wx
[
'onSocketOpen'
](
function
(
_0x53cc5a
){
wx
[
'closeSocket'
]();});
clearInterval
(
_0x1df74e
[
'default'
][
'checkLoginStatusTimer'
]);}
else
{
_0x1df74e
[
'checkLoginStatus'
]();}});},
0xea60
);};
_0x1df74e
[
'initShare'
]
=
function
(){
_0x1df74e
[
'ajax'
](
'/mini_sdk/share/getShareInfo'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
]})[
'then'
](
function
(
_0x4bb76b
){
wx
[
'onShareAppMessage'
](
function
(){
_0x1df74e
[
'log'
](
'系统转发:onShareAppMessage'
,{
'params'
:{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
]},
'result'
:
_0x4bb76b
});
_0x1df74e
[
'reportShare'
]({
'share_id'
:
_0x4bb76b
[
'data'
][
'data'
][
'share_id'
]});
return
{
'title'
:
_0x4bb76b
[
'data'
][
'data'
][
'title'
],
'imageUrl'
:
_0x4bb76b
[
'data'
][
'data'
][
'share_img'
],
'query'
:
'state='
+
_0x4bb76b
[
'data'
][
'data'
][
'state'
]};});
wx
[
'showShareMenu'
]({
'withShareTicket'
:
!!
[],
'menus'
:[
'shareAppMessage'
,
'shareTimeline'
]});});};
_0x1df74e
[
'prototype'
][
'getShareInfo'
]
=
function
(){
var
_0x5dd5d2
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0xc68cb
^
0xc68cb
]:{};
_0x1df74e
[
'ajax'
](
'/mini_sdk/share/getShareInfo'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'path'
:
_0x5dd5d2
[
'path'
]
||
''
})[
'then'
](
function
(
_0x1506e7
){
wx
[
'onShareAppMessage'
](
function
(){
_0x1df74e
[
'log'
](
'系统转发:onShareAppMessage'
,{
'params'
:{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'path'
:
_0x5dd5d2
[
'path'
]
||
''
},
'result'
:
_0x1506e7
});
_0x1df74e
[
'reportShare'
]({
'share_id'
:
_0x1506e7
[
'data'
][
'data'
][
'share_id'
]});
return
{
'title'
:
_0x1506e7
[
'data'
][
'data'
][
'title'
],
'imageUrl'
:
_0x1506e7
[
'data'
][
'data'
][
'share_img'
],
'query'
:
'state='
+
_0x1506e7
[
'data'
][
'data'
][
'state'
]};});
wx
[
'showShareMenu'
]({
'withShareTicket'
:
!!
[],
'menus'
:[
'shareAppMessage'
,
'shareTimeline'
]});
if
(
_0x5dd5d2
[
'shareAppMessage'
]
||
_0x5dd5d2
[
'shareAppMessage'
]
===
undefined
){
wx
[
'shareAppMessage'
]({
'title'
:
_0x1506e7
[
'data'
][
'data'
][
'title'
],
'imageUrl'
:
_0x1506e7
[
'data'
][
'data'
][
'share_img'
],
'query'
:
'state='
+
_0x1506e7
[
'data'
][
'data'
][
'state'
]});
_0x1df74e
[
'reportShare'
]({
'share_id'
:
_0x1506e7
[
'data'
][
'data'
][
'share_id'
]});
_0x1df74e
[
'log'
](
'主动转发:shareAppMessage'
,{
'share_id'
:
_0x1506e7
[
'data'
][
'data'
][
'share_id'
]});}});};
_0x1df74e
[
'reportShare'
]
=
function
(){
var
_0x60a46a
=
arguments
[
'length'
]
>
(
0x64cea
^
0x64cea
)
&&
void
0x0
!==
arguments
[
0xce5f5
^
0xce5f5
]?
arguments
[
0x0
]:{};
_0x1df74e
[
'ajax'
](
'/mini_sdk/share/report'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'share_id'
:
_0x60a46a
[
'share_id'
]
||
''
,
'ext'
:
_0x60a46a
[
'ext'
]
||
''
})[
'then'
](
function
(
_0xc8c8ce
){
console
[
'log'
](
_0xc8c8ce
);});};
_0x1df74e
[
'prototype'
][
'updateRole'
]
=
function
(){
var
_0x6f039e
=
arguments
[
'length'
]
>
0x0
&&
void
0x0
!==
arguments
[
0x554f1
^
0x554f1
]?
arguments
[
0xd3fa3
^
0xd3fa3
]:{};
return
new
Promise
(
function
(
_0x465956
,
_0x5ebd0c
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/role/report'
,{
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'os'
:
_0x1df74e
[
'default'
][
'os'
],
'device_number'
:
_0x1df74e
[
'default'
][
'device_number'
],
'device_brand'
:
_0x1df74e
[
'default'
][
'device_brand'
],
'role'
:
_0x6f039e
[
'role'
]
||
{}})[
'then'
](
function
(
_0x49957d
){
_0x465956
(
_0x49957d
);});});};
_0x1df74e
[
'prototype'
][
'checkMsg'
]
=
function
(){
var
_0x32f43a
=
arguments
[
'length'
]
>
(
0xe0fd2
^
0xe0fd2
)
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x326f0a
,
_0x4643ef
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/check/message'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'content'
:
_0x32f43a
[
'content'
]
||
''
})[
'then'
](
function
(
_0x2461ff
){
_0x326f0a
(
_0x2461ff
);});});};
_0x1df74e
[
'prototype'
][
'checkImg'
]
=
function
(){
var
_0x37c2e8
=
arguments
[
'length'
]
>
(
0x7be6a
^
0x7be6a
)
&&
void
(
0x8c070
^
0x8c070
)
!==
arguments
[
0xba767
^
0xba767
]?
arguments
[
0x94003
^
0x94003
]:{};
return
new
Promise
(
function
(
_0x26294c
,
_0x1b6fd0
){
wx
[
'uploadFile'
]({
'url'
:
_0x1df74e
[
'default'
][
'baseUrl'
]
+
'/mini_sdk/check/image'
,
'filePath'
:
_0x37c2e8
[
'filePath'
],
'name'
:
'image'
,
'header'
:{
'User-Token'
:
_0x1df74e
[
'default'
][
'userToken'
]},
'formData'
:{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
],
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'app_id'
:
_0x1df74e
[
'default'
][
'appId'
],
'user_token'
:
_0x1df74e
[
'default'
][
'userToken'
]},
'success'
:
function
(
_0x35d38d
){
_0x26294c
(
_0x35d38d
);}});});};
_0x1df74e
[
'prototype'
][
'customMessage'
]
=
function
(){
_0x1df74e
[
'ajax'
](
'/mini_sdk/custom_message/config'
,{
'game_id'
:
_0x1df74e
[
'default'
][
'gameId'
]})[
'then'
](
function
(
_0x22a90f
){
if
(
_0x22a90f
[
'status_code'
]
===
(
0xdbefd
^
0xdbefc
)){
wx
[
'openCustomerServiceConversation'
]({
'sessionFrom'
:
_0x22a90f
[
'data'
][
'data'
][
'session_from'
],
'showMessageCard'
:
_0x22a90f
[
'data'
][
'data'
][
'show_message_card'
],
'sendMessageTitle'
:
_0x22a90f
[
'data'
][
'data'
][
'send_message_title'
],
'sendMessagePath'
:
_0x22a90f
[
'data'
][
'data'
][
'send_message_path'
],
'sendMessageImg'
:
_0x22a90f
[
'data'
][
'data'
][
'send_message_img'
],
'complete'
:
function
(
_0x619183
){
_0x1df74e
[
'log'
](
'客服会话:openCustomerServiceConversation'
,
_0x619183
);}});}});};
_0x1df74e
[
'prototype'
][
'sendCaptcha'
]
=
function
(){
var
_0x5a0382
=
arguments
[
'length'
]
>
(
0x3f0cb
^
0x3f0cb
)
&&
void
(
0x9835c
^
0x9835c
)
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x4fdf06
,
_0x2a08cf
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/captcha/send'
,{
'mobile'
:
_0x5a0382
[
'mobile'
]
||
''
})[
'then'
](
function
(
_0x412c3f
){
_0x4fdf06
(
_0x412c3f
);});});};
_0x1df74e
[
'prototype'
][
'bindMobile'
]
=
function
(){
var
_0x534f8d
=
arguments
[
'length'
]
>
(
0x96081
^
0x96081
)
&&
void
0x0
!==
arguments
[
0x0
]?
arguments
[
0x0
]:{};
return
new
Promise
(
function
(
_0x46aa8b
,
_0x4579ca
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/member/bindMobile'
,{
'member_id'
:
_0x1df74e
[
'default'
][
'memberId'
],
'mobile'
:
_0x534f8d
[
'mobile'
]
||
''
,
'code'
:
_0x534f8d
[
'code'
]
||
''
,
'key'
:
_0x534f8d
[
'key'
]
||
''
})[
'then'
](
function
(
_0x4aae57
){
_0x46aa8b
(
_0x4aae57
);});});};
_0x1df74e
[
'ajax'
]
=
function
(
_0x2fcd45
,
_0x3c4d8f
){
var
_0x1a55ea
=
{
'content-type'
:
'application/json'
};
if
(
_0x1df74e
[
'default'
][
'userToken'
]){
_0x1a55ea
[
'User-Token'
]
=
_0x1df74e
[
'default'
][
'userToken'
];}
var
_0x2181b4
=
_0x3c4d8f
[
'showLoading'
],
_0x1cb37b
=
_0x3c4d8f
[
'loadingParams'
],
_0x5bfeaa
=
_0x3c4d8f
[
'showToast'
],
_0x313628
=
_0x3c4d8f
[
'toastParams'
];
_0x2181b4
&&
wx
[
'showLoading'
](
_0x1cb37b
);
return
new
Promise
(
function
(
_0x2ccfdd
,
_0x3c465b
){
wx
[
'request'
]({
'method'
:
'POST'
,
'url'
:
_0x1df74e
[
'default'
][
'baseUrl'
]
+
_0x2fcd45
,
'data'
:
_0x3c4d8f
,
'header'
:
_0x1a55ea
,
'success'
:
function
(
_0x27552f
){
_0x2181b4
&&
wx
[
'hideLoading'
]();
if
(
_0x5bfeaa
){
_0x313628
[
'title'
]
=
_0x27552f
[
'data'
][
'msg'
];
wx
[
'showToast'
](
_0x313628
);}
_0x2ccfdd
(
_0x27552f
[
'data'
]);},
'fail'
:
function
(
_0x24c001
){
_0x2181b4
&&
wx
[
'hideLoading'
]();
if
(
_0x5bfeaa
){
_0x313628
[
'title'
]
=
_0x24c001
[
'errMsg'
];
wx
[
'showToast'
](
_0x313628
);}
_0x2ccfdd
(
_0x24c001
);}});});};
_0x1df74e
[
'getSystemOS'
]
=
function
(){
var
_0x449c17
=
wx
[
'getSystemInfoSync'
]()[
'system'
];
if
(
_0x449c17
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'android'
)
>-
0x1
)
return
'android'
;
if
(
_0x449c17
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'ios'
)
>-
0x1
)
return
'ios'
;
if
(
_0x449c17
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'windows'
)
>-
0x1
)
return
'windows'
;
if
(
_0x449c17
[
'toLocaleLowerCase'
]()[
'indexOf'
](
'macos'
)
>-
(
0x41819
^
0x41818
))
return
'macos'
;
return
'other'
;};
_0x1df74e
[
'getSystemBrand'
]
=
function
(){
var
_0x21a9cf
=
wx
[
'getSystemInfoSync'
]()[
'brand'
];
return
_0x21a9cf
;};
_0x1df74e
[
'getSystemNumber'
]
=
function
(){
var
_0x473a15
=
wx
[
'getSystemInfoSync'
]()[
'model'
];
return
_0x473a15
;};
_0x1df74e
[
'midasPay'
]
=
function
(
_0x56cdc0
){
return
wx
[
'requestMidasPayment'
](
_0x56cdc0
);};
_0x1df74e
[
'getQueryVariable'
]
=
function
(
_0x1bca54
,
_0xcb789f
){
var
_0x4b70a4
=
_0x1bca54
;
var
_0x54d3ae
=
_0x4b70a4
[
'split'
](
'&'
);
for
(
var
_0x3f550a
=
0x0
;
_0x3f550a
<
_0x54d3ae
[
'length'
];
_0x3f550a
++
){
var
_0x2b8433
=
_0x54d3ae
[
_0x3f550a
][
'split'
](
'='
);
if
(
_0x2b8433
[
0xca2af
^
0xca2af
]
===
_0xcb789f
){
return
_0x2b8433
[
0x1
];}}
return
''
;};
_0x1df74e
[
'getState'
]
=
function
(
_0x2f4174
){
if
(
_0x2f4174
[
'state'
]){
return
_0x2f4174
[
'state'
];}
if
(
_0x2f4174
[
'scene'
]
&&
_0x2f4174
[
'scene'
][
'indexOf'
](
'state'
)
>-
(
0x1a8e8
^
0x1a8e9
)){
return
_0x1df74e
[
'getQueryVariable'
](
decodeURIComponent
(
_0x2f4174
[
'scene'
]),
'state'
);}
return
''
;};
_0x1df74e
[
'log'
]
=
function
(
_0x2e33fe
,
_0x867cbe
){
_0x1df74e
[
'ajax'
](
'/mini_sdk/sdk_log/miniLog'
,{
'name'
:
_0x2e33fe
,
'value'
:
_0x867cbe
})[
'then'
](
function
(
_0x543ab2
){
console
[
'log'
](
'log:'
,
_0x543ab2
);});};
_0x1df74e
[
'default'
]
=
{
'checkLoginStatusTimer'
:
null
,
'appId'
:
''
,
'gameId'
:
''
,
'os'
:
_0x1df74e
[
'getSystemOS'
](),
'device_number'
:
_0x1df74e
[
'getSystemNumber'
](),
'device_brand'
:
_0x1df74e
[
'getSystemBrand'
](),
'memberId'
:
''
,
'roleId'
:
''
,
'playerId'
:
''
,
'userToken'
:
''
,
'baseUrl'
:
''
};
return
_0x1df74e
;}();
exports
[
'default'
]
=
zwsdk
;
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论