1
This commit is contained in:
parent
ceb6cead8c
commit
59b5839d5d
@ -7,7 +7,6 @@ import (
|
||||
"main/constant"
|
||||
"sync"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@ -101,11 +100,7 @@ func (this *mailMgr) loadGroupMembers() {
|
||||
}
|
||||
|
||||
func (this *mailMgr) CaGetMailList(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"code": 50014,
|
||||
"message": "未登录或非法访问",
|
||||
})
|
||||
/*
|
||||
hum := c.MustGet("hum").(common.Player)
|
||||
rspObj := struct {
|
||||
ErrCode int32 `json:"errcode"`
|
||||
ErrMsg string `json:"errmsg"`
|
||||
@ -122,7 +117,7 @@ func (this *mailMgr) CaGetMailList(c *gin.Context) {
|
||||
}
|
||||
return true
|
||||
})
|
||||
c.JSON(200, rspObj)*/
|
||||
c.JSON(200, rspObj)
|
||||
}
|
||||
|
||||
func (this *mailMgr) CaMarkMail(c *gin.Context) {
|
||||
|
@ -13,6 +13,7 @@ func CaAuth(c *gin.Context) {
|
||||
hum = GetPlayerMgr().ForceCreatePlayer(accountId, sessionId)
|
||||
}
|
||||
hum.Lock()
|
||||
c.Set("hum", hum)
|
||||
c.Next()
|
||||
hum.UnLock()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user