处理ios获取服务状态错误代码
This commit is contained in:
parent
d88b4a509d
commit
13586d2514
@ -170,7 +170,8 @@
|
|||||||
|
|
||||||
@objc(isRunning:)
|
@objc(isRunning:)
|
||||||
func isRunning(_ command: CDVInvokedUrlCommand) {
|
func isRunning(_ command: CDVInvokedUrlCommand) {
|
||||||
let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK,messageAsInt: self.webServer.isRunning ? 1 : 0)
|
let messageAsInt = self.webServer.isRunning ? 1 : 0;
|
||||||
|
let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: messageAsInt)
|
||||||
self.commandDelegate!.send(pluginResult, callbackId: command.callbackId)
|
self.commandDelegate!.send(pluginResult, callbackId: command.callbackId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user