mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 01:20:08 +08:00
Merge pull request #208 from omg-xtao/fix_ApiOcr
[fix] Class ApiOcr not found
This commit is contained in:
commit
d0506d5d5c
@ -17,7 +17,7 @@
|
||||
|
||||
namespace Bhp\User;
|
||||
|
||||
use Bhp\Api\Vip\ApiOcr;
|
||||
use Bhp\Api\Vip\ApiUser;
|
||||
use Bhp\Log\Log;
|
||||
use Bhp\Util\Common\Common;
|
||||
use Bhp\Util\DesignPattern\SingleTon;
|
||||
@ -61,7 +61,7 @@ class User extends SingleTon
|
||||
*/
|
||||
public static function isVip(string $title = '用户信息', array $scope = [1, 2], string $info = '大会员'): bool
|
||||
{
|
||||
$response = ApiOcr::userInfo();
|
||||
$response = ApiUser::userInfo();
|
||||
//
|
||||
if ($response['code']) {
|
||||
Log::warning("$title: 获取大会员信息失败 {$response['code']} -> {$response['message']}");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user