From 015c1a5d8b803dbd867f31426dd1391cd51b0ee3 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 08 三月 2022 14:25:26 +0800
Subject: [PATCH] NewClient add Remote call options
---
sbusClient.go | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/sbusClient.go b/sbusClient.go
index 6d4471c..abfe693 100644
--- a/sbusClient.go
+++ b/sbusClient.go
@@ -1,15 +1,15 @@
package bhomedbapi
import (
- "basic.com/valib/bhshmq.git/api/bhsgo"
- "basic.com/valib/bhshmq.git/proto/source/bhome_msg"
+ "basic.com/valib/c_bhomebus.git/api/bhsgo"
+ "basic.com/valib/c_bhomebus.git/proto/source/bhome_msg"
"encoding/json"
"errors"
"strconv"
)
type SBusClient struct {
- nodes []bhome_msg.BHAddress
+ nodes []*bhome_msg.MsgQueryTopicReply_BHNodeAddress
}
type ProcInfo struct {
@@ -68,6 +68,7 @@
if contentType == CONTENT_TYPE_FORM || contentType == CONTENT_TYPE_MULFORM {
if body != nil {
req.PostFormMap = make(map[string][]string)
+ req.FormMap = map[string][]string{}
for k,v := range body {
switch v.(type) {
case string:
--
Gitblit v1.8.0