Skip to content

Commit

Permalink
Update JsEnv.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jxhczhl authored Nov 10, 2021
1 parent d4e2d42 commit ddeaeab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions JsEnv.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ Hlclient.prototype.handlerRequest = function (requestJson) {
if (!result['action']) {
this.sendResult('','need request param {action}');
return
}
action=result["action"]
}
action=result["action"]
var theHandler = this.handlers[action];
if (!theHandler ||theHandler==undefined){
this.sendResult(action,'action not found');
return
}
try {
if (!result["param"]){
theHandler(function (response) {
Expand Down

0 comments on commit ddeaeab

Please sign in to comment.