The current repo belongs to Paused status, and some functions are restricted. For details, please refer to the description of repo status
169 Star 525 Fork 160

Kenvix / Tieba-Cloud-Sign
Paused

 / 详情

贴吧头像拉取失败

Backlog
Opened this issue  
2019-10-22 23:09

根据代码里的网址貌似并不能获取头像,不知道是不是因为接口变了;不过不影响签到正常使用:P。

Comments (1)

Dr·Pika created任务
Dr·Pika changed description
Expand operation logs

到根目录setting.php 修改成这样

改为这样就行

        if($i['post']['face_img'] == 1 && $i['post']['face_baiduid'] != ''){
            $c = new wcurl('https://tieba.baidu.com/home/main?un='.$i['post']['face_baiduid']);
            $data = $c->get();
            $c->close();
            $i['post']['face_url'] = str_replace('"', '', textMiddle($data,'"userinfo_head"><img src=','/></a>'));
            if(empty($i['post']['face_url'])) msg('获取贴吧头像失败,可能是网络问题,请重试');
        }

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
1410126 xiaopika 1578950818
PHP
1
https://git.oschina.net/kenvix/Tieba-Cloud-Sign.git
git@git.oschina.net:kenvix/Tieba-Cloud-Sign.git
kenvix
Tieba-Cloud-Sign
Tieba-Cloud-Sign

Search

181749 a2d7925e 1850385 181749 9f8568a7 1850385