pass
This commit is contained in:
parent
e3f5baefda
commit
ef70b56c8d
|
@ -1,6 +1,7 @@
|
||||||
package controller
|
package controller
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"enterprise/common/config"
|
||||||
"enterprise/common/dao"
|
"enterprise/common/dao"
|
||||||
"enterprise/server/api"
|
"enterprise/server/api"
|
||||||
"enterprise/server/service"
|
"enterprise/server/service"
|
||||||
|
@ -24,6 +25,10 @@ func (q *Pay) Pay(ctx *gin.Context) {
|
||||||
var req api.PayReq
|
var req api.PayReq
|
||||||
session.CheckParamError(ctx.ShouldBindJSON(&req))
|
session.CheckParamError(ctx.ShouldBindJSON(&req))
|
||||||
|
|
||||||
|
if req.Password != corp.GetConfig().Password {
|
||||||
|
panic(config.ErrParam.New().Append("密码错误"))
|
||||||
|
}
|
||||||
|
|
||||||
service.NewPay().Pay(corp, &req)
|
service.NewPay().Pay(corp, &req)
|
||||||
ctx.JSON(http.StatusOK, session.NewRspOk())
|
ctx.JSON(http.StatusOK, session.NewRspOk())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue