Refactor code

This commit is contained in:
wenxu12345
2021-12-29 16:39:52 +08:00
parent 8cd38693dd
commit cf59f57ab8
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ func ImportFriend(c *gin.Context) {
RpcResp, err := client.ImportFriend(context.Background(), req)
if err != nil {
log.NewError(req.OperationID, "ImportFriend failed ", err.Error(), req.String())
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "cImportFriend failed "})
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "ImportFriend failed "})
return
}
resp := api.ImportFriendResp{CommResp: api.CommResp{ErrCode: RpcResp.CommonResp.ErrCode, ErrMsg: RpcResp.CommonResp.ErrMsg}}