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