temp
This commit is contained in:
@@ -38,6 +38,7 @@ func NewWestDexService(config config.WestConfig) *WestDexService {
|
||||
|
||||
// CallAPI 调用西部数据的 API
|
||||
func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}) (resp []byte, err error) {
|
||||
logx.Infof("西部请求传入%v", reqData)
|
||||
// 生成当前的13位时间戳
|
||||
timestamp := strconv.FormatInt(time.Now().UnixNano()/int64(time.Millisecond), 10)
|
||||
|
||||
@@ -90,6 +91,8 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}) (r
|
||||
logx.Errorf("【西部数据请求】JSON反序列化错误: %v", UnmarshalErr)
|
||||
return nil, UnmarshalErr
|
||||
}
|
||||
logx.Infof("西部请求响应%v", westDexResp)
|
||||
|
||||
logx.Infof("西部流水号: %s", westDexResp.ID)
|
||||
// 到这层是西部系统
|
||||
if westDexResp.Code != "00000" {
|
||||
|
||||
Reference in New Issue
Block a user