فهرست منبع

优化修改注释

niujiuru 10 ماه پیش
والد
کامیت
ab5baf7b0c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      reporter/reporter.go

+ 1 - 1
reporter/reporter.go

@@ -477,7 +477,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-?:调用了目前不支持的方法, 返回未找到
 	default:
 	default:
 		resp = jsonrpc2.BuildError(req, jsonrpc2.ErrMethodNotFound, "")
 		resp = jsonrpc2.BuildError(req, jsonrpc2.ErrMethodNotFound, "")
 	}
 	}