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