Skip to content

Commit

Permalink
Fix comment related errors in 32-bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Sep 27, 2024
1 parent cd779cd commit 81c7a11
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions wiliwili/include/activity/player_activity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class BasePlayerActivity : public brls::Activity, public VideoDetail {
virtual void reportCurrentProgress(size_t progress, size_t duration) = 0;

// 获取当前视频的aid
virtual size_t getAid() = 0;
virtual uint64_t getAid() = 0;

// 获取投屏链接
virtual void requestCastUrl() = 0;
Expand Down Expand Up @@ -158,7 +158,7 @@ class PlayerActivity : public BasePlayerActivity {
void onRelatedVideoList(const bilibili::VideoDetailListResult& result) override;
void onRedirectToEp(const std::string& url) override;
void onCastPlayUrl(const bilibili::VideoUrlResult& result) override;
size_t getAid() override;
uint64_t getAid() override;

void onContentAvailable() override;

Expand Down Expand Up @@ -204,7 +204,7 @@ class PlayerSeasonActivity : public BasePlayerActivity {
// 正在播放的情况下切换到新的番剧
void playSeason(uint64_t season_id);

size_t getAid() override;
uint64_t getAid() override;

private:
unsigned int pgc_id;
Expand Down
4 changes: 2 additions & 2 deletions wiliwili/include/api/bilibili/result/video_detail_result.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ inline void from_json(const nlohmann::json& nlohmann_json_j, VideoCommentControl
class VideoCommentResult {
public:
size_t ctime;
int64_t rpid, parent, root;
size_t oid;
uint64_t rpid, parent, root;
uint64_t oid;
UserCommentResult member;
VideoCommentContent content;
std::vector<VideoCommentResult> replies;
Expand Down
2 changes: 1 addition & 1 deletion wiliwili/source/activity/player_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ void PlayerActivity::onIndexChangeToNext() {
}
}

size_t PlayerActivity::getAid() { return videoDetailResult.aid; }
uint64_t PlayerActivity::getAid() { return videoDetailResult.aid; }

PlayerActivity::~PlayerActivity() {
brls::Logger::debug("del PlayerActivity");
Expand Down
2 changes: 1 addition & 1 deletion wiliwili/source/activity/player_season_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ void PlayerSeasonActivity::playSeason(uint64_t season_id) {
this->requestData(season_id, PGC_ID_TYPE::SEASON_ID);
}

size_t PlayerSeasonActivity::getAid() { return episodeResult.aid; }
uint64_t PlayerSeasonActivity::getAid() { return episodeResult.aid; }

void PlayerSeasonActivity::requestCastUrl() { this->requestCastVideoUrl(episodeResult.id, episodeResult.cid, 2); }

Expand Down

0 comments on commit 81c7a11

Please sign in to comment.