From b6a36d2ff47adf644a4380bc41a98f58b49ca4f3 Mon Sep 17 00:00:00 2001 From: xiao12feng8 <16507319+xiao12feng8@user.noreply.gitee.com> Date: Sun, 1 Feb 2026 10:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=9A=E5=A2=9E=E5=8A=A0ta?= =?UTF-8?q?b=E6=A0=8F=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_backend_status.py | 70 - xuniYou/.hbuilderx/launch.json | 7 +- xuniYou/manifest.json | 76 +- xuniYou/pages/chat/index.vue.backup | 3057 +++++++ xuniYou/pages/chat/index_with_tabs.vue.backup | 3057 +++++++ xuniYou/pages/index/index.vue | 573 +- xuniYou/utils/request.js | 16 +- xunifriend_RaeeC/runtime/log/202602/01.log | 7819 +++++++++++++++++ 开发/2026年2月1日.md | 1 + 9 files changed, 14557 insertions(+), 119 deletions(-) delete mode 100644 test_backend_status.py create mode 100644 xuniYou/pages/chat/index.vue.backup create mode 100644 xuniYou/pages/chat/index_with_tabs.vue.backup diff --git a/test_backend_status.py b/test_backend_status.py deleted file mode 100644 index 7215865..0000000 --- a/test_backend_status.py +++ /dev/null @@ -1,70 +0,0 @@ -"""测试后端服务状态""" -import requests -import json - -print("=" * 60) -print("后端服务状态检查") -print("=" * 60) - -# 测试 PHP 后端 -print("\n1. 测试 PHP 后端 (http://127.0.0.1:8080)") -print("-" * 60) -try: - response = requests.get("http://127.0.0.1:8080", timeout=3) - print(f"✓ PHP 后端正常运行") - print(f" 状态码: {response.status_code}") -except requests.exceptions.ConnectionError: - print("✗ PHP 后端未启动或无法连接") - print(" 请使用 phpstudy 启动 Apache 服务") -except Exception as e: - print(f"✗ 连接错误: {e}") - -# 测试 Python 后端 -print("\n2. 测试 Python 后端 (http://127.0.0.1:8000)") -print("-" * 60) -try: - response = requests.get("http://127.0.0.1:8000/docs", timeout=3) - print(f"✓ Python 后端正常运行") - print(f" 状态码: {response.status_code}") -except requests.exceptions.ConnectionError: - print("✗ Python 后端未启动") - print(" 请运行: python -m uvicorn lover.main:app --reload --host 127.0.0.1 --port 8000") -except Exception as e: - print(f"✗ 连接错误: {e}") - -# 测试登录接口 -print("\n3. 测试登录接口") -print("-" * 60) -test_data = { - "mobile": "13758924481", - "password": "123456", - "captcha": "223344" -} -print(f"测试数据: {json.dumps(test_data, ensure_ascii=False)}") - -try: - response = requests.post( - "http://127.0.0.1:8080/api/user/mobilelogin", - json=test_data, - headers={ - "Content-Type": "application/json", - "sid": "2" - }, - timeout=5 - ) - print(f"状态码: {response.status_code}") - print(f"响应: {json.dumps(response.json(), ensure_ascii=False, indent=2)}") -except requests.exceptions.ConnectionError: - print("✗ 无法连接到登录接口") - print(" PHP 后端可能未正确配置") -except Exception as e: - print(f"✗ 请求错误: {e}") - -print("\n" + "=" * 60) -print("检查完成") -print("=" * 60) - -print("\n建议:") -print("1. 如果 PHP 后端未启动,请使用 phpstudy 启动 Apache") -print("2. 如果登录接口返回错误,检查数据库中是否有该用户") -print("3. 如果需要创建测试用户,可以在数据库中手动添加") diff --git a/xuniYou/.hbuilderx/launch.json b/xuniYou/.hbuilderx/launch.json index 93d0520..f98344b 100644 --- a/xuniYou/.hbuilderx/launch.json +++ b/xuniYou/.hbuilderx/launch.json @@ -23,9 +23,10 @@ "type" : "uni-app:app-ios" }, { - "customPlaygroundType" : "local", - "packageName" : "uni.app.UNI1DDC3A9", - "playground" : "custom", + "customPlaygroundType" : "device", + "localRepoPath" : "C:/Users/Administrator/Desktop/Project/AI_GirlFriend/xuniYou", + "packageName" : "uni.app.UNIF098CA6", + "playground" : "standard", "type" : "uni-app:app-android" }, { diff --git a/xuniYou/manifest.json b/xuniYou/manifest.json index 1896343..33163d1 100644 --- a/xuniYou/manifest.json +++ b/xuniYou/manifest.json @@ -1,6 +1,6 @@ { "name" : "虚拟女友", - "appid" : "__UNI__1F3C178", + "appid" : "__UNI__F098CA6", "description" : "", "versionName" : "1.0.0", "versionCode" : 110, @@ -64,38 +64,50 @@ } } }, - "screenOrientation" : ["portrait-primary","portrait-secondary","landscape-primary","landscape-secondary"] + "screenOrientation" : [ + "portrait-primary", + "portrait-secondary", + "landscape-primary", + "landscape-secondary" + ] }, - "nativePlugins" : { - "Agora-RTC" : { - "__plugin_info__" : { - "name" : "Agora音视频插件", - "description" : "Agora官方维护的音视频插件,并且在GitHub上开源,欢迎大家积极参与问题反馈和代码贡献", - "platforms" : "Android,iOS", - "url" : "", - "android_package_name" : "", - "ios_bundle_id" : "", - "isCloud" : false, - "bought" : -1, - "pid" : "", - "parameters" : {} - } - }, - "AudioRecode" : { - "__plugin_info__" : { - "name" : "AudioRecode", - "description" : "录音插件", - "platforms" : "Android", - "url" : "", - "android_package_name" : "", - "ios_bundle_id" : "", - "isCloud" : false, - "bought" : -1, - "pid" : "", - "parameters" : {} - } - } - } + /* 原生插件配置 - 已注释,因为插件文件不存在 + * 如果需要使用这些插件,请先安装插件,然后取消注释并替换下面的空对象 + * Agora-RTC 插件:https://ext.dcloud.net.cn/plugin?id=3720 + * + * 配置示例(取消注释后使用): + * "nativePlugins" : { + * "Agora-RTC" : { + * "__plugin_info__" : { + * "name" : "Agora音视频插件", + * "description" : "Agora官方维护的音视频插件,并且在GitHub上开源,欢迎大家积极参与问题反馈和代码贡献", + * "platforms" : "Android,iOS", + * "url" : "", + * "android_package_name" : "", + * "ios_bundle_id" : "", + * "isCloud" : false, + * "bought" : -1, + * "pid" : "", + * "parameters" : {} + * } + * }, + * "AudioRecode" : { + * "__plugin_info__" : { + * "name" : "AudioRecode", + * "description" : "录音插件", + * "platforms" : "Android", + * "url" : "", + * "android_package_name" : "", + * "ios_bundle_id" : "", + * "isCloud" : false, + * "bought" : -1, + * "pid" : "", + * "parameters" : {} + * } + * } + * } + */ + "nativePlugins" : {} }, /* 快应用特有相关 */ "quickapp" : {}, diff --git a/xuniYou/pages/chat/index.vue.backup b/xuniYou/pages/chat/index.vue.backup new file mode 100644 index 0000000..77c6a31 --- /dev/null +++ b/xuniYou/pages/chat/index.vue.backup @@ -0,0 +1,3057 @@ + + + + + + + \ No newline at end of file diff --git a/xuniYou/pages/chat/index_with_tabs.vue.backup b/xuniYou/pages/chat/index_with_tabs.vue.backup new file mode 100644 index 0000000..77c6a31 --- /dev/null +++ b/xuniYou/pages/chat/index_with_tabs.vue.backup @@ -0,0 +1,3057 @@ + + + + + + + \ No newline at end of file diff --git a/xuniYou/pages/index/index.vue b/xuniYou/pages/index/index.vue index be3803b..6a3ad59 100644 --- a/xuniYou/pages/index/index.vue +++ b/xuniYou/pages/index/index.vue @@ -38,7 +38,34 @@ - + + + + + + {{ tab.name }} + + + + + + + + + + + @@ -66,7 +93,7 @@ - + {{ getBobbiesList.bond_today ? getBobbiesList.bond_today : 0 }}/{{ getBobbiesList.bond_today_all ? getBobbiesList.bond_today_all : 0 @@ -109,15 +136,137 @@ 装束设置 - - + + + + + + + + 💬 + 聊天 + 与她开始对话 + 进入聊天 + + + + + + + + 🎤 + 唱歌功能 + 让她为你唱一首歌 + + + + + {{item.title}} + + + + + + + + + + + + 💃 + 跳舞功能 + 让她为你跳一支舞 + +