fix
This commit is contained in:
@@ -81,7 +81,7 @@ func ProcessQYGL23T7Request(ctx context.Context, params []byte, deps *processors
|
|||||||
return nil, fmt.Errorf("%s: %w", processors.ErrSystem, err)
|
return nil, fmt.Errorf("%s: %w", processors.ErrSystem, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
encryptedIDCard, err := deps.WestDexService.Encrypt(paramsDto.EntCode)
|
encryptedIDCard, err := deps.WestDexService.Encrypt(paramsDto.IDCard)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("%s: %w", processors.ErrSystem, err)
|
return nil, fmt.Errorf("%s: %w", processors.ErrSystem, err)
|
||||||
}
|
}
|
||||||
@@ -91,7 +91,7 @@ func ProcessQYGL23T7Request(ctx context.Context, params []byte, deps *processors
|
|||||||
"data": map[string]interface{}{
|
"data": map[string]interface{}{
|
||||||
"xM": encryptedName,
|
"xM": encryptedName,
|
||||||
"gMSFZHM": encryptedIDCard,
|
"gMSFZHM": encryptedIDCard,
|
||||||
"customerNumber": deps.WestDexService.GetConfig().Key,
|
"customerNumber": deps.WestDexService.GetConfig().SecretId,
|
||||||
"timeStamp": fmt.Sprintf("%d", time.Now().UnixNano()/int64(time.Millisecond)),
|
"timeStamp": fmt.Sprintf("%d", time.Now().UnixNano()/int64(time.Millisecond)),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ func ProcessYYSYBE08Request(ctx context.Context, params []byte, deps *processors
|
|||||||
"data": map[string]interface{}{
|
"data": map[string]interface{}{
|
||||||
"xM": encryptedName,
|
"xM": encryptedName,
|
||||||
"gMSFZHM": encryptedIDCard,
|
"gMSFZHM": encryptedIDCard,
|
||||||
"customerNumber": deps.WestDexService.GetConfig().Key,
|
"customerNumber": deps.WestDexService.GetConfig().SecretId,
|
||||||
"timeStamp": fmt.Sprintf("%d", time.Now().UnixNano()/int64(time.Millisecond)),
|
"timeStamp": fmt.Sprintf("%d", time.Now().UnixNano()/int64(time.Millisecond)),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user