Commit c2a4404c by 前端

对话

1 parent 9cd3c86e
...@@ -96,6 +96,7 @@ Page({ ...@@ -96,6 +96,7 @@ Page({
} }
const chatList = JSON.stringify(audioBox.data.list); const chatList = JSON.stringify(audioBox.data.list);
wx.setStorageSync("chatList", chatList); wx.setStorageSync("chatList", chatList);
wx.setStorageSync("history_message", history_message);
const { const {
batch_id, batch_id,
roleType, roleType,
...@@ -103,9 +104,17 @@ Page({ ...@@ -103,9 +104,17 @@ Page({
sparringTaskId, sparringTaskId,
entry entry
} = this.data; } = this.data;
console.log(entry) // wx.$router.go("/packageEquity/pages/aiCheck/result/result", {
// roleType,
// duration,
// history_message,
// batch_id,
// sparringLink: step,
// sparringTaskId,
// entry
// })
wx.redirectTo({ wx.redirectTo({
url: `/packageEquity/pages/aiCheck/result/result?roleType=${roleType}&duration=${duration}&history_message=${history_message}&batch_id=${batch_id}&sparringLink=${step}&sparringTaskId=${sparringTaskId}&entry=${entry}`, url: `/packageEquity/pages/aiCheck/result/result?roleType=${roleType}&duration=${duration}&batch_id=${batch_id}&sparringLink=${step}&sparringTaskId=${sparringTaskId}&entry=${entry}`,
}); });
}, },
toBottom() { toBottom() {
......
...@@ -184,7 +184,6 @@ Page({ ...@@ -184,7 +184,6 @@ Page({
*/ */
async onLoad(options) { async onLoad(options) {
const { const {
history_message,
duration, duration,
batch_id, batch_id,
roleType, roleType,
...@@ -214,6 +213,7 @@ Page({ ...@@ -214,6 +213,7 @@ Page({
id id
}) })
} else { } else {
const history_message = wx.getStorageSync("history_message")
const sensitiveRes = await aiApi.getSensitive({ const sensitiveRes = await aiApi.getSensitive({
history_message history_message
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!