From 380f28029b30e2f02c91438964fdaf5edf194517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Sat, 20 Feb 2016 03:36:05 +0800 Subject: [PATCH 1/2] wrong address --- notify-term/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify-term/app.js b/notify-term/app.js index 4423f29..8982d83 100644 --- a/notify-term/app.js +++ b/notify-term/app.js @@ -20,7 +20,7 @@ class App extends Base // Everything here is plain text this.HTTP.response.headers[ "Content-Type" ] = "text/plain; charset=utf-8"; - this.result = "Hello there! This is a notify-term server.\nFor more information please head to https://github.com/tgckpg/notify-term"; + this.result = "Hello there! This is a notify-term server.\nFor more information please head to https://github.com/tgckpg/term-notify"; if( !this.HTTP.request.isPost ) { From eba254e2943181633d857fa2028f83b66e1a5e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Thu, 28 Apr 2016 16:39:13 +0800 Subject: [PATCH 2/2] node.js v6 preparations --- botanss | 2 +- index.js | 2 +- notify-term/WNSAuth.js | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/botanss b/botanss index f3ba7a4..cbf2246 160000 --- a/botanss +++ b/botanss @@ -1 +1 @@ -Subproject commit f3ba7a4a2df12fa280081264a5bb907480cddc93 +Subproject commit cbf2246b523f647e6a44abe2f76fbace4c2dbb47 diff --git a/index.js b/index.js index 83466d6..aa4d705 100755 --- a/index.js +++ b/index.js @@ -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" ); diff --git a/notify-term/WNSAuth.js b/notify-term/WNSAuth.js index f7c70df..bbaba80 100644 --- a/notify-term/WNSAuth.js +++ b/notify-term/WNSAuth.js @@ -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 }