Merge pull request 'by Robin at 20240626' (#555) from feat-IRONFANS-148-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/555
This commit is contained in:
commit
497647dd99
|
@ -3298,7 +3298,10 @@ func (s *Service) ApiHvyogoQueryAgreeState(ctx *gin.Context, req *hvyogoproto.Ap
|
|||
}
|
||||
if workerId == nil {
|
||||
logger.Error("No worker_id entity was found")
|
||||
ec = errcode.ErrCodeWorkerIdNotExist
|
||||
data = &hvyogoproto.ApiQueryAgreeStateData{
|
||||
StatusCode: response.StatusCodeFail,
|
||||
StatusText: "用户尚未认证",
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -3338,7 +3341,10 @@ func (s *Service) ApiHvyogoWorkerFindDetail(ctx *gin.Context, req *hvyogoproto.A
|
|||
}
|
||||
if workerId == nil {
|
||||
logger.Error("No worker_id entity was found")
|
||||
ec = errcode.ErrCodeWorkerIdNotExist
|
||||
data = &hvyogoproto.ApiWorkerFindDetailData{
|
||||
StatusCode: response.StatusCodeFail,
|
||||
StatusText: "用户尚未认证",
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -3481,6 +3487,11 @@ func (s *Service) ApiHvyogoSingleDistribute(ctx *gin.Context, req *hvyogoproto.A
|
|||
logger.Error("_DefaultSingleDistributeHis OpUpdate fail, err: %v", err)
|
||||
}
|
||||
|
||||
if resp.StatusCode != response.StatusCodeSuccess {
|
||||
err = fmt.Errorf("single distribution fail")
|
||||
return resp, err
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
|
@ -3517,7 +3528,10 @@ func (s *Service) ApiHvyogoWorkerUpdate(ctx *gin.Context, req *hvyogoproto.ApiWo
|
|||
}
|
||||
if workerId == nil {
|
||||
logger.Error("No worker_id entity was found")
|
||||
ec = errcode.ErrCodeWorkerIdNotExist
|
||||
data = &hvyogoproto.ApiWorkerUpdateData{
|
||||
StatusCode: response.StatusCodeFail,
|
||||
StatusText: "用户尚未认证",
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue