|
|
@ -41,9 +41,7 @@ func ImportFriend(c *gin.Context) {
|
|
|
|
OwnerUid: params.OwnerUid,
|
|
|
|
OwnerUid: params.OwnerUid,
|
|
|
|
Token: c.Request.Header.Get("token"),
|
|
|
|
Token: c.Request.Header.Get("token"),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
log.ErrorByKv("ImportFriend Test start", params.OperationID)
|
|
|
|
|
|
|
|
RpcResp, err := client.ImportFriend(context.Background(), req)
|
|
|
|
RpcResp, err := client.ImportFriend(context.Background(), req)
|
|
|
|
//log.ErrorByKv("ImportFriend Test end", params.OperationID, "resp", RpcResp, "err", err.Error())
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
log.Error(req.Token, req.OperationID, "err=%s,ImportFriend failed", err)
|
|
|
|
log.Error(req.Token, req.OperationID, "err=%s,ImportFriend failed", err)
|
|
|
|
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "cImportFriend failed" + err.Error()})
|
|
|
|
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "cImportFriend failed" + err.Error()})
|
|
|
|