Commit a2a32d47 by 周志凯

dup request

1 parent d68650f4
...@@ -1886,7 +1886,7 @@ ...@@ -1886,7 +1886,7 @@
} }
var socketParameter = { var socketParameter = {
scheduleType: scheduleType, scheduleType: scheduleType,
callback: this.fetchApi, callback: 'fetchApi',
callbackUrlPath: urlPath, callbackUrlPath: urlPath,
callbackParam: parameter callbackParam: parameter
} }
...@@ -1912,7 +1912,7 @@ ...@@ -1912,7 +1912,7 @@
self.socket.onopen = function(ev) { self.socket.onopen = function(ev) {
console.log('socket:onopen', ev) console.log('socket:onopen', ev)
self.startTiming = +new Date() self.startTiming = +new Date()
callback && callback(callbackUrlPath, callbackParam) callback && self[callback] && self[callback](callbackUrlPath, callbackParam)
} }
self.socket.onclose = function(ev) { self.socket.onclose = function(ev) {
console.log('socket:onclose', ev) console.log('socket:onclose', ev)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!