ソースを参照

优化修改注释

niujiuru 10 ヶ月 前
親
コミット
18aa0b3956
1 ファイル変更、1 行追加、1 行削除
  1. 1 1
      reporter/reporter.go

+ 1 - 1
reporter/reporter.go

@@ -487,7 +487,7 @@ func (r *MQTTReporter) execOneCmd(msg mqtt.Message) {
 	case "reboot":
 	case "reboot":
 		err := exec.Command("reboot").Run()
 		err := exec.Command("reboot").Run()
 		resp = buildResp(req, "Success", err)
 		resp = buildResp(req, "Success", err)
-	// Call-?:调用了目前不支持的方法, 返回未找到
+	// Call-?:无效, 客户端调用了目前不支持的方法
 	default:
 	default:
 		resp = jsonrpc2.BuildError(req, jsonrpc2.ErrMethodNotFound, "")
 		resp = jsonrpc2.BuildError(req, jsonrpc2.ErrMethodNotFound, "")
 	}
 	}