From 1b62131e6b34fdfb023b96bc9ee5a507ce880d73 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 28 Aug 2018 23:39:21 +0800 Subject: [PATCH] add console.log --- libs/api-action/line.js | 1 + libs/line-message/index.js | 1 + 2 files changed, 2 insertions(+) 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