f
This commit is contained in:
@@ -269,6 +269,7 @@ var requestProcessors = map[string]func(*ApiRequestService, []byte) ([]byte, err
|
||||
"QYGL66SL": (*ApiRequestService).ProcessQYGL66SLRequest,
|
||||
"FLXG3A9B": (*ApiRequestService).ProcessFLXG3A9BRequest,
|
||||
"QYGL2S0W": (*ApiRequestService).ProcessQYGL2S0WRequest,
|
||||
"FLXGDEA9": (*ApiRequestService).ProcessFLXGDEA9Request,
|
||||
}
|
||||
|
||||
// PreprocessRequestApi 调用指定的请求处理函数
|
||||
@@ -1505,6 +1506,23 @@ func (a *ApiRequestService) ProcessQYGL2S0WRequest(params []byte) ([]byte, error
|
||||
return a.processVerifyPassThrough(params, "QYGL2S0W")
|
||||
}
|
||||
|
||||
// FLXGDEA9 本人不良
|
||||
func (a *ApiRequestService) ProcessFLXGDEA9Request(params []byte) ([]byte, error) {
|
||||
var m map[string]interface{}
|
||||
if err := json.Unmarshal(params, &m); err != nil {
|
||||
return nil, fmt.Errorf("api请求, FLXGDEA9, 解析参数失败: %w", err)
|
||||
}
|
||||
// 授权由后端默认传 1,前端与查询服务不再感知 authorized
|
||||
if v, ok := m["authorized"]; !ok || v == "" {
|
||||
m["authorized"] = "1"
|
||||
}
|
||||
resp, err := a.tianyuanapi.CallInterface("FLXGDEA9", m)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return convertTianyuanResponse(resp)
|
||||
}
|
||||
|
||||
// buildVehicleBody 从 params 中取 required 与 optional 键,仅非空才写入 body
|
||||
func buildVehicleBody(params []byte, required, optional []string) map[string]interface{} {
|
||||
body := make(map[string]interface{})
|
||||
|
||||
Reference in New Issue
Block a user