Compare commits

...

4 Commits

Author SHA1 Message Date
阿斌
70e80fc1d2
Pre Merge pull request !41 from 阿斌/N/A 2026-05-09 04:20:33 +00:00
lin
761c3082c9 增加mp4最大时长设置的容错处理,确保流时长超过时不会导致文件切片生成失败 2026-05-09 12:20:15 +08:00
lin
e5fe596ee3 优化视频下载时长设置,增加10秒容错 2026-05-09 10:21:24 +08:00
阿斌
34d1dbb399
修复两次密码不一致时,任然可以修改密码,且成功提交,密码用*代替
还有以下一处需要修改web\src\layout\components\dialog\changePassword.vue

Signed-off-by: 阿斌 <38912748@qq.com>
2025-08-23 15:03:02 +00:00
2 changed files with 14 additions and 3 deletions

View File

@ -409,7 +409,10 @@ public class RtpServerServiceImpl implements IReceiveRtpServerService {
hookResultForOnPublish.setStream_replace(streamReplace); hookResultForOnPublish.setStream_replace(streamReplace);
hookResultForOnPublish.setEnable_audio(enableAudio); hookResultForOnPublish.setEnable_audio(enableAudio);
hookResultForOnPublish.setEnable_mp4(enableMp4); hookResultForOnPublish.setEnable_mp4(enableMp4);
hookResultForOnPublish.setMp4_max_second(mp4MaxSecond); if (mp4MaxSecond != null) {
// mp4MaxSecond 需要比实际的流时长略长一些避免因为流时长超过mp4MaxSecond而生成文件切片
hookResultForOnPublish.setMp4_max_second(mp4MaxSecond + 10);
}
String key = String.format("%s:%s", VideoManagerConstants.RTP_AUTHENTICATE, streamId); String key = String.format("%s:%s", VideoManagerConstants.RTP_AUTHENTICATE, streamId);
// 存储认证信息过期时间为60秒 过期则无法通过认证 // 存储认证信息过期时间为60秒 过期则无法通过认证

View File

@ -13,10 +13,10 @@
<div id="shared" style="margin-right: 20px;"> <div id="shared" style="margin-right: 20px;">
<el-form ref="passwordForm" :rules="rules" status-icon label-width="80px"> <el-form ref="passwordForm" :rules="rules" status-icon label-width="80px">
<el-form-item label="新密码" prop="newPassword"> <el-form-item label="新密码" prop="newPassword">
<el-input v-model="newPassword" autocomplete="off" /> <el-input v-model="newPassword" autocomplete="off" type="password" />
</el-form-item> </el-form-item>
<el-form-item label="确认密码" prop="confirmPassword"> <el-form-item label="确认密码" prop="confirmPassword">
<el-input v-model="confirmPassword" autocomplete="off" /> <el-input v-model="confirmPassword" autocomplete="off" type="password" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -88,6 +88,14 @@ export default {
} }
}, },
onSubmit: function() { onSubmit: function() {
if (this.newPassword !== this.confirmPassword) {
this.$message({
showClose: true,
message: '两次输入密码不一致!',
type: 'error'
})
return
}
this.$store.dispatch('user/changePasswordForAdmin', { this.$store.dispatch('user/changePasswordForAdmin', {
password: this.newPassword, password: this.newPassword,
userId: this.form.id userId: this.form.id