Merge pull request #208 from omg-xtao/fix_ApiOcr

[fix] Class ApiOcr not found
This commit is contained in:
lkeme 2023-03-25 11:17:09 +08:00 committed by GitHub
commit d0506d5d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@
namespace Bhp\User; namespace Bhp\User;
use Bhp\Api\Vip\ApiOcr; use Bhp\Api\Vip\ApiUser;
use Bhp\Log\Log; use Bhp\Log\Log;
use Bhp\Util\Common\Common; use Bhp\Util\Common\Common;
use Bhp\Util\DesignPattern\SingleTon; 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 public static function isVip(string $title = '用户信息', array $scope = [1, 2], string $info = '大会员'): bool
{ {
$response = ApiOcr::userInfo(); $response = ApiUser::userInfo();
// //
if ($response['code']) { if ($response['code']) {
Log::warning("$title: 获取大会员信息失败 {$response['code']} -> {$response['message']}"); Log::warning("$title: 获取大会员信息失败 {$response['code']} -> {$response['message']}");