|
|
@ -115,10 +115,11 @@ void WebsocketService::onTextMessageReceived(const QString &message) |
|
|
|
|
|
|
|
void WebsocketService::handleWsButtonStartMsg(QJsonObject jobj) |
|
|
|
{ |
|
|
|
qDebug()<<jobj; |
|
|
|
QString firstAidId = jobj.take("firstAidId").toString(); |
|
|
|
QString name = jobj.take("name").toString(); |
|
|
|
QString content = jobj.take("content").toString(); |
|
|
|
quint64 realCountdown = jobj.take("realCountdown").toInt(0) / 1000; |
|
|
|
quint64 realCountdown = jobj.take("realCountdown").toString().toInt(0) / 1000; |
|
|
|
emit newPatientMergencyInfo(firstAidId,name,content,realCountdown); |
|
|
|
} |
|
|
|
|
|
|
|