Merge branch 'dev' of git.kingsome.cn:server/game2006go into dev
This commit is contained in:
commit
8bef25d8c4
@ -34,8 +34,8 @@ exports.Attachment = class {
|
||||
|
||||
constructor() {
|
||||
this.fields = [
|
||||
['item_id', 0, '道具id'],
|
||||
['item_num', 0, '道具数量'],
|
||||
['itemid', 0, '道具id'],
|
||||
['itemnum', 0, '道具数量'],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"q5"
|
||||
"f5"
|
||||
"github.com/gin-gonic/gin"
|
||||
"main/common"
|
||||
@ -63,6 +64,14 @@ func (this *MailApi) AddMail(c *gin.Context) {
|
||||
mail.CreateTime = nowDaySeconds
|
||||
mail.ModifyTime = nowDaySeconds
|
||||
f5.GetApp().GetOrmDb(constant.MAIL_DB).Create(mail)
|
||||
{
|
||||
e := new(system.MailEvent)
|
||||
e.EventName = constant.EVENT_MAIL_UPDATE
|
||||
e.Param1 = q5.ToString(mail.MailId)
|
||||
e.CreateTime = nowDaySeconds
|
||||
e.ModifyTime = nowDaySeconds
|
||||
f5.GetApp().GetOrmDb(constant.MAIL_DB).Create(e)
|
||||
}
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"code": 0,
|
||||
"message": "",
|
||||
@ -111,6 +120,14 @@ func (this *MailApi) EditMail(c *gin.Context) {
|
||||
mail.CreateTime = nowDaySeconds
|
||||
mail.ModifyTime = nowDaySeconds
|
||||
f5.GetApp().GetOrmDb(constant.MAIL_DB).Save(mail)
|
||||
{
|
||||
e := new(system.MailEvent)
|
||||
e.EventName = constant.EVENT_MAIL_UPDATE
|
||||
e.Param1 = q5.ToString(mail.MailId)
|
||||
e.CreateTime = nowDaySeconds
|
||||
e.ModifyTime = nowDaySeconds
|
||||
f5.GetApp().GetOrmDb(constant.MAIL_DB).Create(e)
|
||||
}
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"code": 0,
|
||||
"message": "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user