diff --git a/libs/api-action/line.js b/libs/api-action/line.js index 4f36a71..c7512f1 100644 --- a/libs/api-action/line.js +++ b/libs/api-action/line.js @@ -113,6 +113,7 @@ const getUserInfo = async (group = '', id = '') => { let {displayName, userId} = result.data if (typeof displayName !== 'string' || displayName.length === 0) return null if (typeof userId !== 'string' || userId.length === 0) return null + console.log('get user result ::::: ', result.data) return { displayName, userId diff --git a/libs/line-message/index.js b/libs/line-message/index.js index 4757c81..8b6f472 100644 --- a/libs/line-message/index.js +++ b/libs/line-message/index.js @@ -51,6 +51,7 @@ const saveToLog = async (source, text = '') => { let data = null if (user.rowCount === 0) { data = api.line.getUserInfo(groupId, userId) + console.log('user data ::::: ', data) if (data === null) { db.release() return null