This commit is contained in:
jiangyong27 2025-03-11 11:03:12 +08:00
parent e3f5baefda
commit ef70b56c8d
1 changed files with 5 additions and 0 deletions

View File

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