mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
pr modify and update
This commit is contained in:
parent
6c43f75f9f
commit
3dc4290f2a
@ -92,17 +92,6 @@ func (r *RPCServer) OnlinePushMsg(_ context.Context, in *pbRelay.OnlinePushMsgRe
|
|||||||
resp = append(resp, temp)
|
resp = append(resp, temp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Single chat sender synchronization message
|
|
||||||
if in.GetSessionType() == constant.SingleChatType {
|
|
||||||
userIDList = genUidPlatformArray(in.SendID)
|
|
||||||
for _, v := range userIDList {
|
|
||||||
UIDAndPID = strings.Split(v, " ")
|
|
||||||
if conn := ws.getUserConn(v); conn != nil {
|
|
||||||
_ = sendMsgToUser(conn, replyBytes.Bytes(), in, UIDAndPID[1], UIDAndPID[0])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if !tag {
|
if !tag {
|
||||||
log.NewError(in.OperationID, "push err ,no matched ws conn not in map", in.String())
|
log.NewError(in.OperationID, "push err ,no matched ws conn not in map", in.String())
|
||||||
}
|
}
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
image=openim/open_im_server:v1.0.5
|
|
||||||
rm Open-IM-Server -rf
|
|
||||||
git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive
|
|
||||||
cd Open-IM-Server
|
|
||||||
git checkout tuoyun
|
|
||||||
cd cmd/Open-IM-SDK-Core/
|
|
||||||
git checkout tuoyun
|
|
||||||
cd ../../
|
|
||||||
docker build -t $image . -f deploy.Dockerfile
|
|
||||||
docker push $image
|
|
@ -44,4 +44,4 @@ if [ $check -ge 1 ]; then
|
|||||||
echo -e ${SKY_BLUE_PREFIX}"LISTENING_PORT: "${COLOR_SUFFIX}${YELLOW_PREFIX}${allPorts}${COLOR_SUFFIX}
|
echo -e ${SKY_BLUE_PREFIX}"LISTENING_PORT: "${COLOR_SUFFIX}${YELLOW_PREFIX}${allPorts}${COLOR_SUFFIX}
|
||||||
else
|
else
|
||||||
echo -e ${YELLOW_PREFIX}${demo_server_name}${COLOR_SUFFIX}${RED_PREFIX}"SERVICE START ERROR, PLEASE CHECK openIM.log"${COLOR_SUFFIX}
|
echo -e ${YELLOW_PREFIX}${demo_server_name}${COLOR_SUFFIX}${RED_PREFIX}"SERVICE START ERROR, PLEASE CHECK openIM.log"${COLOR_SUFFIX}
|
||||||
fi
|
fi
|
@ -17,4 +17,3 @@ if [ $available -lt 2000 ] ; then
|
|||||||
else
|
else
|
||||||
echo -e ${GREEN_PREFIX} "Memory is ok, available is: "$available"m${COLOR_SUFFIX}"
|
echo -e ${GREEN_PREFIX} "Memory is ok, available is: "$available"m${COLOR_SUFFIX}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -53,7 +53,6 @@ service_source_root=(
|
|||||||
${msg_source_root}
|
${msg_source_root}
|
||||||
${push_source_root}
|
${push_source_root}
|
||||||
${sdk_server_source_root}
|
${sdk_server_source_root}
|
||||||
${timer_task_source_root}
|
|
||||||
${demo_server_source_root}
|
${demo_server_source_root}
|
||||||
)
|
)
|
||||||
#service filename
|
#service filename
|
||||||
@ -74,10 +73,8 @@ service_names=(
|
|||||||
${msg_name}
|
${msg_name}
|
||||||
${push_name}
|
${push_name}
|
||||||
${sdk_server_name}
|
${sdk_server_name}
|
||||||
${timer_task_name}
|
|
||||||
${demo_server_name}
|
${demo_server_name}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ need_to_start_server_shell=(
|
|||||||
push_start.sh
|
push_start.sh
|
||||||
msg_transfer_start.sh
|
msg_transfer_start.sh
|
||||||
sdk_svr_start.sh
|
sdk_svr_start.sh
|
||||||
timer_start.sh
|
|
||||||
demo_svr_start.sh
|
demo_svr_start.sh
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -17,4 +16,3 @@ for i in ${need_to_start_server_shell[*]}; do
|
|||||||
chmod +x $i
|
chmod +x $i
|
||||||
./$i
|
./$i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -61,6 +61,6 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do
|
|||||||
nohup ./${service_filename[$i]} -port $j >>../logs/openIM.log 2>&1 &
|
nohup ./${service_filename[$i]} -port $j >>../logs/openIM.log 2>&1 &
|
||||||
sleep 1
|
sleep 1
|
||||||
pid="netstat -ntlp|grep $j |awk '{printf \$7}'|cut -d/ -f1"
|
pid="netstat -ntlp|grep $j |awk '{printf \$7}'|cut -d/ -f1"
|
||||||
# echo -e "${RED_PREFIX}${service_filename[$i]} Service is started,port number:$j pid:$(eval $pid)$COLOR_SUFFIX"
|
echo -e "${RED_PREFIX}${service_filename[$i]} Service is started,port number:$j pid:$(eval $pid)$COLOR_SUFFIX"
|
||||||
done
|
done
|
||||||
done
|
done
|
Loading…
x
Reference in New Issue
Block a user