From: luozheng <1732036298@qq.com> Date: Thu, 7 Nov 2024 10:32:45 +0000 (+0800) Subject: 设备解绑,绑定Notify优先级设置为1 X-Git-Tag: fd230_release_V1.3.102~29^2~42 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1366%2Fhead;p=mirrors%2FFD230.git 设备解绑,绑定Notify优先级设置为1 --- diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index ca4263dbc..5364d14cb 100644 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -134,7 +134,7 @@ const PriorityMapper PRI_MAPPER[] = { {TOPIC_EVENT_LEAKLIGHT_UPDATA, PRIORITY_TWO}, #endif #ifdef SUPPORT_DEVICE_PAIRING_NOTIFICATION //如果支持设备配对通知 - {TOPIC_EVENT_DEVICE_BIND, PRIORITY_TWO}, + {TOPIC_EVENT_DEVICE_BIND, PRIORITY_ONE}, // {TOPIC_EVENT_DEVICE_UNBIND, PRIORITY_TWO}, // {TOPIC_EVENT_DEVICE_UNBINDING_REQUEST, PRIORITY_TWO}, #endif @@ -1253,7 +1253,7 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req) switch(data[0]) { case DEVICEBIND: - NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); + NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE); len_name = req->len-2; memset(devname,0,len_name); if(len_name > 0) @@ -1267,7 +1267,7 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req) break; case DEVICEUNBIND: - NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); + NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE); len_name = req->len-2; memset(devname,0,len_name); if(len_name > 0)