diff --git a/src/implement/user_wallet_implement.go b/src/implement/user_wallet_implement.go index 891ccc8..67a1063 100644 --- a/src/implement/user_wallet_implement.go +++ b/src/implement/user_wallet_implement.go @@ -1,4 +1,4 @@ -package implement +package implement import ( "code.fnuoos.com/EggPlanet/egg_models.git/src/dao" @@ -7,6 +7,7 @@ import ( zhios_order_relate_logx "code.fnuoos.com/EggPlanet/egg_models.git/utils/logx" "fmt" "reflect" + "time" "xorm.io/xorm" ) @@ -29,6 +30,7 @@ func (u UserWalletDb) GetUserVirtualWallet(uid int64) (*model.UserWallet, error) } else { userWallet.Amount = "0" userWallet.Uid = uid + userWallet.CreateAt = time.Now().Format("2006-01-02 15:04:05") one, err1 := u.Db.InsertOne(&userWallet) if err1 != nil || one == 0 { return nil, err1