mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: intro: queryUserStat
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -135,7 +135,9 @@ class Api {
|
||||
static const String relatedList = '/x/web-interface/archive/related';
|
||||
|
||||
// 查询用户与自己关系_仅查关注
|
||||
static const String hasFollow = '/x/relation';
|
||||
static const String relation = '/x/relation';
|
||||
|
||||
static const String relations = '/x/relation/relations';
|
||||
|
||||
// 操作用户关系
|
||||
static const String relationMod = '/x/relation/modify';
|
||||
|
||||
@@ -346,7 +346,7 @@ class UserHttp {
|
||||
|
||||
static Future hasFollow(int mid) async {
|
||||
var res = await Request().get(
|
||||
Api.hasFollow,
|
||||
Api.relation,
|
||||
queryParameters: {
|
||||
'fid': mid,
|
||||
},
|
||||
|
||||
@@ -784,7 +784,7 @@ class VideoHttp {
|
||||
|
||||
// 查询是否关注up
|
||||
static Future hasFollow({required int mid}) async {
|
||||
var res = await Request().get(Api.hasFollow, queryParameters: {'fid': mid});
|
||||
var res = await Request().get(Api.relation, queryParameters: {'fid': mid});
|
||||
if (res.data['code'] == 0) {
|
||||
return {'status': true, 'data': res.data['data']};
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user