Skip to content

Let's use AI to Earn!

pages

bulaienaofutuojiesenzhang8b6f4a285f83
diff --git a/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx b/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx
index be1a6289..30a16767 100644
--- a/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx
+++ b/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx
@@ -335,7 +335,7 @@ const AccountSidebar = memo(
name: groupName.trim(),
});
await getAccountGroup();
- message.success(t("createSpace.success"));
+ // message.success(t("createSpace.success"));
createGroupCancel();
} catch (error) {
message.error(t("createSpace.failed"));
diff --git a/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.ts b/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.ts
index 02e9fa80..8b20abd0 100644
--- a/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.ts
+++ b/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.ts
@@ -51,43 +51,56 @@ export const useCalendarTiming = create(
// 获取发布记录数据
async getPubRecord() {
- methods.setListLoading(true);
- const date = getDays(get().calendarRef?.getApi().getDate() || new Date());
- const startOfMonth = date.startOf("month");
- const endOfMonth = date.endOf("month");
+ try {
+ methods.setListLoading(true);
+ const date = getDays(get().calendarRef?.getApi().getDate() || new Date());
+ const startOfMonth = date.startOf("month");
+ const endOfMonth = date.endOf("month");
- const res = await getPublishList({
- time: [startOfMonth.utc().format(), endOfMonth.utc().format()],
- accountType: useAccountStore.getState().accountActive?.type,
- });
- methods.setListLoading(false);
- if (!res) return;
- const recordMap = new Map<string, PublishRecordItem[]>();
- // 将数据分拣到对应天中
- res?.data.map((v) => {
- const days = getDays(v.publishTime);
- const timeStr = days.format("YYYY-MM-DD");
- let list = recordMap.get(timeStr);
- if (!list) {
- list = [];
- recordMap.set(timeStr, list);
- }
- list.push(v);
- recordMap.set(timeStr, list);
- });
- // 对每一天的记录按照 publishTime 时间从早到晚排序
- recordMap.forEach((v, k) => {
- let list = recordMap.get(k);
- if (list) {
- list = list.sort(
- (a, b) =>
- new Date(a.publishTime).getTime() -
- new Date(b.publishTime).getTime(),
- );
- recordMap.set(k, list);
+ const res = await getPublishList({
+ time: [startOfMonth.utc().format(), endOfMonth.utc().format()],
+ accountType: useAccountStore.getState().accountActive?.type,
+ });
+ methods.setListLoading(false);
+
+ // 检查响应数据是否有效
+ if (!res || !res.data || !Array.isArray(res.data)) {
+ console.warn('获取发布记录数据失败或数据格式不正确:', res);
+ methods.setRecordMap(new Map());
+ return;
}
- });
- methods.setRecordMap(recordMap);
+
+ const recordMap = new Map<string, PublishRecordItem[]>();
+ // 将数据分拣到对应天中
+ res.data.map((v) => {
+ const days = getDays(v.publishTime);
+ const timeStr = days.format("YYYY-MM-DD");
+ let list = recordMap.get(timeStr);
+ if (!list) {
+ list = [];
+ recordMap.set(timeStr, list);
+ }
+ list.push(v);
+ recordMap.set(timeStr, list);
+ });
+ // 对每一天的记录按照 publishTime 时间从早到晚排序
+ recordMap.forEach((v, k) => {
+ let list = recordMap.get(k);
+ if (list) {
+ list = list.sort(
+ (a, b) =>
+ new Date(a.publishTime).getTime() -
+ new Date(b.publishTime).getTime(),
+ );
+ recordMap.set(k, list);
+ }
+ });
+ methods.setRecordMap(recordMap);
+ } catch (error) {
+ console.error('获取发布记录数据时发生错误:', error);
+ methods.setListLoading(false);
+ methods.setRecordMap(new Map());
+ }
},
clear() {
diff --git a/src/app/[lng]/profile/page.tsx b/src/app/[lng]/profile/page.tsx
index 41c14344..a9dec358 100644
--- a/src/app/[lng]/profile/page.tsx
+++ b/src/app/[lng]/profile/page.tsx
@@ -786,7 +786,7 @@ export default function ProfilePage() {
// 个人信息内容
const renderProfileContent = () => (
- <>
+ <div style={{ }}>
{/* 顶部头部卡片 */}
<div className={styles.headerCard}>
{/* VIP 提示(已是VIP时显示) */}
@@ -881,14 +881,14 @@ export default function ProfilePage() {
{/* 底部申请注销按钮 */}
- <div style={{ textAlign: 'center', paddingTop: 24, display:'flex', flexDirection:'column', justifyContent:'center', alignItems:"flex-start" }}>
+ {/* <div style={{ textAlign: 'center', paddingTop: 24, display:'flex', flexDirection:'column', justifyContent:'center', alignItems:"flex-start" }}>
<div style={{ display:'flex', flexDirection:'column', justifyContent:'space-between', alignItems:"flex-start", marginBottom: 8 }}>
<div style={{ fontSize: 16, fontWeight: 800, color: '#54687B' }}>{t('deleteAccount.title' as any)}</div>
<div>{t('deleteAccount.desc' as any)}</div>
</div>
<Button danger onClick={handleOpenCancelModal}>{t('deleteAccount.apply' as any)}</Button>
- </div>
- </>
+ </div> */}
+ </div>
);
// 订单管理内容
diff --git a/src/app/i18n/locales/en/vip.json b/src/app/i18n/locales/en/vip.json
index 224f1554..7de51e23 100644
--- a/src/app/i18n/locales/en/vip.json
+++ b/src/app/i18n/locales/en/vip.json
@@ -64,7 +64,7 @@
"points": "60 pts/month",
"features": {
"dailyPoints": "Daily credits",
- "maxPoints": "Max 60 pts",
+ "maxPoints": "Max 60",
"videos": "60 videos/month",
"images": "120 images/month",
"storage": "500M storage"
@@ -78,7 +78,7 @@
"period": "/year",
"originalPrice": "$300/year",
"button": "$144/year Save 50%",
- "points": "8,400 pts",
+ "points": "760 credits/month",
"description": "16,800 images & 8,400 videos",
"features": {
"dailyPoints": "Daily credits",
@@ -96,7 +96,7 @@
"period": "/year",
"originalPrice": "$25/month",
"button": "$19/month Save 25%",
- "points": "8,400 pts",
+ "points": "760 credits/month",
"description": "16,800 images & 8,400 videos"
},
"once": {
@@ -104,7 +104,7 @@
"price": "25",
"period": "/month",
"button": "$25/month",
- "points": "700 pts",
+ "points": "760 credits/month",
"description": "1,400 images & 700 videos",
"storage": "5G storage"
}
diff --git a/src/app/i18n/locales/zh-CN/vip.json b/src/app/i18n/locales/zh-CN/vip.json
index 5d0751e0..42ae395d 100644
--- a/src/app/i18n/locales/zh-CN/vip.json
+++ b/src/app/i18n/locales/zh-CN/vip.json
@@ -78,7 +78,7 @@
"period": "每年",
"originalPrice": "$300/年",
"button": "$144/年 省50%",
- "points": "8,400积分",
+ "points": "760 积分/月",
"description": "最多生成16,800张图和8,400个视频",
"features": {
"dailyPoints": "每天赠送积分",
@@ -96,7 +96,7 @@
"period": "每年",
"originalPrice": "$25/月",
"button": "$19/月 省25%",
- "points": "8,400积分",
+ "points": "760 积分/月",
"description": "最多生成16,800张图和8,400个视频"
},
"once": {
@@ -104,7 +104,7 @@
"price": "25",
"period": "每月",
"button": "$25/月",
- "points": "700积分",
+ "points": "760 积分/月",
"description": "最多生成1400张图和700个视频",
"storage": "存储空间5G"
}