From 451906a9ac6e59095147fc373b184258a7def5f9 Mon Sep 17 00:00:00 2001 From: xiao12feng8 <16507319+xiao12feng8@user.noreply.gitee.com> Date: Sun, 1 Feb 2026 11:54:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=9AAI=E5=9B=9E=E5=A4=8D?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=BE=E7=A4=BA=E6=80=9D=E8=80=83=E4=B8=AD?= =?UTF-8?q?...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../routers/__pycache__/chat.cpython-314.pyc | Bin 67617 -> 68111 bytes lover/routers/chat.py | 10 + xuniYou/pages/chat/index.vue | 97 ++++- xunifriend_RaeeC/runtime/log/202602/01.log | 336 ++++++++++++++++++ 开发/2026年2月1日.md | 10 +- 5 files changed, 430 insertions(+), 23 deletions(-) diff --git a/lover/routers/__pycache__/chat.cpython-314.pyc b/lover/routers/__pycache__/chat.cpython-314.pyc index a80f9eb6f50fc36ddcd4e73009b44a34e8bb0ec6..0e98722a8ff967aad9eef293327a402d620cd15c 100644 GIT binary patch delta 2680 zcmZ`)3s6+o8NO$C@4jI-AWuaF!LYmnVk(Bvx*Y-0@CeFE@PX*AN|c8e*4U{dMw9>p zqWP&J5QS=IutSY{MTin~OlnBAajiy@MN=@m)H*EUW1Nws=Rcc5r!(Ez{q{fq`#9LU zFH%fIs!3Z62W-<7OF3=^XVQTF)igN$LMb=LpaT6o)G?VHXZFB#x`#=p<WOng_XDtkjRoB?e#d zPR}I&;43)PJUuYWo%ked{t$M0ck9L+1?msrzaCGoQ^=N0kHIFJsJ1f*f zV$0Cp8me&yjhs3$&~ahXbD*Po@T0Qf=2N4cRfFwkohhlqKu6`srPG6D`vy;aMolB1 zwhvtV({Sygsk+1Ud!1%X_fgr8yZ2aqv5!@lrt{E9*Fj84JNhL@y`8Kv1VPuk5B=<_ z+@frYIk(tiw(ARo+)cUpIa{+g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mW{{h0_J3gY*L_wZdY zq9q&Eu>JsrIE0RE?WZYbxCh(3M1EtkWCuetiOOwM6WV7di#Drd)HG5LkBVLaM|iTr zDc}LIFnxRNwKaA17N(>cf))l)I4?A>YS3O=?YepkePy9h)RC)%Ekw8OLwagt; - {{ item.content }} + + {{ item.content }} + { if (res.code == 1) { - uni.showToast({ - title: '发送成功', - icon: 'none', - position: 'top' - }) - this.addBond() - this.form.message = ''; - this.form.session_id = ''; - this.$refs.aiRef.renderText = '' - this.$refs.aiRef.resultTextTemp = '' - this.$refs.aiRef.renderText = '' - // 重新获取会话数据以包含AI回复,这会自动滚动到底部 - // 为确保滚动到最新消息,我们稍微延迟一下滚动 - this.refreshSessionData(true); // 传递参数表示需要滚动到底部 + // 计算已经过去的时间 + const elapsedTime = Date.now() - this.messageSentTime; + const minThinkingTime = 5000; // 最少5秒思考时间 + const remainingTime = Math.max(0, minThinkingTime - elapsedTime); + + // 延迟刷新,确保至少显示5秒思考中 + setTimeout(() => { + uni.showToast({ + title: '发送成功', + icon: 'none', + position: 'top' + }); + this.addBond(); + this.form.message = ''; + this.form.session_id = ''; + this.$refs.aiRef.renderText = ''; + this.$refs.aiRef.resultTextTemp = ''; + this.$refs.aiRef.renderText = ''; + // 重新获取会话数据以包含AI回复,这会自动滚动到底部 + this.refreshSessionData(true); + }, remainingTime); } else { + // 发送失败,立即移除思考中消息 + this.sessionInitList.messages = this.sessionInitList.messages.filter( + msg => !msg.isThinking + ); uni.showToast({ title: res.msg, icon: 'none', position: 'top' - }) + }); } - }) + }).catch(err => { + // 发送失败,立即移除思考中消息 + this.sessionInitList.messages = this.sessionInitList.messages.filter( + msg => !msg.isThinking + ); + uni.showToast({ + title: '发送失败', + icon: 'none' + }); + }); }, chatMessagesTts() { ChatMessagesTts(this.chatMessagesTtsform.id).then(res => { @@ -859,8 +883,27 @@ return; } - uni.showLoading({ - title: '发送中...' + // 记录发送时间,用于计算最小思考时间 + this.messageSentTime = Date.now(); + + // 立即添加一条"思考中"的临时消息 + const thinkingMessage = { + id: 'thinking_' + Date.now(), + role: 'lover', + content: '思考中...', + isThinking: true, // 标记为思考中状态 + created_at: new Date().toISOString() + }; + + // 添加到消息列表 + if (!this.sessionInitList.messages) { + this.sessionInitList.messages = []; + } + this.sessionInitList.messages.push(thinkingMessage); + + // 滚动到底部 + this.$nextTick(() => { + this.scrollToBottom(); }); this.addBondform.type = 1; @@ -2052,6 +2095,22 @@ word-break: break-all; } + /* 思考中状态的文本样式 */ + .thinking-text { + color: #999 !important; + font-style: italic; + animation: thinking-pulse 1.5s ease-in-out infinite; + } + + @keyframes thinking-pulse { + 0%, 100% { + opacity: 0.5; + } + 50% { + opacity: 1; + } + } + .message-image { max-width: 200rpx; max-height: 200rpx; diff --git a/xunifriend_RaeeC/runtime/log/202602/01.log b/xunifriend_RaeeC/runtime/log/202602/01.log index 51e8af2..7184154 100644 --- a/xunifriend_RaeeC/runtime/log/202602/01.log +++ b/xunifriend_RaeeC/runtime/log/202602/01.log @@ -16898,3 +16898,339 @@ T File [ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000564s ] [ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001462s ] [ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000546s ] +--------------------------------------------------------------- +[ 2026-02-01T11:51:54+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic +[运行时间:0.141074s] [吞吐率:7.09req/s] [内存消耗:4,272.90kb] [文件加载:92] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000029s ] +[ info ] [ CACHE ] INIT File +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.005641s ] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005696s ] +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001755s ] +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000042s ] +[ info ] [ ROUTE ] array ( + 'type' => 'module', + 'module' => + array ( + 0 => 'api', + 1 => 'user_basic', + 2 => 'get_user_basic', + ), +) +[ info ] [ HEADER ] array ( + 'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207', + 'connection' => 'keep-alive', + 'accept' => '*/*', + 'accept-encoding' => 'gzip, deflate, zstd', + 'user-agent' => 'python-requests/2.32.5', + 'host' => '127.0.0.1:8080', + 'content-length' => '', + 'content-type' => '', +) +[ info ] [ PARAM ] array ( +) +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002643s ] +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000693s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000534s ] +[ info ] [ TOKEN ] INIT Mysql +[ info ] [ DB ] INIT mysql +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.001218s ] +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.003093s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000082s ] +[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ] +[ info ] [ LOG ] INIT File +[ sql ] [ DB ] CONNECT:[ UseTime:0.002726s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.002247s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000561s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.003677s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000931s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.001028s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.002358s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000630s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.002189s ] +[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000536s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.002134s ] +[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000654s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.002065s ] +[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000677s ] +--------------------------------------------------------------- +[ 2026-02-01T11:51:54+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic +[运行时间:0.187604s] [吞吐率:5.33req/s] [内存消耗:4,272.90kb] [文件加载:92] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000038s ] +[ info ] [ CACHE ] INIT File +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.005781s ] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005835s ] +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001643s ] +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000040s ] +[ info ] [ ROUTE ] array ( + 'type' => 'module', + 'module' => + array ( + 0 => 'api', + 1 => 'user_basic', + 2 => 'get_user_basic', + ), +) +[ info ] [ HEADER ] array ( + 'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207', + 'connection' => 'keep-alive', + 'accept' => '*/*', + 'accept-encoding' => 'gzip, deflate, zstd', + 'user-agent' => 'python-requests/2.32.5', + 'host' => '127.0.0.1:8080', + 'content-length' => '', + 'content-type' => '', +) +[ info ] [ PARAM ] array ( +) +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005641s ] +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.009896s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000654s ] +[ info ] [ TOKEN ] INIT Mysql +[ info ] [ DB ] INIT mysql +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.001152s ] +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.002564s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000066s ] +[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ] +[ info ] [ LOG ] INIT File +[ sql ] [ DB ] CONNECT:[ UseTime:0.004184s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.002205s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000579s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.003425s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000858s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000894s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.002730s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000712s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.002673s ] +[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000619s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.002269s ] +[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000818s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.002579s ] +[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000742s ] +--------------------------------------------------------------- +[ 2026-02-01T11:52:04+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic +[运行时间:0.209735s] [吞吐率:4.77req/s] [内存消耗:4,272.90kb] [文件加载:92] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000033s ] +[ info ] [ CACHE ] INIT File +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.005654s ] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005707s ] +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001637s ] +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000036s ] +[ info ] [ ROUTE ] array ( + 'type' => 'module', + 'module' => + array ( + 0 => 'api', + 1 => 'user_basic', + 2 => 'get_user_basic', + ), +) +[ info ] [ HEADER ] array ( + 'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207', + 'connection' => 'keep-alive', + 'accept' => '*/*', + 'accept-encoding' => 'gzip, deflate, zstd', + 'user-agent' => 'python-requests/2.32.5', + 'host' => '127.0.0.1:8080', + 'content-length' => '', + 'content-type' => '', +) +[ info ] [ PARAM ] array ( +) +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002667s ] +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000722s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000570s ] +[ info ] [ TOKEN ] INIT Mysql +[ info ] [ DB ] INIT mysql +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.001202s ] +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.003355s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000074s ] +[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ] +[ info ] [ LOG ] INIT File +[ sql ] [ DB ] CONNECT:[ UseTime:0.002125s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.002584s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000680s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.003801s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000886s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000865s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.002903s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000855s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.004169s ] +[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000679s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.002971s ] +[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.001045s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.002740s ] +[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.001212s ] +--------------------------------------------------------------- +[ 2026-02-01T11:52:04+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic +[运行时间:0.250969s] [吞吐率:3.98req/s] [内存消耗:4,272.90kb] [文件加载:92] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000033s ] +[ info ] [ CACHE ] INIT File +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.005076s ] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005137s ] +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001825s ] +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000051s ] +[ info ] [ ROUTE ] array ( + 'type' => 'module', + 'module' => + array ( + 0 => 'api', + 1 => 'user_basic', + 2 => 'get_user_basic', + ), +) +[ info ] [ HEADER ] array ( + 'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207', + 'connection' => 'keep-alive', + 'accept' => '*/*', + 'accept-encoding' => 'gzip, deflate, zstd', + 'user-agent' => 'python-requests/2.32.5', + 'host' => '127.0.0.1:8080', + 'content-length' => '', + 'content-type' => '', +) +[ info ] [ PARAM ] array ( +) +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.014400s ] +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.001760s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.001239s ] +[ info ] [ TOKEN ] INIT Mysql +[ info ] [ DB ] INIT mysql +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.001307s ] +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.003118s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000101s ] +[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ] +[ info ] [ LOG ] INIT File +[ sql ] [ DB ] CONNECT:[ UseTime:0.001683s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.002625s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000717s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.004278s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.001040s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.001101s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.002503s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000617s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.002297s ] +[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000646s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.002044s ] +[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000688s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.002470s ] +[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000706s ] +--------------------------------------------------------------- +[ 2026-02-01T11:52:12+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic +[运行时间:0.089233s] [吞吐率:11.21req/s] [内存消耗:4,272.90kb] [文件加载:92] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000021s ] +[ info ] [ CACHE ] INIT File +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003574s ] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003613s ] +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000929s ] +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000026s ] +[ info ] [ ROUTE ] array ( + 'type' => 'module', + 'module' => + array ( + 0 => 'api', + 1 => 'user_basic', + 2 => 'get_user_basic', + ), +) +[ info ] [ HEADER ] array ( + 'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207', + 'connection' => 'keep-alive', + 'accept' => '*/*', + 'accept-encoding' => 'gzip, deflate, zstd', + 'user-agent' => 'python-requests/2.32.5', + 'host' => '127.0.0.1:8080', + 'content-length' => '', + 'content-type' => '', +) +[ info ] [ PARAM ] array ( +) +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001651s ] +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000416s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000508s ] +[ info ] [ TOKEN ] INIT Mysql +[ info ] [ DB ] INIT mysql +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.001061s ] +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.002854s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000081s ] +[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ] +[ info ] [ LOG ] INIT File +[ sql ] [ DB ] CONNECT:[ UseTime:0.001339s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001722s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000678s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.002661s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000810s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000552s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001680s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000598s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.002090s ] +[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000522s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.002085s ] +[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000597s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001572s ] +[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000571s ] +--------------------------------------------------------------- +[ 2026-02-01T11:52:12+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic +[运行时间:0.093693s] [吞吐率:10.67req/s] [内存消耗:4,272.90kb] [文件加载:92] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000025s ] +[ info ] [ CACHE ] INIT File +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003575s ] +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003617s ] +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000891s ] +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000026s ] +[ info ] [ ROUTE ] array ( + 'type' => 'module', + 'module' => + array ( + 0 => 'api', + 1 => 'user_basic', + 2 => 'get_user_basic', + ), +) +[ info ] [ HEADER ] array ( + 'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207', + 'connection' => 'keep-alive', + 'accept' => '*/*', + 'accept-encoding' => 'gzip, deflate, zstd', + 'user-agent' => 'python-requests/2.32.5', + 'host' => '127.0.0.1:8080', + 'content-length' => '', + 'content-type' => '', +) +[ info ] [ PARAM ] array ( +) +[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001518s ] +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000426s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000371s ] +[ info ] [ TOKEN ] INIT Mysql +[ info ] [ DB ] INIT mysql +[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000696s ] +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001869s ] +[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000073s ] +[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ] +[ info ] [ LOG ] INIT File +[ sql ] [ DB ] CONNECT:[ UseTime:0.012236s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001749s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000592s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.003644s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000726s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000571s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001940s ] +[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000661s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001567s ] +[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000474s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001486s ] +[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000544s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001700s ] +[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000734s ] diff --git a/开发/2026年2月1日.md b/开发/2026年2月1日.md index f9aecec..9165991 100644 --- a/开发/2026年2月1日.md +++ b/开发/2026年2月1日.md @@ -1,6 +1,8 @@ 1. 将密码校验删除,因为无法生成模型,用最简单的方法来尝试这些内容。 2. 将Hbuilder的AppId更换成自己的,原本的保留(__UNI__1F3C178)。还是无法正常编译,将下面的插件注释掉不用,Agora-RTC:音视频插件和AudioRecode:录音插件。 -3. 增加tab栏但是还没有加上对应的功能 -4. 增加聊天背景选择功能,会员可以自定义背景 -5. 增加恋人消息编辑功能,更新**数据库**,加上一些编辑消息、编辑时间相关字段。用户编辑消息之后恋人不回答,只会更新记忆和摘要的数据库,下一次回答的时候会重新引用这个更新后的记忆。 -6. lian \ No newline at end of file +- [ ] 增加tab栏但是还没有加上对应的功能 +3. 增加聊天背景选择功能,会员可以自定义背景 +4. 增加恋人消息编辑功能,更新**数据库**,加上一些编辑消息、编辑时间相关字段。用户编辑消息之后恋人不回答,只会更新记忆和摘要的数据库,下一次回答的时候会重新引用这个更新后的记忆。 +- [ ] 礼物、换装、音色样式更改,但是还未更新数据库 +5. 恋人消息回复增加思考中... +6. \ No newline at end of file