mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Merge remote-tracking branch 'origin/tuoyun' into tuoyun
This commit is contained in:
commit
cd14f3e649
@ -79,7 +79,15 @@ rpcport:
|
|||||||
openImGroupPort: [ 10500 ]
|
openImGroupPort: [ 10500 ]
|
||||||
openImAuthPort: [ 10600 ]
|
openImAuthPort: [ 10600 ]
|
||||||
openImPushPort: [ 10700 ]
|
openImPushPort: [ 10700 ]
|
||||||
|
c2c:
|
||||||
|
callbackBeforeSendMsg:
|
||||||
|
switch: false
|
||||||
|
timeoutStrategy: 1 #1:send
|
||||||
|
callbackAfterSendMsg:
|
||||||
|
switch: false
|
||||||
|
state:
|
||||||
|
stateChange:
|
||||||
|
switch: false
|
||||||
|
|
||||||
rpcregistername:
|
rpcregistername:
|
||||||
openImUserName: User
|
openImUserName: User
|
||||||
@ -139,11 +147,18 @@ tokenpolicy:
|
|||||||
accessExpire: 7
|
accessExpire: 7
|
||||||
|
|
||||||
messagecallback:
|
messagecallback:
|
||||||
callbackSwitch: false
|
|
||||||
callbackUrl: "http://www.xxx.com/msg/judge"
|
callbackUrl: "http://www.xxx.com/msg/judge"
|
||||||
#TimeOut use second as unit
|
#TimeOut use second as unit
|
||||||
callbackTimeOut: 10
|
callbackTimeOut: 10
|
||||||
|
c2c:
|
||||||
|
callbackBeforeSendMsg:
|
||||||
|
switch: false
|
||||||
|
timeoutStrategy: 1 #1:send
|
||||||
|
callbackAfterSendMsg:
|
||||||
|
switch: false
|
||||||
|
state:
|
||||||
|
stateChange:
|
||||||
|
switch: false
|
||||||
|
|
||||||
#---------------demo configuration---------------------#
|
#---------------demo configuration---------------------#
|
||||||
#The following configuration items are applied to openIM Demo configuration
|
#The following configuration items are applied to openIM Demo configuration
|
||||||
|
@ -63,7 +63,7 @@ func FindGroupMemberInfoByGroupIdAndUserId(groupId, uid string) (*GroupMember, e
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
var groupMember GroupMember
|
var groupMember GroupMember
|
||||||
err = dbConn.Raw("select * from `group_member` where group_id=? and uid=? limit 1", groupId, uid).Scan(&groupMember).Error
|
err = dbConn.Raw("select * from `group_member` where group_id=? and uid=? limit 1", groupId, uid).Find(&groupMember).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user