File tree Expand file tree Collapse file tree
src/Ray.BiliBiliTool.DomainService Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ public async Task UnfollowBatched(BiliCookie ck)
181181 tagId
182182 ) ;
183183 var modifyReq = new ModifyRelationRequest ( info . Mid , ck . BiliJct ) ;
184- var re = await relationApi . ModifyRelation ( modifyReq , modifyReferer ) ;
184+ var re = await relationApi . ModifyRelation ( modifyReq , ck . ToString ( ) , modifyReferer ) ;
185185
186186 if ( re . Code == 0 )
187187 {
@@ -206,11 +206,12 @@ public async Task UnfollowBatched(BiliCookie ck)
206206 /// 获取分组(标签)
207207 /// </summary>
208208 /// <param name="groupName"></param>
209+ /// <param name="ck"></param>
209210 /// <returns></returns>
210- private async Task < TagDto > GetTag ( string groupName , BiliCookie cookie )
211+ private async Task < TagDto > GetTag ( string groupName , BiliCookie ck )
211212 {
212- string getTagsReferer = string . Format ( RelationApiConstant . GetTagsReferer , cookie . UserId ) ;
213- List < TagDto > tagList = ( await relationApi . GetTags ( getTagsReferer ) ) . Data ;
213+ string getTagsReferer = string . Format ( RelationApiConstant . GetTagsReferer , ck . UserId ) ;
214+ List < TagDto > tagList = ( await relationApi . GetTags ( ck . ToString ( ) , getTagsReferer ) ) . Data ;
214215 TagDto tag = tagList . FirstOrDefault ( x => x . Name == groupName ) ;
215216 return tag ;
216217 }
You can’t perform that action at this time.
0 commit comments