fix:invitation_no

master
howell 3 years ago
parent 18a3dbf5f9
commit a1c001a793

@ -437,6 +437,8 @@ func MobileRegisterH5(c *gin.Context) {
var login user.Login
var info user.Information
info.InvitationNo = p.InvitationNo
// 开始添加用户
if err = registerUser.UserAdd(c, &login, &info, p.Mobile); err != nil {
back.Fail(c, "add error:"+err.Error())

@ -91,15 +91,17 @@ func SubmitWithdraw(c *gin.Context) {
}
tx := dbc.DB.Begin()
err := tx.Create(&user.Withdraw{
UserId: p.UserID,
UserName: userInfo.RealName,
Type: t,
Amount: p.Amount,
Alipay: p.Alipay,
BankAccount: p.BankAccount,
BankName: p.BankName,
AuditTime: formatime.NewSecondFrom(getNextTenOrTwentyFive()),
Status: user.UndoneWithdrawStatus,
UserId: p.UserID,
UserName: userInfo.RealName,
Type: t,
Amount: p.Amount,
Alipay: p.Alipay,
BankAccount: p.BankAccount,
BankName: p.BankName,
AuditTime: formatime.NewSecondFrom(getNextTenOrTwentyFive()),
Status: user.UndoneWithdrawStatus,
TaxFee: decimal.Zero,
ActualAmount: decimal.Zero,
}).Error
if err != nil {

@ -2,6 +2,7 @@ package user
import (
"github.com/golangkit/formatime"
"github.com/shopspring/decimal"
)
type Withdraw struct {
@ -18,10 +19,12 @@ type Withdraw struct {
DoneTime formatime.Second `gorm:"column:done_time" json:"doneTime"`
CreatedAt formatime.Second `gorm:"column:created_at" json:"created_at" form:"createdAt"`
WaitStatus int64
UserTrueName string `gorm:"-" json:"user_true_name"`
UserTrueNo string `gorm:"-" json:"user_true_no"`
UserPhone string `gorm:"-" json:"user_phone"`
FailReason string `gorm:"fail_reason" json:"failReason"`
UserTrueName string `gorm:"-" json:"user_true_name"`
UserTrueNo string `gorm:"-" json:"user_true_no"`
UserPhone string `gorm:"-" json:"user_phone"`
FailReason string `gorm:"fail_reason" json:"failReason"`
TaxFee decimal.Decimal `json:"tax_fee"`
ActualAmount decimal.Decimal `json:"actual_amount"`
}
const (

Loading…
Cancel
Save