当前位置:网站首页>What is the case when easynvr non administrator logs in to view the empty video list?

What is the case when easynvr non administrator logs in to view the empty video list?

2022-06-24 02:40:00 Tsingsee green rhino video

EasyNVR The platform has the function of hierarchical management , At the same time, it also has an administrator with the highest authority , Administrators and ordinary users of other levels can be set under this administrator . Some users reported that if they use non administrator login EasyNVR, Set the nickname to Chinese , Then go back to the video , The list will be empty .

We tested this situation , It was found that it was , This place needs to be modified :

After checking the code debugging, it is found that it is because sql Caused by statement error ,sql Statement with a nickname field (username) the sql Inquire about , The value used is name The value corresponding to the field , As long as the two are different, the data will not be found .

After changing the nickname field to the login field, the data appears :

wheresql := fmt.Sprintf(`%s.name='%s'`, models.User{}.TableName(), uname)

EasyNVR It can be said that it has become the vanguard of domestic video internet infrastructure construction , Almost every livelihood industry already has EasyNVR The ability of video output ,EasyNVR Years of service in all walks of life video infrastructure , Its reliability 、 integrity 、 Stability has been widely recognized by the industry . At the same time, for the convenience of users to understand and use EasyNVR, We provide EasyNVR Trial version of , Decompression is used immediately. , Welcome to test .

原网站

版权声明
本文为[Tsingsee green rhino video]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/10/20211026185655011p.html

随机推荐