This commit is contained in:
Sinh 2024-04-16 11:24:28 +07:00
parent d0852f5d3a
commit 4f5b0f3f9a
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package onpoint
import (
"errors"
"fmt"
"log"
"net/http"
"strconv"
"strings"
@ -221,6 +222,8 @@ func (c *Client) requestHttpViaNats(data model.CommunicationRequestHttp, res int
ts,
}
s := strings.Join(arr, ".")
log.Println("DEBUG: onpoint. secret_message:", s)
log.Println("DEBUG: onpoint. secret_key:", c.secretKey)
// sign data
sign := hashSHA256AndUppercase(s, c.secretKey)
data.Payload.Header = map[string]string{