优化后台页面
This commit is contained in:
parent
7e92fa9417
commit
fb4894b1da
|
|
@ -60,9 +60,11 @@ public class PlayletAdviceFeedbackController extends BaseController
|
|||
list.forEach(model->{
|
||||
if(model.getUserId() != null){
|
||||
PlayletUser user = iPlayletUserService.getById(model.getUserId());
|
||||
if(user != null){
|
||||
model.setUserName(user.getNickName());
|
||||
model.setUserPhone(user.getPhone());
|
||||
}
|
||||
}
|
||||
});
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,6 @@ public interface PlayletUserAppService {
|
|||
|
||||
PlayletUser onlyLoginByOpenid(String openid);
|
||||
|
||||
PlayletUser addPlayletUser(PlayletUser playletUser);
|
||||
PlayletUser addPlayletUser(PlayletUser playletUser) throws Exception;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,14 @@ public class PlayletUserAppServiceImpl implements PlayletUserAppService {
|
|||
|
||||
|
||||
@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.setCreateTime(new Date());
|
||||
iPlayletUserService.save(playletUser);
|
||||
|
|
|
|||
|
|
@ -7,12 +7,6 @@
|
|||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<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">
|
||||
<label class="col-sm-3 control-label is-required">视频名称:</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
@ -76,6 +70,12 @@
|
|||
</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>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
|
|
|
|||
|
|
@ -82,11 +82,19 @@
|
|||
},
|
||||
{
|
||||
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',
|
||||
title: '连接地址'
|
||||
title: '连接地址',
|
||||
formatter: function(value) {
|
||||
if (value != null && value !== ''){return '<a target="_blank" href="' + value+ '" download="false">详情图片<a/>';}
|
||||
else {return '<a>无<a/>'}
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'releaseDate',
|
||||
|
|
|
|||
Loading…
Reference in New Issue