generated from root/miduo_server
公告发送优化
parent
6e294486a1
commit
795830bb57
|
@ -29,6 +29,7 @@ public class SeqUtils {
|
||||||
CAutoIncrement sequence = mongoTemplate.findAndModify(query, update, CAutoIncrement.class);
|
CAutoIncrement sequence = mongoTemplate.findAndModify(query, update, CAutoIncrement.class);
|
||||||
if (sequence == null){
|
if (sequence == null){
|
||||||
saveSeq(name,defaultInt);
|
saveSeq(name,defaultInt);
|
||||||
|
mongoTemplate.findAndModify(query, update, CAutoIncrement.class);
|
||||||
cnt= defaultInt;
|
cnt= defaultInt;
|
||||||
}else {
|
}else {
|
||||||
cnt = sequence.getCnt();
|
cnt = sequence.getCnt();
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
<span class="c-red">*</span>
|
<span class="c-red">*</span>
|
||||||
游戏公告内容:</label>
|
游戏公告内容:</label>
|
||||||
<div class="formControls col-xs-8 col-sm-9">
|
<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>
|
<span class="ROLEID"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -141,7 +141,7 @@ $('#updataSYSNotice').load(function () {
|
||||||
function sendCheck() {
|
function sendCheck() {
|
||||||
var erroCode = $('.SERVERID');
|
var erroCode = $('.SERVERID');
|
||||||
var title1 = $("input[name='title1']").val();
|
var title1 = $("input[name='title1']").val();
|
||||||
var content1 = $("input[name='content1']").val();
|
var content1 = document.getElementById("summary").value;
|
||||||
|
|
||||||
if (title1 === '' || title1 == null) {
|
if (title1 === '' || title1 == null) {
|
||||||
erroCode.html('<span style="color: red; ">游戏公告标题不能为空!</span>');
|
erroCode.html('<span style="color: red; ">游戏公告标题不能为空!</span>');
|
||||||
|
|
Loading…
Reference in New Issue