商店模拟系统升级

This commit is contained in:
kongyuebin
2021-11-18 13:52:30 +08:00
parent cc55140103
commit 96413c3c16
5 changed files with 17 additions and 68 deletions

View File

@@ -11,18 +11,18 @@ package controllers
import (
"github.com/beego/beego/v2/core/logs"
beego "github.com/beego/beego/v2/server/web"
"github.com/beego/beego/v2/server/web"
"strconv"
"strings"
)
type PayController struct {
beego.Controller
web.Controller
}
func (c *PayController) Pay() {
orderNo := strings.TrimSpace(c.GetString("orderid"))
flash := beego.NewFlash()
flash := web.NewFlash()
if orderNo == "" {
flash.Error("订单号为空")
flash.Store(&c.Controller)