-精简HTML结构,优化`account.html`,`apple-card/account.html`,和`t-mall-game/account.html`中iframe的布局。 - 调整CSS样式,以增强用户界面的一致性和可读性。 - 优化`account_history.html`中的表格和搜索栏的样式与对齐。 fix(controller): 修正新增控制器参数顺序 - 修正`addController.go`中的参数顺序,确保交易类型正确传递给服务层。 - 更新数据库插入操作,确保UUID正确分配给新记录,防止SQL错误。
30 lines
660 B
Go
30 lines
660 B
Go
package controllers
|
|
|
|
import (
|
|
"boss/internal/service"
|
|
"github.com/beego/beego/v2/server/web"
|
|
"strings"
|
|
)
|
|
|
|
type SendNotify struct {
|
|
web.Controller
|
|
}
|
|
|
|
func (c *SendNotify) SendNotifyToMerchant() {
|
|
bankOrderId := strings.TrimSpace(c.GetString("bankOrderId"))
|
|
se := new(service.SendNotifyMerchantService)
|
|
keyDataJSON := se.SendNotifyToMerchant(bankOrderId)
|
|
|
|
c.Data["json"] = keyDataJSON
|
|
_ = c.ServeJSON()
|
|
}
|
|
|
|
func (c *SendNotify) SelfSendNotify() {
|
|
bankOrderId := strings.TrimSpace(c.GetString("bankOrderId"))
|
|
|
|
se := new(service.SendNotifyMerchantService)
|
|
keyDataJSON := se.SelfSendNotify(bankOrderId)
|
|
c.Data["json"] = keyDataJSON
|
|
_ = c.ServeJSON()
|
|
}
|