公告发送优化

master
zhangshanxue 2020-06-09 09:53:00 +08:00
parent 6e294486a1
commit 795830bb57
2 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ public class SeqUtils {
CAutoIncrement sequence = mongoTemplate.findAndModify(query, update, CAutoIncrement.class);
if (sequence == null){
saveSeq(name,defaultInt);
mongoTemplate.findAndModify(query, update, CAutoIncrement.class);
cnt= defaultInt;
}else {
cnt = sequence.getCnt();

View File

@ -55,7 +55,7 @@
<span class="c-red">*</span>
游戏公告内容:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" name="content1" placeholder="" value="" class="input-text"/>
<textarea rows="20" cols="150" wrap="soft" id="content1" name="content1"></textarea>
<span class="ROLEID"></span>
</div>
</div>
@ -141,7 +141,7 @@ $('#updataSYSNotice').load(function () {
function sendCheck() {
var erroCode = $('.SERVERID');
var title1 = $("input[name='title1']").val();
var content1 = $("input[name='content1']").val();
var content1 = document.getElementById("summary").value;
if (title1 === '' || title1 == null) {
erroCode.html('<span style="color: red; ">游戏公告标题不能为空!</span>');