From 3d3a8cba2cae49048abc1b9b69a938004ff9666e Mon Sep 17 00:00:00 2001 From: lixianjing Date: Sat, 2 Dec 2023 12:37:15 +0800 Subject: [PATCH] improve remote ui service --- src/remote_ui/service/remote_ui_service.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/remote_ui/service/remote_ui_service.c b/src/remote_ui/service/remote_ui_service.c index 28f91d0d5..960bdb4d8 100644 --- a/src/remote_ui/service/remote_ui_service.c +++ b/src/remote_ui/service/remote_ui_service.c @@ -264,10 +264,8 @@ static ret_t remote_ui_service_on_event_func(void* ctx, event_t* e) { value_t vv; value_t* v = NULL; prop_change_event_t* event = prop_change_event_cast(e); - object_default_t* obj = OBJECT_DEFAULT(e->target); /*保持类型不变*/ - if (obj != NULL && obj->keep_prop_type) { - tk_object_get_prop(OBJECT(obj), event->name, &vv); + if (tk_object_get_prop(OBJECT(e->target), event->name, &vv) == RET_OK) { v = &vv; } else { v = (value_t*)(event->value);