update
This commit is contained in:
@@ -143,6 +143,7 @@ func (p DefParty) userUploadFile() web_iris.Party {
|
||||
index.Post(AuthBase+"/userUploadFile", func(ctx *context.Context) {
|
||||
headerInfo := GetHeaderBaseInfo(ctx)
|
||||
fileName := CtxFileUpload(ctx)
|
||||
fileName = web.CONFIG.System.Domain + "/static/uploads/" + fileName
|
||||
Success(ctx, headerInfo, UserUploadFileResponse{fileName})
|
||||
})
|
||||
}}
|
||||
|
||||
@@ -17,6 +17,7 @@ var Root = "/pet-house"
|
||||
var ExcludeBase = "/static"
|
||||
var ExcludeBase1 = "/debug"
|
||||
var ExcludeBase2 = "/admin"
|
||||
var ExcludeBase3 = "/system"
|
||||
|
||||
var frontExcludes = [...]string{
|
||||
Root + AuthBase + "/login",
|
||||
@@ -61,6 +62,10 @@ func FrontAuth(ctx *context.Context) {
|
||||
ctx.Next()
|
||||
return
|
||||
}
|
||||
if strings.Contains(ctx.Path(), ExcludeBase3) {
|
||||
ctx.Next()
|
||||
return
|
||||
}
|
||||
frontExcludesStr := strings.Join(frontExcludes[:], ",")
|
||||
if strings.Contains(frontExcludesStr, ctx.Path()) {
|
||||
ctx.Next()
|
||||
|
||||
@@ -62,7 +62,7 @@ func (p DefParty) orderCreate() web_iris.Party {
|
||||
orderMain := models.OrderMain{
|
||||
OrderId: orderId,
|
||||
Uid: headerBaseInfo.Uid,
|
||||
Status: 0,
|
||||
Status: 1,
|
||||
ServiceTime: orderCreateRequest.ServiceTime,
|
||||
ServiceAddrId: orderCreateRequest.ServiceAddrId,
|
||||
ServiceRemark: "",
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ func (p DefParty) petList() web_iris.Party {
|
||||
}
|
||||
|
||||
type PetInfoRequest struct {
|
||||
Id int64
|
||||
Id int64 `json:"id"`
|
||||
}
|
||||
|
||||
type PetInfoResponse struct {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
"session-timeout": 60,
|
||||
"system": {
|
||||
"addr": "127.0.0.1:18005",
|
||||
"domain": "http://49.232.45.133:18005",
|
||||
"db-type": "mysql",
|
||||
"level": "debug",
|
||||
"time-format": "2006-01-02 15:04:05",
|
||||
|
||||
Reference in New Issue
Block a user