index bug fixed
This commit is contained in:
parent
26295889d7
commit
d8be9275d9
|
@ -81,37 +81,37 @@ export const decodeBuddyDetailData: ProtocolDecoder<BuddyDetailData> = (
|
||||||
const buddyInfos: UserInfo[] = [];
|
const buddyInfos: UserInfo[] = [];
|
||||||
message.bodyList.forEach(buddyinfo => {
|
message.bodyList.forEach(buddyinfo => {
|
||||||
const info = buddyinfo.split(BodyStringDivider);
|
const info = buddyinfo.split(BodyStringDivider);
|
||||||
let i = 0;
|
|
||||||
buddyInfos.push({
|
buddyInfos.push({
|
||||||
seq: Number(info[i]),
|
seq: Number(info[0]),
|
||||||
name: info[i++],
|
name: info[1],
|
||||||
profileImageFile: info[i++],
|
profileImageFile: info[2],
|
||||||
grade: info[i++],
|
grade: info[3],
|
||||||
intro: info[i++],
|
intro: info[4],
|
||||||
companyCode: info[i++],
|
companyCode: info[5],
|
||||||
hpNumber: info[i++],
|
hpNumber: info[6],
|
||||||
lineNumber: info[i++],
|
lineNumber: info[7],
|
||||||
email: info[i++],
|
email: info[8],
|
||||||
isMobile: info[i++] === 'Y' ? true : false,
|
isMobile: info[9] === 'Y' ? true : false,
|
||||||
deptName: info[i++],
|
deptName: info[10],
|
||||||
isFavorit: info[i++] === 'Y' ? true : false,
|
isFavorit: info[11] === 'Y' ? true : false,
|
||||||
isBuddy: info[i++] === 'Y' ? true : false,
|
isBuddy: info[12] === 'Y' ? true : false,
|
||||||
isActive: info[i++] === 'Y' ? true : false,
|
isActive: info[13] === 'Y' ? true : false,
|
||||||
roleCd: info[i++],
|
roleCd: info[14],
|
||||||
employeeNum: info[i++],
|
employeeNum: info[15],
|
||||||
madn: info[i++],
|
madn: info[16],
|
||||||
hardSadn: info[i++],
|
hardSadn: info[17],
|
||||||
fmcSadn: info[i++],
|
fmcSadn: info[18],
|
||||||
nameEn: info[i++],
|
nameEn: info[19],
|
||||||
nameCn: info[i++],
|
nameCn: info[20],
|
||||||
gradeEn: info[i++],
|
gradeEn: info[21],
|
||||||
gradeCn: info[i++],
|
gradeCn: info[22],
|
||||||
deptNameEn: info[i++],
|
deptNameEn: info[23],
|
||||||
deptNameCn: info[i++],
|
deptNameCn: info[24],
|
||||||
isPrivacyAgree: info[i++] === 'Y' ? true : false,
|
isPrivacyAgree: info[25] === 'Y' ? true : false,
|
||||||
isValidLogin: info[i++] === 'Y' ? true : false,
|
isValidLogin: info[26] === 'Y' ? true : false,
|
||||||
employeeType: info[i++] as EmployeeType,
|
employeeType: info[27] as EmployeeType,
|
||||||
nickName: info[i++]
|
nickName: info[28]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user