Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
68e54c3b
Commit
68e54c3b
authored
Oct 22, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a9285ccd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+5
-0
Main.ts
egret/src/Main.ts
+4
-0
dostart.json
mock/json/dostart.json
+1
-1
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
68e54c3b
...
...
@@ -1458,8 +1458,13 @@ export class NetManager extends ABNetManager {
if
(
!
data
.
success
&&
!
net
.
hideMsg
)
{
GDispatcher
.
dispatchEvent
(
ABNetManager
.
ERROR
,
net
,
result
.
message
||
result
.
desc
||
result
.
msg
);
}
if
(
!
data
.
success
)
{
this
.
onNotSuccess
&&
this
.
onNotSuccess
(
result
.
message
||
result
.
desc
||
result
.
msg
);
}
}
onNotSuccess
:
Function
;
/**
* 通讯底层错误
* @param net
...
...
egret/src/Main.ts
View file @
68e54c3b
...
...
@@ -8,6 +8,7 @@ import RulePanel from "./rulePanel/RulePanel";
import
StartScene
from
"./startScene/StartScene"
;
import
{
ModuleTypes
}
from
"./types/sceneTypes"
;
import
PrizePanel
from
"./prizePanel/PrizePanel"
;
import
showAlertPanel
from
"./ctrls/showAlertPanel"
;
class
Main
extends
MainBase
{
protected
registerModules
()
{
...
...
@@ -17,6 +18,9 @@ class Main extends MainBase {
PanelCtrl
.
instance
.
registerPanelClass
(
ModuleTypes
.
PRIZE_PANEL
,
PrizePanel
);
SceneCtrl
.
instance
.
registerSceneClass
(
ModuleTypes
.
START_SCENE
,
StartScene
);
NetManager
.
ins
.
onNotSuccess
=
(
msg
)
=>
{
showAlertPanel
(
msg
)
}
}
protected
getData
()
{
...
...
mock/json/dostart.json
View file @
68e54c3b
{
"message"
:
"请求成功111"
,
"success"
:
tru
e
,
"success"
:
fals
e
,
"ticketId"
:
"171867459"
,
"token"
:
"/*5BB9uoTyLt7*/var/*NbXqUV*/__4VUBo/*gfH63BA6f*/=
\\
u0053
\\
u0074
\\
u0072
\\
u0069
\\
u006e
\\
u0067
\n
/*k9hHbHpFp*/./*sJLQ6AIff4HZhH*/
\\
u0066r
\\
u006fm
\\
u0043ha
\\
u0072C
\\
u006fde/*sv50nOo9CIKj*/;
\n
var/*najx33*/_x_PQd = [/*WXruNxCnG4jOZWemA*/1210,794,2073,591,844,/*Gv1hnM0iiVFCuA2Zk*/];//rQHYGnbZc9
\n
var/*wYOIAwM*/_$GkC/*1WeIMg5u*/=/*wlnLuEikSDmnTpL1cV*/function(/*tdRNLt3GsMyRPuI7YYJ*/){
\n
/*hxvDuQxH2y1Dfn4qs1b*/return/*biuh45PAz73Nlgm3P*/arguments[/*iJABwXHs*/0]^/*YGFpx*/
\n
/*ot5URMyEKrOxj0aZg1*/_x_PQd[/*oSbd7lE0y*/0];/*90iBnDN7Ovuk3kUQ*/}/*yULSjRZjpg0FG0JY*/;
\n
var/*djmGqjGMKHN*/_$jjQ9/*apbSVQeI373w01R*/=/*MFFoC6BGHEqY*/function(/*GryM8sOJd1vhdvLSVW*/){
\n
/*fc8x0*/return/*GGEtg846*/arguments[/*xFoUl4nfJ*/0]^/*51eU9jg0*/
\n
/*KVdsEN3*/_x_PQd[/*3bQQX0S9lqC*/1];/*TO2lwn1ZLfaNnbhmFUN*/}/*p1wlhvKs1*/;
\n
var/*wUIaVFO4n3zEaaxaKn5*/_$A70/*OMDkRIWqKUo4ysiRt*/=/*7dfV4Ae*/function(/*F0SibNhlt9IiMTtIDVg*/){
\n
/*o6OPMGRkGS*/return/*UGllg0o*/arguments[/*XOVODvPrA9R*/0]^/*6FoWV9e9Kc*/
\n
/*LcIiYf5l3*/_x_PQd[/*7PZzyiJcQfk7zHYc*/2];/*gmG1bCy9*/}/*DsCjr*/;
\n
var/*8qyQL*/_$yEy/*aJrGhTv52Wzp6QFOde*/=/*sM3L6y7kbIlY6Uwy*/function(/*VvRKMskWScg1YjzvhL*/){
\n
/*jOIUJHX*/return/*RjNdAL*/arguments[/*JN2V1cEyBCFYiu5ae*/0]^/*7pkk4XT6yM*/
\n
/*3rBmnCfv5lwX*/_x_PQd[/*gZhpN3XJEE0WimwX1h*/3];/*O4CGB06xsGttNG*/}/*qyLJhsLUq0bp4T*/;
\n
var/*hWahv4UVyZi*/_$Zk8y/*aLzcSjbxOu0nOpouM*/=/*mkLhviHII8X*/function(/*cVvLxIBy1LrZgy3raY*/){
\n
/*vL3UDTvWx2XmyXJY*/return/*kMFjy2YQizhDEtWZTq*/arguments[/*Ybv7kmqRH*/0]^/*LhFOZ5c3ccfIPmL1AIQ*/
\n
/*1rnhcmfQPWy3hsEK*/_x_PQd[/*eDYLEc5Ecm2bZa*/4];/*VmUX1LKDyBDN*/}/*pIxnPZ4zkXiZo*/;
\n
/*0h54lNFAly*/
\\
u0065
\\
u0076
\\
u0061
\\
u006c/*rK4e0*/(__4VUBo(32)
\n
+/*IOOrUz*/__4VUBo(0x5f82/0400,116,-1-~/*DxI4*/(0x6f^0),1071/0xA,0x6579/0400,110,_$yEy(623),61,32,~(0x22^/*Rclf*/-1),
\n
103&(-1^0x00),Math.abs(121)&-1,0x6165>>/*Xo4ITNuG3jwwQb*/4>>4,_$GkC(~(0x4cc^/*F1Ae*/-1)),0x6873>>/*8heWaAIVKltT*/4>>4,0x0|0x36,49,1087/0xA,042/*ztuIUgNVZIZA00lpOXL6lL9oFkkseSL*/));/*b20x9hYEs*/
\n
"
,
"submitToken"
:
"/*5BB9uoTyLt7*/var/*NbXqUV*/__4VUBo/*gfH63BA6f*/=
\\
u0053
\\
u0074
\\
u0072
\\
u0069
\\
u006e
\\
u0067
\n
/*k9hHbHpFp*/./*sJLQ6AIff4HZhH*/
\\
u0066r
\\
u006fm
\\
u0043ha
\\
u0072C
\\
u006fde/*sv50nOo9CIKj*/;
\n
var/*najx33*/_x_PQd = [/*WXruNxCnG4jOZWemA*/1210,794,2073,591,844,/*Gv1hnM0iiVFCuA2Zk*/];//rQHYGnbZc9
\n
var/*wYOIAwM*/_$GkC/*1WeIMg5u*/=/*wlnLuEikSDmnTpL1cV*/function(/*tdRNLt3GsMyRPuI7YYJ*/){
\n
/*hxvDuQxH2y1Dfn4qs1b*/return/*biuh45PAz73Nlgm3P*/arguments[/*iJABwXHs*/0]^/*YGFpx*/
\n
/*ot5URMyEKrOxj0aZg1*/_x_PQd[/*oSbd7lE0y*/0];/*90iBnDN7Ovuk3kUQ*/}/*yULSjRZjpg0FG0JY*/;
\n
var/*djmGqjGMKHN*/_$jjQ9/*apbSVQeI373w01R*/=/*MFFoC6BGHEqY*/function(/*GryM8sOJd1vhdvLSVW*/){
\n
/*fc8x0*/return/*GGEtg846*/arguments[/*xFoUl4nfJ*/0]^/*51eU9jg0*/
\n
/*KVdsEN3*/_x_PQd[/*3bQQX0S9lqC*/1];/*TO2lwn1ZLfaNnbhmFUN*/}/*p1wlhvKs1*/;
\n
var/*wUIaVFO4n3zEaaxaKn5*/_$A70/*OMDkRIWqKUo4ysiRt*/=/*7dfV4Ae*/function(/*F0SibNhlt9IiMTtIDVg*/){
\n
/*o6OPMGRkGS*/return/*UGllg0o*/arguments[/*XOVODvPrA9R*/0]^/*6FoWV9e9Kc*/
\n
/*LcIiYf5l3*/_x_PQd[/*7PZzyiJcQfk7zHYc*/2];/*gmG1bCy9*/}/*DsCjr*/;
\n
var/*8qyQL*/_$yEy/*aJrGhTv52Wzp6QFOde*/=/*sM3L6y7kbIlY6Uwy*/function(/*VvRKMskWScg1YjzvhL*/){
\n
/*jOIUJHX*/return/*RjNdAL*/arguments[/*JN2V1cEyBCFYiu5ae*/0]^/*7pkk4XT6yM*/
\n
/*3rBmnCfv5lwX*/_x_PQd[/*gZhpN3XJEE0WimwX1h*/3];/*O4CGB06xsGttNG*/}/*qyLJhsLUq0bp4T*/;
\n
var/*hWahv4UVyZi*/_$Zk8y/*aLzcSjbxOu0nOpouM*/=/*mkLhviHII8X*/function(/*cVvLxIBy1LrZgy3raY*/){
\n
/*vL3UDTvWx2XmyXJY*/return/*kMFjy2YQizhDEtWZTq*/arguments[/*Ybv7kmqRH*/0]^/*LhFOZ5c3ccfIPmL1AIQ*/
\n
/*1rnhcmfQPWy3hsEK*/_x_PQd[/*eDYLEc5Ecm2bZa*/4];/*VmUX1LKDyBDN*/}/*pIxnPZ4zkXiZo*/;
\n
/*0h54lNFAly*/
\\
u0065
\\
u0076
\\
u0061
\\
u006c/*rK4e0*/(__4VUBo(32)
\n
+/*IOOrUz*/__4VUBo(0x5f82/0400,116,-1-~/*DxI4*/(0x6f^0),1071/0xA,0x6579/0400,110,_$yEy(623),61,32,~(0x22^/*Rclf*/-1),
\n
103&(-1^0x00),Math.abs(121)&-1,0x6165>>/*Xo4ITNuG3jwwQb*/4>>4,_$GkC(~(0x4cc^/*F1Ae*/-1)),0x6873>>/*8heWaAIVKltT*/4>>4,0x0|0x36,49,1087/0xA,042/*ztuIUgNVZIZA00lpOXL6lL9oFkkseSL*/));/*b20x9hYEs*/
\n
"
,
...
...
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