Merge branch 'master' into release
This commit is contained in:
commit
9161c6d7db
@ -113,6 +113,7 @@ const getUserInfo = async (group = '', id = '') => {
|
|||||||
let {displayName, userId} = result.data
|
let {displayName, userId} = result.data
|
||||||
if (typeof displayName !== 'string' || displayName.length === 0) return null
|
if (typeof displayName !== 'string' || displayName.length === 0) return null
|
||||||
if (typeof userId !== 'string' || userId.length === 0) return null
|
if (typeof userId !== 'string' || userId.length === 0) return null
|
||||||
|
console.log('get user result ::::: ', result.data)
|
||||||
return {
|
return {
|
||||||
displayName,
|
displayName,
|
||||||
userId
|
userId
|
||||||
|
@ -51,6 +51,7 @@ const saveToLog = async (source, text = '') => {
|
|||||||
let data = null
|
let data = null
|
||||||
if (user.rowCount === 0) {
|
if (user.rowCount === 0) {
|
||||||
data = api.line.getUserInfo(groupId, userId)
|
data = api.line.getUserInfo(groupId, userId)
|
||||||
|
console.log('user data ::::: ', data)
|
||||||
if (data === null) {
|
if (data === null) {
|
||||||
db.release()
|
db.release()
|
||||||
return null
|
return null
|
||||||
|
Loading…
Reference in New Issue
Block a user