|
@@ -38,12 +38,14 @@ export const loginChat = (loginInfo) => {
|
|
|
if (res.data) {
|
|
|
const userTypeNum = parseInt(userLoginType);
|
|
|
// 构建 conversationId
|
|
|
- debugger;
|
|
|
+ // userTypeNum>0为商家向用户发 商家的IMID默认接收到的就是带ABC的ID
|
|
|
+ // userTypeNum<=0时为用户像商家发 用户向商家发 需要进入商家的会话,商家的会话时商家的imID需要带ABCD
|
|
|
const conversationMap = {
|
|
|
- job: `C2CA${userTypeNum > 0 ? recruitUserId : companyUserId}`,
|
|
|
- house: `C2CC${userTypeNum > 0 ? shopUserId : userId}`,
|
|
|
- homemaking: `C2CE${userTypeNum > 0 ? shopUserId : userId}`,
|
|
|
+ job: `C2C${userTypeNum > 0 ? recruitUserId : "A" + companyUserId}`,
|
|
|
+ house: `C2C${userTypeNum > 0 ? shopUserId : "C" + userId}`,
|
|
|
+ homemaking: `C2C${userTypeNum > 0 ? shopUserId : "E" + userId}`,
|
|
|
};
|
|
|
+
|
|
|
console.log("conversationMap", conversationMap);
|
|
|
|
|
|
const conversationId = conversationMap[type];
|