소스 검색

fix: method name

lijian 2 년 전
부모
커밋
4de46f6caa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/apiprovider/actions.go

+ 1 - 1
services/apiprovider/actions.go

@@ -162,7 +162,7 @@ func DeviceUpgrade(device *models.Device, urlparams martini.Params, req *http.Re
 	args.Md5 = param.MD5
 	args.Version = param.Version
 	var reply rpcs.ReplyEmptyResult
-	err = server.RPCCallByName(context.Background(), rpcs.MQTTAccessName, "Access.SetStatus", args, &reply)
+	err = server.RPCCallByName(context.Background(), rpcs.MQTTAccessName, "Access.Upgrade", args, &reply)
 	if err != nil {
 		server.Log.Errorf("设备OTA升级失败:", err)
 		r.JSON(http.StatusOK, renderError(ErrSystemFault, err))