changed:最近七天聊天记录接口修改前端对应
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -27,9 +27,9 @@ const getClientData = (type, encryptedUid, imgSize) => { | @@ -27,9 +27,9 @@ const getClientData = (type, encryptedUid, imgSize) => { | ||
27 | 27 | ||
28 | return Promise.all(apiMethod) | 28 | return Promise.all(apiMethod) |
29 | .then(res => { | 29 | .then(res => { |
30 | - let history = res[1].data; | ||
31 | - let hasHistory = history && history.length > 0 || false; | ||
32 | let csSetting = res[0].data && res[0].data.config; | 30 | let csSetting = res[0].data && res[0].data.config; |
31 | + let records = res[1].data && res[1].data.records || []; | ||
32 | + let hasHistory = records.length > 0 || false; | ||
33 | 33 | ||
34 | csSetting.windowLogo = csSetting.windowLogo.replace(regExp, logoSize); | 34 | csSetting.windowLogo = csSetting.windowLogo.replace(regExp, logoSize); |
35 | csSetting.qrCode = csSetting.qrCode.replace(regExp, qcSize); | 35 | csSetting.qrCode = csSetting.qrCode.replace(regExp, qcSize); |
-
Please register or login to post a comment