Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
27f0409b
Commit
27f0409b
authored
Aug 23, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1d6c8a26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
onNotSuccess.ts
egret/libs/new_wx/onNotSuccess.ts
+5
-2
No files found.
egret/libs/new_wx/onNotSuccess.ts
View file @
27f0409b
...
@@ -4,16 +4,19 @@ import { showToast } from "./ctrls/toastCtrl";
...
@@ -4,16 +4,19 @@ import { showToast } from "./ctrls/toastCtrl";
export
default
(
data
?:
Data
,
netname
?:
NetName
)
=>
{
export
default
(
data
?:
Data
,
netname
?:
NetName
)
=>
{
if
(
!
data
)
{
if
(
!
data
)
{
return
showToast
(
'
网络异常
\
n请隔一段时间再尝试
'
);
return
showToast
(
'
活动太火爆了
\
n请稍后再来
'
);
}
}
if
(
data
.
code
==
'999999999'
)
//系统级别错误 系统异常,\n请刷新后重试。
if
(
data
.
code
==
'999999999'
)
//系统级别错误 系统异常,\n请刷新后重试。
showToast
(
'网络异常
\
n请隔一段时间再尝试'
);
showToast
(
'网络异常
\
n请隔一段时间再尝试'
);
else
if
(
data
.
code
==
'2002007013'
)
else
if
(
data
.
code
==
'2002007013'
)
showToast
(
'元宝不足哦,快去玩游戏赢元宝吧'
);
showToast
(
'元宝不足哦,快去玩游戏赢元宝吧'
);
else
if
(
data
.
code
==
'E1002070002'
)
{
showToast
(
'游戏分数提交失败~
\
n如有疑问,请联系客服'
)
}
else
if
(
data
.
code
==
'600005'
)
else
if
(
data
.
code
==
'600005'
)
showToast
(
'体力值已达上限,不可购买'
)
showToast
(
'体力值已达上限,不可购买'
)
else
//其他异常
else
//其他异常
showToast
(
'
网络异常
\
n请隔一段时间再尝试
'
)
showToast
(
'
活动太火爆了
\
n请稍后再来
'
)
}
}
// export default (data: Data) => {
// export default (data: Data) => {
// if (data.code == 'E999999999')
// if (data.code == 'E999999999')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment