@@ -42,17 +42,6 @@ export const ToutiaoLoginConfig = {
4242 } ) ,
4343}
4444
45- // 博客园
46- export const CnblogsLoginConfig = {
47- api : 'https://www.cnblogs.com/api/users/current' ,
48- method : 'GET' ,
49- checkLogin : ( response ) => response ?. UserId ,
50- getUserInfo : ( response ) => ( {
51- username : response ?. DisplayName ,
52- avatar : response ?. Avatar ,
53- } ) ,
54- }
55-
5645// 百家号
5746export const BaijiahaoLoginConfig = {
5847 api : 'https://baijiahao.baidu.com/builder/app/appinfo' ,
@@ -64,17 +53,6 @@ export const BaijiahaoLoginConfig = {
6453 } ) ,
6554}
6655
67- // 网易号
68- export const WangyihaoLoginConfig = {
69- api : 'https://mp.163.com/api/account/info' ,
70- method : 'GET' ,
71- checkLogin : ( response ) => response ?. code === 1000 && response ?. data ?. nickname ,
72- getUserInfo : ( response ) => ( {
73- username : response ?. data ?. nickname ,
74- avatar : response ?. data ?. headImg ,
75- } ) ,
76- }
77-
7856// 抖音
7957export const DouyinLoginConfig = {
8058 api : 'https://creator.douyin.com/web/api/media/user/info/' ,
@@ -93,6 +71,5 @@ export const LOGIN_CHECK_CONFIG = {
9371 toutiao : ToutiaoLoginConfig ,
9472
9573 baijiahao : BaijiahaoLoginConfig ,
96- wangyihao : WangyihaoLoginConfig ,
9774 douyin : DouyinLoginConfig ,
9875}
0 commit comments