Skip to content

【Bug】【青龙】充电对象的环境变量不生效 #1005

@Neutralization

Description

@Neutralization

版本

BiliTool版本号:3.8.0

青龙版本号:2.19.2

确认

  • 是的,我已搜索并确认,没有其他相同的议题
  • 是的,我确认,已尝试升级bilitool到最新版,但未解决
  • 是的,我确认,已尝试升级青龙到最新版,但未解决

服务器架构

  • x64
  • arm64
  • arm
  • 其他(请在下面补充)

服务器系统

  • Windows
  • macOS
  • Linux
    • Debian
    • Ubuntu
    • Windows
    • Alpine
    • Centos
    • 其他(请在下面补充)

青龙容器类型

  • Docker
  • Podman
  • 其他(请在下面补充)

青龙镜像

  • whyour/qinglong:latest(Alpine)
  • whyour/qinglong:debian(Debian)

选择的BiliTool运行模式

  • dotnet
  • bilitool

如果是青龙拉库相关bug,请贴出拉库方式截图

  • 是,截图如下
Image

如果是缺失文件相关bug,请贴出容器内文件路径信息

  • 是,信息如下

查看方式参考文档:提示文件不存在或路径异常怎么排查

BiliTool仓库文件路径:/ql/data/repo/RayWangQvQ_BiliBiliToolPro

脚本文件路径:<粘贴路径>

<这里贴截图>

问题描述

环境变量配置了充电UP的ID,但脚本执行还是用的作者ID

Image Image

日志信息

## 开始执行... 2025-08-12 11:05:54

bilitool: 青龙repo目录: /ql/data/repo
bilitool: bili仓库目录: /ql/data/repo/RayWangQvQ_BiliBiliToolPro
bilitool: 当前系统发行版本:alpine.3.22.0
bilitool: 当前系统:linux-musl
bilitool: 当前架构:x64
bilitool: 当前选择的运行方式:bilitool
bilitool: tag.txt为空,未安装过
bilitool: 开始安装环境
bilitool: 开始安装bilitool
bilitool: 最新版本:3.8.0
bilitool: 下载地址:https://github.com/RayWangQvQ/BiliBiliToolPro/releases/download/3.8.0/bilibili-tool-pro-v3.8.0-linux-musl-x64.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0 31.9M    0 81911    0     0  27840      0  0:20:02  0:00:02  0:20:00 87139
  9 31.9M    9 3239k    0     0   822k      0  0:00:39  0:00:03  0:00:36 1672k
 49 31.9M   49 15.9M    0     0  3300k      0  0:00:09  0:00:04  0:00:05 5549k
 90 31.9M   90 28.8M    0     0  4975k      0  0:00:06  0:00:05  0:00:01 7505k
100 31.9M  100 31.9M    0     0  5267k      0  0:00:06  0:00:06 --:--:-- 7779k
Archive:  bilitool-3.8.0.zip
  inflating: ./Ray.BiliBiliTool.Console  
  inflating: ./appsettings.Development.json  
  inflating: ./appsettings.Production.json  
  inflating: ./appsettings.json      
  inflating: ./libe_sqlite3.so       
  ____    _   _____           _  
 | __ ) _| |_|_   _|__   ___ | | 
 |  _ \(_) (_) | |/ _ \ / _ \| | 
 | |_) | | | | | | (_) | (_) | | 
 |____/|_|_|_| |_|\___/ \___/|_| 

[11:06:02 INF] BiliBiliToolPro 开始运行...

[11:06:02 INF] 【目标任务】Charge
[11:06:03 INF] 【账号个数】1个

[11:06:03 INF] ######### 账号 0 #########

[11:06:03 INF] =====开始 免费B币券充电任务 =====

[11:06:03 INF] ---开始 Set Cookie ---
[11:06:03 INF] Cookie完整,不需要Set Cookie
[11:06:03 INF] -------------结束-------------

[11:06:03 INF] ---开始 登录 ---
[11:06:13 INF] 【用户名】Timxxxxxass
[11:06:13 INF] 【会员类型】年度大会员
[11:06:13 INF] 【会员状态】正常
[11:06:13 INF] 【硬币余额】4392
[11:06:13 INF] 【当前经验】60598
[11:06:13 INF] 您已是 Lv6 的大佬了,无敌是多么寂寞~
[11:06:13 INF] -----结束-----

[11:06:13 INF] ---开始 B币券充电 ---
[11:06:13 INF] 【今天】12号
[11:06:13 INF] 【B币券】5
[11:06:28 ERR] [REQUEST]
POST /x/ugcpay/web/v2/trade/elec/pay/quick HTTP/1.1
Referer: https://www.bilibili.com/
Origin: https://www.bilibili.com
Host: api.bilibili.com
Accept: application/json, text/plain, */*, application/json; q=0.1, application/xml; q=0.1
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
Connection: keep-alive
Cookie: ***
Content-Type: application/x-www-form-urlencoded

bp_num=5&is_bp_remains_prior=true&up_mid=341688380&otype=up&oid=341688380&csrf=c2ad137ecb44e93df60f78838b7ba6d8

[RESPONSE]
HTTP/1.1 200 OK
Date: Tue, 12 Aug 2025 03:06:28 GMT
Connection: keep-alive
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET,POST,PUT,DELETE
Access-Control-Allow-Origin: https://www.bilibili.com
Bili-Status-Code: 88214
Bili-Trace-Id: 57971be811689aaf
Vary: Origin
X-Bili-Trace-Id: 5f8522dceda5a58657971be811689aaf
X-Ticket-Status: 1
Access-Control-Allow-Headers: origin,no-cache,x-requested-with,if-modified-since,pragma,last-modified,cache-control,expires,content-type,access-control-allow-credentials,dnt,x-customheader,keep-alive,user-agent,x-cache-webcdn,x-bilibili-key-real-ip,x-backend-bili-real-ip,x-risk-header,x-event-traceid
Cross-Origin-Resource-Policy: cross-origin
Access-Control-Expose-Headers: x-bili-gaia-vvoucher,x-bili-trace-id,x-bili-gaia-param
Cache-Control: no-cache
X-Cache-Webcdn: BYPASS from blzone01
Content-Type: application/json; charset=utf-8
Content-Length: 55
Expires: Tue, 12 Aug 2025 03:06:27 GMT

{"code":88214,"message":"up主未开通充电","ttl":1}

[EXCEPTION]
System.Text.Json.JsonException: JSON deserialization for type 'Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.BiliApiResponse`1[Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.ChargeV2Response]' was missing required properties, including the following: data
   at System.Text.Json.ThrowHelper.ThrowJsonException_JsonRequiredPropertyMissing(JsonTypeInfo parent, BitArray requiredPropertiesSet)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.ContinueDeserialize(ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack)
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.DeserializeAsync(Stream utf8Json, CancellationToken cancellationToken)
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.DeserializeAsObjectAsync(Stream utf8Json, CancellationToken cancellationToken)
   at System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsyncCore(HttpContent content, Type type, JsonSerializerOptions options, CancellationToken cancellationToken)
   at WebApiClientCore.ApiResponseContextExtensions.JsonDeserializeAsync(ApiResponseContext context, Type objType)
   at WebApiClientCore.Attributes.JsonReturnAttribute.SetResultAsync(ApiResponseContext context)
   at WebApiClientCore.Attributes.ApiReturnAttribute.OnResponseAsync(ApiResponseContext context)
   at WebApiClientCore.Implementations.ApiRequestExecutor.HandleResponseAsync(ApiResponseContext context)

[ELAPSED] 00:00:15.1143788
[11:06:28 ERR] B币券充电失败,继续其他任务。失败信息:JSON deserialization for type 'Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.BiliApiResponse`1[Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.ChargeV2Response]' was missing required properties, including the following: data

[11:06:28 INF] --------结束--------

[11:06:28 INF] ==============结束==============

[11:06:28 INF] 
========================
[11:06:28 INF] v3.8.0.0 开源 by https://github.com/RayWangQvQ/BiliBiliToolPro

[11:06:28 INF] 运行环境:Production
[11:06:28 INF] 应用目录:/ql/data/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Console/

[11:06:28 INF] 运行结束
task_after

## 执行结束... 2025-08-12 11:06:28  耗时 34 秒     

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions