case "start":
if (scope.runstatus !== "stop") return;
AppCall.get ("afm-main", "start", {id: scope.appID, mode: scope.runmode}, function(response) {
- if (response.status !== 200 || response.data.jtype !== "AJB_reply") {
+ if (response.status !== 200 || response.data.jtype !== "afb-reply") {
notifyError ("start", response);
return;
}
if (scope.runstatus !== "start") return;
AppCall.get ("afm-main", "terminate", {runid: scope.runID}, function(response) {
- if (response.status !== 200 || response.data.jtype !== "AJB_reply") {
+ if (response.status !== 200 || response.data.jtype !== "afb-reply") {
notifyError ("stop", response);
return;
}
case "info":
AppCall.get ("afm-main", "detail", {id: scope.appID}, function(response) {
- if (response.status !== 200 || response.data.jtype !== "AJB_reply") {
+ if (response.status !== 200 || response.data.jtype !== "afb-reply") {
notifyError ("detail", response);
return;
}
case "uninstall":
if (scope.runstatus !== "stop") return;
AppCall.get ("afm-main", "uninstall", {id: scope.appID}, function(response) {
- if (response.status !== 200 || response.data.jtype !== "AJB_reply") {
+ if (response.status !== 200 || response.data.jtype !== "afb-reply") {
notifyError ("uninstall", response);
return;
}