Merge branch 'master' into release

This commit is contained in:
Jay 2018-08-28 23:39:33 +08:00
commit 9161c6d7db
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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