前台,订单查询fix
This commit is contained in:
parent
9a413afa51
commit
78380d3a70
|
@ -19,8 +19,12 @@ func ApiRes(c *gin.Context, data interface{}, code int, msg ...string) {
|
|||
var logId int64
|
||||
var responseData interface{}
|
||||
var message string
|
||||
var appCheckInfo *services.AppCheck
|
||||
originData := "{}"
|
||||
appCheckInfo := GetAppCheckInfo(c).(*services.AppCheck)
|
||||
appInfo := GetAppCheckInfo(c)
|
||||
if appInfo != nil {
|
||||
appCheckInfo = appInfo.(*services.AppCheck)
|
||||
}
|
||||
// 空数据
|
||||
if utils.IsNil(data) {
|
||||
data = struct{}{}
|
||||
|
|
|
@ -71,7 +71,7 @@ func QueryOrder(c *gin.Context) {
|
|||
cond := builder.NewCond()
|
||||
cond = cond.And(builder.Eq{"out_trade_no": order.OutTradeNo}, builder.Eq{"app_id": order.AppId})
|
||||
_, code := services.OrderFindOne(&order, cond)
|
||||
if code != errorcode.OrdersExist {
|
||||
if code != errorcode.Success {
|
||||
controllers.ApiRes(c, nil, code)
|
||||
return
|
||||
}
|
||||
|
|
|
@ -12,5 +12,6 @@ var FrontRequestMap = map[string]func() (validForm interface{}, isSaveLog bool){
|
|||
}
|
||||
|
||||
var FrontRequestMapBeforeDecrypt = map[string]func() interface{}{
|
||||
common.FRONT_V1 + "/pay/url": func() interface{} { return new(front.RequestBody) },
|
||||
common.FRONT_V1 + "/pay/url": func() interface{} { return new(front.RequestBody) },
|
||||
common.FRONT_V1 + "/pay/query": func() interface{} { return new(front.RequestBody) },
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue