Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
0a6409ce
Commit
0a6409ce
authored
Jan 06, 2026
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:用户画像获取会话id接口参数
parent
49f99eb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
src/pages/ChatTactics/TacticsChat.tsx
+8
-4
src/pages/ChatTactics/TacticsHome.tsx
+4
-2
No files found.
src/pages/ChatTactics/TacticsChat.tsx
View file @
0a6409ce
...
@@ -155,8 +155,10 @@ export const TacticsChat: React.FC = () => {
...
@@ -155,8 +155,10 @@ export const TacticsChat: React.FC = () => {
if
(
userMeta
?.
place
===
'user'
)
{
if
(
userMeta
?.
place
===
'user'
)
{
return
{
return
{
busiType
:
'02'
,
busiType
:
'02'
,
// place=user 场景下,业务方要求 busiId 取 numberType
// place=user 场景下,业务方要求 busiId 取 userId:numberType,若numberType为空则只传userId
busiId
:
userMeta
.
numberType
,
busiId
:
userMeta
.
userId
&&
userMeta
.
numberType
?
`
${
userMeta
.
userId
}
:
${
userMeta
.
numberType
}
`
:
userMeta
.
userId
||
userMeta
.
numberType
,
}
as
Partial
<
any
>
}
as
Partial
<
any
>
}
}
if
(
tacticsMeta
)
{
if
(
tacticsMeta
)
{
...
@@ -462,8 +464,10 @@ export const TacticsChat: React.FC = () => {
...
@@ -462,8 +464,10 @@ export const TacticsChat: React.FC = () => {
}
}
else
if
(
userMeta
?.
place
===
'user'
)
{
else
if
(
userMeta
?.
place
===
'user'
)
{
requestBody
.
busiType
??
=
'02'
requestBody
.
busiType
??
=
'02'
// place=user 场景下,业务方要求 busiId 取 numberType
// place=user 场景下,业务方要求 busiId 取 userId:numberType,若numberType为空则只传userId
requestBody
.
busiId
??
=
userMeta
.
numberType
requestBody
.
busiId
??
=
userMeta
.
userId
&&
userMeta
.
numberType
?
`
${
userMeta
.
userId
}
:
${
userMeta
.
numberType
}
`
:
userMeta
.
userId
||
userMeta
.
numberType
// 当缓存内存在 place=user 时,始终使用缓存中的 numberType 作为接口参数
// 当缓存内存在 place=user 时,始终使用缓存中的 numberType 作为接口参数
if
(
userMeta
.
numberType
)
{
if
(
userMeta
.
numberType
)
{
requestBody
.
numberType
=
userMeta
.
numberType
requestBody
.
numberType
=
userMeta
.
numberType
...
...
src/pages/ChatTactics/TacticsHome.tsx
View file @
0a6409ce
...
@@ -98,8 +98,10 @@ export const TacticsHome: React.FC = () => {
...
@@ -98,8 +98,10 @@ export const TacticsHome: React.FC = () => {
if
(
userMeta
?.
place
===
'user'
)
{
if
(
userMeta
?.
place
===
'user'
)
{
return
{
return
{
busiType
:
'02'
,
busiType
:
'02'
,
// place=user 场景下,业务方要求 busiId 取 numberType
// place=user 场景下,业务方要求 busiId 取 userId:numberType,若numberType为空则只传userId
busiId
:
userMeta
.
numberType
,
busiId
:
userMeta
.
userId
&&
userMeta
.
numberType
?
`
${
userMeta
.
userId
}
:
${
userMeta
.
numberType
}
`
:
userMeta
.
userId
||
userMeta
.
numberType
,
}
as
Partial
<
any
>
}
as
Partial
<
any
>
}
}
if
(
tacticsMeta
)
{
if
(
tacticsMeta
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment