当前位置:网站首页>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 .
边栏推荐
- How to write controller layer code gracefully?
- ArrayList # sublist these four holes, you get caught accidentally
- Opencv learning notes -- Separation of color channels and multi-channel mixing
- Flink snapshot analysis: operators for locating large states and data skew
- u盘安装kali并且持久化
- Coinbase将推出首个针对零售交易员的加密衍生产品
- 炒伦敦金短线稳定赚钱技巧?在哪里炒伦敦金安全靠谱?
- 链接器 --- Linker
- How is the e-commerce red envelope realized? For interview (typical high concurrency)
- Deep parsing and implementation of redis pub/sub publish subscribe mode message queue
猜你喜欢

Installation and operation of libuv

Opencv learning notes - loading and saving images

How to write controller layer code gracefully?
[Old Wei makes machines] issue 090: keyboard? host? Full function keyboard host!

GLOG from getting started to getting started

《梦华录》要大结局了,看超前点映不如先来学学它!
![[live review] battle code pioneer phase 7: how third-party application developers contribute to open source](/img/fa/e52bd8a1a404a759ef6ba88e8da0f0.png)
[live review] battle code pioneer phase 7: how third-party application developers contribute to open source

How can a shell script (.Sh file) not automatically close or flash back after execution?

FreeRTOS overview and experience
Database migration tool flyway vs liquibase (II)
随机推荐
The latest hot spot: the use of copper death related genes for tumor prognosis typing!
PF_ Ring ZC | high speed traffic processing dpdk alternative
I'm in Shenzhen. Where can I open an account? Is it safe to open an account online now?
ArrayList#subList这四个坑,一不小心就中招
Is GF Securities reliable? Is it safe to open a securities account?
[live review] battle code pioneer phase 7: how third-party application developers contribute to open source
《opencv学习笔记》-- 离散傅里叶变换
Cryptography series: collision defense and collision attack
[206] use PHP language to generate the code of go language
夜晚读书 -- 关于微服务和容器
How to calculate the bandwidth of video transmission? How much bandwidth is required to transmit 4K video?
GLOG from getting started to getting started
【老卫搞机】090期:键盘?主机?全功能键盘主机!
Deep learning ~11+ a new perspective on disease-related miRNA research
Opencv learning notes - Discrete Fourier transform
VaR in PHP_ export、print_ r、var_ Differences in dump debugging
How to open a new bond? Is it safe to open an account
[Architect (Part 41)] installation of server development and connection to redis database
【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
11+! 结肠癌中基于 m6A 调节因子的甲基化修饰模式以不同的肿瘤微环境免疫谱为特征