reques-ewma-8500-tick
2021-09-06 14:41:08 0 举报
reques-ewma-8500-tick
作者其他创作
大纲/内容
Mysql
value 等于返回值logo->name
Service8500.php
get bmd.status.get_room_id_by_uuid.{{uuid}}
if(record_task_def.status & (1 8 | 1 9))调用room-record-task-cancel
select value from school_option where school_id=$school_id and opt_name='logo-tel'
将入参data-status存入redis
Alt 入参version在缓存中不存在或跟缓存不相等时
验证room_id是否为数字
select value from school_option where school_id=$school_id and opt_name='logo-name'
setCameraInfo
select prop_value from prop_info where prop_id=$room_id and prop_name= '-lock-';
更新device_active表end字段
update device_active set end=now() where active_id=$active_id \" . \"and uuid='$uuid' and room_id=$room_id and teacher_id=$teacher_id
如果入参没有teacher_id有tid的话 取tid作为teacher_id
Alt status->main == 'active' & teacher_id > 1
调用remote-control
下发录制任务
Alt status->recorder == 'on' & teacher_id > 0
SELECT * from teacher_room WHERE teacher_id = $teacher_id
如果task_list有值则调用media-play补发
$lesson 查询keys并获取第一个key的值
{else}
Alt empty($lesson) || forward_login_timestamp > time()
修改或新增device_version表
根据uuid取出status
reques:ewma-8500-tick
Alt prop_info.prop_value.lock === false
Alt school_option.enable = 0 & teacher_room.login_priority = 0
正则验证uuid/^[0-9a-fA-F]{16}$/
Redis
value 等于返回值logo->tel
根据teacher_id 查询teacher_room
keys bmd.status.school_id_{$school_id}.lesson_by_room.*.$room_idget key
根据uuid取出room_id
根据room_id查询school_id
缓存version信息
setDev8500LoginUser
请求返回
将状态更新到数据库
set bmd.dev-8500.login-user.{{uuid}} {\"user_type\":\"teacher\
set bmd.status.status.{{uuid}} data-status 生命周期12s
查询播放任务task_list
get bmd.status.status.{{uuid}}
Alt isset(data->version)
判断redis中room_id和参数中是否相等
补发推送失败的媒体播放任务
Alt status->main == 'offline'
调用notify-device-will-logout
Alt isset(data->camera-info)
Alt isset(data->status)
Alt status->main == 'standby'
select * from school_option where school_id=$school_id and opt_name='login-logout-by-course-b'
if(record_task_def.status & (1 | 1 1))调用room-record-task
根据school_id查询school_option
0 条评论
下一页