node.js v6 preparations

This commit is contained in:
斟酌 鵬兄 2016-04-28 16:39:13 +08:00
parent 380f28029b
commit eba254e294
3 changed files with 6 additions and 2 deletions

@ -1 +1 @@
Subproject commit f3ba7a4a2df12fa280081264a5bb907480cddc93
Subproject commit cbf2246b523f647e6a44abe2f76fbace4c2dbb47

View File

@ -47,7 +47,7 @@ else
Dragonfly = new Dragonfly();
global.Dragonfly = Dragonfly;
GLOBAL.X_SERVER_CLUSTER = cluster;
global.X_SERVER_CLUSTER = cluster;
var AppDomain = cl.load( "botanss.net.AppDomain" );
var Httph = cl.load( "botanss.net.Http" );

View File

@ -73,6 +73,8 @@ class WNSAuth extends EventEmitter
uuid = Rand.uuid();
Dragonfly.Debug( "ChannelUri: " + ChannelUri );
_self.__send( ChannelUri, N, ( sender, e ) => {
if( typeof( e ) == "string" )
@ -87,6 +89,7 @@ class WNSAuth extends EventEmitter
return;
}
Dragonfly.Debug( e.statusCode + ": " + e.ResponseString );
handler( _self, e.statusCode + " Server Error: Unable to push message to channel" );
} );
};
@ -245,6 +248,7 @@ class WNSAuth extends EventEmitter
AuthToken = JResponse.access_token;
Dragonfly.Info( "Authorization Success" );
Dragonfly.Debug( AuthTokenName + ": " + AuthToken );
Model.Tokens
.update(
{ name: AuthTokenName }