优化后台页面

This commit is contained in:
kuang.yife 2024-04-27 23:36:45 +08:00
parent 7e92fa9417
commit fb4894b1da
5 changed files with 29 additions and 12 deletions

View File

@ -60,9 +60,11 @@ public class PlayletAdviceFeedbackController extends BaseController
list.forEach(model->{ list.forEach(model->{
if(model.getUserId() != null){ if(model.getUserId() != null){
PlayletUser user = iPlayletUserService.getById(model.getUserId()); PlayletUser user = iPlayletUserService.getById(model.getUserId());
if(user != null){
model.setUserName(user.getNickName()); model.setUserName(user.getNickName());
model.setUserPhone(user.getPhone()); model.setUserPhone(user.getPhone());
} }
}
}); });
return getDataTable(list); return getDataTable(list);
} }

View File

@ -46,6 +46,6 @@ public interface PlayletUserAppService {
PlayletUser onlyLoginByOpenid(String openid); PlayletUser onlyLoginByOpenid(String openid);
PlayletUser addPlayletUser(PlayletUser playletUser); PlayletUser addPlayletUser(PlayletUser playletUser) throws Exception;
} }

View File

@ -30,7 +30,14 @@ public class PlayletUserAppServiceImpl implements PlayletUserAppService {
@Override @Override
public PlayletUser addPlayletUser(PlayletUser playletUser) { public PlayletUser addPlayletUser(PlayletUser playletUser) throws Exception{
String alreadyCode = stringRedisTemplate.opsForValue().get(RedisConstants.SMS_CODE_PREFIX + playletUser.getPhone());
if(StringUtils.isEmpty(alreadyCode)){
throw new Exception("验证码已过期!");
}
if(!alreadyCode.equals(playletUser.getCode())){
throw new Exception("短信验证码错误!");
}
playletUser.setCreateBy(PlayletConstants.DEFAULT_CREATE); playletUser.setCreateBy(PlayletConstants.DEFAULT_CREATE);
playletUser.setCreateTime(new Date()); playletUser.setCreateTime(new Date());
iPlayletUserService.save(playletUser); iPlayletUserService.save(playletUser);

View File

@ -7,12 +7,6 @@
<body class="white-bg"> <body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-item-add"> <form class="form-horizontal m" id="form-item-add">
<div class="form-group">
<label class="col-sm-3 control-label">备注信息:</label>
<div class="col-sm-8">
<input name="remark" class="form-control" type="text">
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">视频名称:</label> <label class="col-sm-3 control-label is-required">视频名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
@ -76,6 +70,12 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group">
<label class="col-sm-3 control-label">备注信息:</label>
<div class="col-sm-8">
<input name="remark" class="form-control" type="text">
</div>
</div>
</form> </form>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />

View File

@ -82,11 +82,19 @@
}, },
{ {
field: 'coverPic', field: 'coverPic',
title: '视频封面图' title: '视频封面图',
formatter: function(value) {
if (value != null && value !== ''){return '<a target="_blank" href="' + value+ '" download="false">详情图片<a/>';}
else {return '<a><a/>'}
}
}, },
{ {
field: 'connectSite', field: 'connectSite',
title: '连接地址' title: '连接地址',
formatter: function(value) {
if (value != null && value !== ''){return '<a target="_blank" href="' + value+ '" download="false">详情图片<a/>';}
else {return '<a><a/>'}
}
}, },
{ {
field: 'releaseDate', field: 'releaseDate',