release: freeze demo v1.1.0 2026-10-19
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
This commit is contained in:
@@ -113,11 +113,12 @@ Page({
|
||||
try {
|
||||
// @ts-ignore - recommendationService 接口待 TS 化
|
||||
const result = await recommendationService.discover(this._buildParams());
|
||||
const items: RecommendationCandidate[] = (result?.items as RecommendationCandidate[]) || [];
|
||||
const items: RecommendationCandidate[] = ((result?.items || result?.records) as RecommendationCandidate[]) || [];
|
||||
const nextPage = (result?.page || 1) < (result?.totalPages || 0) ? String((result?.page || 1) + 1) : null;
|
||||
this.setData({
|
||||
users: first ? items : [...this.data.users, ...items],
|
||||
cursor: result?.nextCursor || null,
|
||||
hasMore: !!result?.nextCursor,
|
||||
cursor: result?.nextCursor || nextPage,
|
||||
hasMore: !!result?.nextCursor || !!nextPage,
|
||||
loading: false,
|
||||
});
|
||||
} catch (err: unknown) {
|
||||
@@ -133,13 +134,14 @@ Page({
|
||||
// @ts-ignore
|
||||
const result = await recommendationService.discover({
|
||||
...this._buildParams(),
|
||||
cursor: this.data.cursor,
|
||||
page: Number(this.data.cursor),
|
||||
});
|
||||
const items: RecommendationCandidate[] = (result?.items as RecommendationCandidate[]) || [];
|
||||
const items: RecommendationCandidate[] = ((result?.items || result?.records) as RecommendationCandidate[]) || [];
|
||||
const nextPage = (result?.page || 1) < (result?.totalPages || 0) ? String((result?.page || 1) + 1) : null;
|
||||
this.setData({
|
||||
users: [...this.data.users, ...items],
|
||||
cursor: result?.nextCursor || null,
|
||||
hasMore: !!result?.nextCursor,
|
||||
cursor: result?.nextCursor || nextPage,
|
||||
hasMore: !!result?.nextCursor || !!nextPage,
|
||||
});
|
||||
} catch (err: unknown) {
|
||||
appStore.toastError(err instanceof Error ? err.message : '加载失败');
|
||||
|
||||
Reference in New Issue
Block a user