Merge branch 'master' of http://10.81.13.221:6990/Web/next-ucap-messenger
This commit is contained in:
commit
7a1782a39b
|
@ -80,6 +80,7 @@ export const decodeBuddyDetailData: ProtocolDecoder<BuddyDetailData> = (
|
|||
const buddyInfos: UserInfo[] = [];
|
||||
message.bodyList.forEach(buddyinfo => {
|
||||
const info = buddyinfo.split(BodyStringDivider);
|
||||
console.log('buddyinfo', info);
|
||||
let i = 0;
|
||||
buddyInfos.push({
|
||||
seq: info[i],
|
||||
|
@ -91,11 +92,11 @@ export const decodeBuddyDetailData: ProtocolDecoder<BuddyDetailData> = (
|
|||
hpNumber: info[i++],
|
||||
lineNumber: info[i++],
|
||||
email: info[i++],
|
||||
isMobile: info[i++],
|
||||
isMobile: info[i++] === 'Y' ? true : false,
|
||||
deptName: info[i++],
|
||||
isFavorit: info[i++],
|
||||
isBuddy: info[i++],
|
||||
isActive: info[i++],
|
||||
isFavorit: info[i++] === 'Y' ? true : false,
|
||||
isBuddy: info[i++] === 'Y' ? true : false,
|
||||
isActive: info[i++] === 'Y' ? true : false,
|
||||
roleCd: info[i++],
|
||||
employeeNum: info[i++],
|
||||
madn: info[i++],
|
||||
|
@ -107,8 +108,8 @@ export const decodeBuddyDetailData: ProtocolDecoder<BuddyDetailData> = (
|
|||
gradeCn: info[i++],
|
||||
deptNameEn: info[i++],
|
||||
deptNameCn: info[i++],
|
||||
isPrivacyAgree: info[i++],
|
||||
isValidLogin: info[i++],
|
||||
isPrivacyAgree: info[i++] === 'Y' ? true : false,
|
||||
isValidLogin: info[i++] === 'Y' ? true : false,
|
||||
employeeType: info[i++],
|
||||
nickName: info[i++]
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user