Merge branch 'onpoint-stock-update' into develop

This commit is contained in:
Sinh 2024-04-16 11:39:15 +07:00
commit 5466a2881c
1 changed files with 4 additions and 1 deletions

View File

@ -212,7 +212,10 @@ func (c *Client) requestHttpViaNats(data model.CommunicationRequestHttp, res int
} }
qs := "" qs := ""
for k, v := range data.Payload.Query { for k, v := range data.Payload.Query {
qs += "&" + k + "=" + v if qs != "" {
qs += "&"
}
qs += k + "=" + v
} }
now := time.Now().Unix() now := time.Now().Unix()
ts := strconv.FormatInt(now, 10) ts := strconv.FormatInt(now, 10)