You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
connection.query('select * from user where id in ('+$friends+')',function(err,friends){
57
56
if(err){
58
57
reject('系统错误');
59
58
}
60
59
resolve(friends);
61
60
})
62
61
}).then(function(friends){
63
-
//默认获取自己和好友列表第一位好友的聊天记录
64
62
connection.query('select * from chat_record where (from_uid = '+$uid+' and to_uid = '+friends[0].id+') or (from_uid = '+friends[0].id+' and to_uid = '+$uid+') order by addtime asc',function(err,records){
65
-
//默认获取好友列表的第一位好友的头像和用户名
66
63
connection.query('select * from user where id = '+friends[0].id,function(err,toinfo){
0 commit comments