当前位置:网站首页>National standard platform easygbs administrator assigns roles to sub users and troubleshooting of invalid channels
National standard platform easygbs administrator assigns roles to sub users and troubleshooting of invalid channels
2022-06-24 12:24:00 【Tsingsee green rhino video】
As we all know EasyGBS There is a mechanism for user management , Administrator users can create new sub users , At the same time, it has the management authority and allocation authority of sub-users . In the use of EasyGBS After the administrator assigns roles to the sub users and assigns corresponding channels , Re login sub user , It is found that the channel is not allocated successfully , And the front end does not show the channel conditions .
The administrator creates sub users and assigns channels as follows :
After the child user logs in, the following contents are displayed :
After checking the code, we can confirm , This is mainly due to the lack of logical statements for channel queries of sub users , Failed to correctly identify all channels , Therefore, you need to modify the code as follows :
for i, v := range results {
if i == 0 {
whereid += fmt.Sprintf("(" + fmt.Sprintf("'%s'", v) + ",")
} else if i == len(results)-1 {
whereid += fmt.Sprintf(fmt.Sprintf("'%s'", v) + ")")
} else {
whereid += fmt.Sprintf(fmt.Sprintf("'%s'", v) + ",")
}
}Query the channels owned by the user id, Each one id Of sql Statement splicing is separated by single quotation marks . After modification, log in to the sub user again to view , The channel can be displayed normally .
For projects that need to be managed by multiple managers , The user management mechanism provides a convenient operation mode , If you don't know how to use user management , You can read :EasyGBS How to use the new user management function of the video platform .
Highly stable GB28181 The national standard streaming media server supports the device platform GB28181 Register to access 、 Connect with the national standard platform , Able to provide visual WEB Page management ( Page source code open source ), It also supports multiple protocol stream outputs , Realize live broadcast without plug-ins in the browser . If you're interested , Welcome to download the test directly .
边栏推荐
- Cryptography series: collision defense and collision attack
- Deep learning ~11+ a new perspective on disease-related miRNA research
- Is it safe to apply for new bonds to open an account
- 11+的基于甲基化组和转录组综合分析识别葡萄膜黑色素瘤中新的预后 DNA 甲基化特征~
- Use the object selection tool to quickly create a selection in Adobe Photoshop
- 【云驻共创】解读HarmonyOS 应用与服务生态
- How to develop mRNA vaccine? 27+ pancreatic cancer antigen and immune subtype analysis to tell you the answer!
- Chenglixin research group of Shenzhen People's hospital proposed a new method of multi group data in the diagnosis and prognosis analysis of hepatocellular carcinoma megps
- GLOG from getting started to getting started
- 广发证券靠谱吗?开证券账户安全吗?
猜你喜欢

Linker --- linker
【老卫搞机】090期:键盘?主机?全功能键盘主机!
![[digital ic/fpga] booth multiplier](/img/42/3da3b1d3cc82cb9c0694241148011b.png)
[digital ic/fpga] booth multiplier

电商红包雨是如何实现的?拿去面试用(典型高并发)

ArrayList#subList这四个坑,一不小心就中招

【Go语言刷题篇】Go从0到入门4:切片的高级用法、初级复习与Map入门学习

万名校园开发者花式玩AI,亮点看这张图就够啦!

GTest从入门到入门
Deep parsing and implementation of redis pub/sub publish subscribe mode message queue
Cloud native database: the outlet of the database, you can also take off
随机推荐
怎样购买打新债 开户是安全的吗
Examples of AES and RSA encryption operations implemented by php7.1
The latest hot spot: the use of copper death related genes for tumor prognosis typing!
《opencv学习笔记》-- 图像的载入和保存
Linker --- linker
数据标注科普:十种常见的图像标注方法
Opencv learning notes - loading and saving images
怎样打新债具体操作 开户是安全的吗
Group planning - General Review
Concentrate on research preparation, Tencent cloud, see you next year!
Speculation London gold short-term stable money making skills? Where is it safe to fry London gold?
mRNA疫苗的研制怎么做?27+ 胰腺癌抗原和免疫亚型的解析来告诉你答案!
New progress in the construction of meituan's Flink based real-time data warehouse platform
d的10个0符
最新热点:使用铜死亡相关基因进行肿瘤预后分型!
打新债的条件 开户是安全的吗
How to calculate the bandwidth of video transmission? How much bandwidth is required to transmit 4K video?
12+!不同癌症中TMB与ICI反应之间的免疫相关因素研究
《opencv学习笔记》-- 分离颜色通道、多通道混合
Chenglixin research group of Shenzhen People's hospital proposed a new method of multi group data in the diagnosis and prognosis analysis of hepatocellular carcinoma megps