Skip to content

Commit 17db70d

Browse files
committed
处理不能正确获取key名称导致设备信息为空的问题
1 parent 3c483c1 commit 17db70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Routing/MqttBaseController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public T GetSessionItem<T>(string key)
9595

9696
public T GetSessionItem<T>()
9797
{
98-
return (T)MqttContext.SessionItems[nameof(T)];
98+
return (T)MqttContext.SessionItems[typeof(T).Name];
9999
}
100100
}
101101
}

0 commit comments

Comments
 (0)