fix: 登录问题修复 - session cookie配置 + 前端调试日志 + 力导向图布局优化

- 显式配置 session cookie (HTTPOnly/SameSite/Secure/Name)
- 前端 fetch 增加 credentials: same-origin
- 登录成功后备 cookie 设置
- 服务端 api_login 增加调试日志
- 星图布局基于 mention_count 优化节点间距
- 保留旧数据库数据
This commit is contained in:
root
2026-05-08 12:25:22 +08:00
parent 807242dd78
commit 3839a60459
124 changed files with 22917 additions and 13 deletions

View File

@ -0,0 +1,25 @@
/**
* Use these variables when you tailor your ArkTS code. They must be of the const type.
*/
export const BUNDLE_NAME = 'com.trulymem.app';
export const BUNDLE_TYPE = 'app';
export const VERSION_CODE = 1000001;
export const VERSION_NAME = '1.0.0';
export const TARGET_NAME = 'default';
export const PRODUCT_NAME = 'default';
export const BUILD_MODE_NAME = 'debug';
export const DEBUG = true;
/**
* BuildProfile Class is used only for compatibility purposes.
*/
export default class BuildProfile {
static readonly BUNDLE_NAME = BUNDLE_NAME;
static readonly BUNDLE_TYPE = BUNDLE_TYPE;
static readonly VERSION_CODE = VERSION_CODE;
static readonly VERSION_NAME = VERSION_NAME;
static readonly TARGET_NAME = TARGET_NAME;
static readonly PRODUCT_NAME = PRODUCT_NAME;
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
static readonly DEBUG = DEBUG;
}

View File

@ -0,0 +1,34 @@
/*
* Copyright (c) 2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef RESOURCE_TABLE_H
#define RESOURCE_TABLE_H
#include<stdint.h>
namespace OHOS {
const int32_t STRING_ENTRYABILITY_DESC = 0x04000001;
const int32_t STRING_ENTRYABILITY_LABEL = 0x04000002;
const int32_t STRING_MAINABILITY_DESC = 0x04000003;
const int32_t STRING_MAINABILITY_LABEL = 0x04000004;
const int32_t STRING_APP_NAME = 0x04000005;
const int32_t STRING_MODULE_DESC = 0x04000006;
const int32_t COLOR_START_WINDOW_BACKGROUND = 0x04000007;
const int32_t MEDIA_LAYERED_IMAGE = 0x04000000;
const int32_t MEDIA_STARTICON = 0x04000008;
const int32_t PROFILE_MAIN_PAGES = 0x04000009;
const int32_t PROFILE_ROUTER_MAP = 0x0400000a;
}
#endif

View File

@ -0,0 +1,16 @@
/*
* Copyright (c) 2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//@ts-noCheck