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() {
|
constructor() {
|
||||||
this.fields = [
|
this.fields = [
|
||||||
['item_id', 0, '道具id'],
|
['itemid', 0, '道具id'],
|
||||||
['item_num', 0, '道具数量'],
|
['itemnum', 0, '道具数量'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package system
|
package system
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"q5"
|
||||||
"f5"
|
"f5"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"main/common"
|
"main/common"
|
||||||
@ -63,6 +64,14 @@ func (this *MailApi) AddMail(c *gin.Context) {
|
|||||||
mail.CreateTime = nowDaySeconds
|
mail.CreateTime = nowDaySeconds
|
||||||
mail.ModifyTime = nowDaySeconds
|
mail.ModifyTime = nowDaySeconds
|
||||||
f5.GetApp().GetOrmDb(constant.MAIL_DB).Create(mail)
|
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{
|
c.JSON(http.StatusOK, gin.H{
|
||||||
"code": 0,
|
"code": 0,
|
||||||
"message": "",
|
"message": "",
|
||||||
@ -111,6 +120,14 @@ func (this *MailApi) EditMail(c *gin.Context) {
|
|||||||
mail.CreateTime = nowDaySeconds
|
mail.CreateTime = nowDaySeconds
|
||||||
mail.ModifyTime = nowDaySeconds
|
mail.ModifyTime = nowDaySeconds
|
||||||
f5.GetApp().GetOrmDb(constant.MAIL_DB).Save(mail)
|
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{
|
c.JSON(http.StatusOK, gin.H{
|
||||||
"code": 0,
|
"code": 0,
|
||||||
"message": "",
|
"message": "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user