Refactor code

This commit is contained in:
wenxu12345
2021-12-29 16:44:24 +08:00
parent cf59f57ab8
commit 95a771c2fb
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func ImportFriend(c *gin.Context) {
return
}
req := &rpc.ImportFriendReq{}
utils.CopyStructFields(req, &params)
utils.CopyStructFields(req, &params.ParamsCommFriend)
var ok bool
ok, req.OpUserID = token_verify.GetUserIDFromToken(c.Request.Header.Get("token"))
if !ok {