This commit is contained in:
richboo111
2024-01-10 10:30:49 +08:00
parent dbd175a36c
commit 27c2d801c8

View File

@@ -1,6 +1,7 @@
package sfps
import (
"encoding/json"
"errors"
"fmt"
"net/http"
@@ -693,10 +694,15 @@ func changeToRaw(urlIndex string, msg interface{}) (retVal map[string]interface{
retVal["url_index"] = temp.UrlIndex
retVal["status_desc"] = temp.StatusDesc
}
//签名
b, _ := json.Marshal(retVal)
sign := api.SfPsAPI.SignParam(b)
retVal["sign"] = sign
return retVal
}
// GetVendorSource 辅助函数
// 辅助函数
//获取订单来源标识符
func GetVendorSource(vendorID int) (source string) {
switch vendorID {