mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2026-04-03 23:44:13 +08:00
商店模拟系统升级
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user