fix
This commit is contained in:
@@ -32,7 +32,16 @@ func (m *FsGuestModel) GenerateGuestID(ctx context.Context, AccessSecret uint64)
|
||||
logx.Error(err)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
||||
uinfo := &FsUserInfo{
|
||||
Module: FsString("module"),
|
||||
UserId: FsInt64(0),
|
||||
GuestId: &record.GuestId,
|
||||
Metadata: FsBytes("{}"),
|
||||
Ctime: &now,
|
||||
Utime: &now,
|
||||
}
|
||||
return tx.Model(FsUserInfo{}).Create(uinfo).Error
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
@@ -36,6 +36,11 @@ func FsBool(v bool) *bool {
|
||||
return &v
|
||||
}
|
||||
|
||||
func FsBytes(v string) *[]byte {
|
||||
bs := []byte(v)
|
||||
return &bs
|
||||
}
|
||||
|
||||
// SubscriptionStatus 订阅状态
|
||||
type SubscriptionStatus struct {
|
||||
NotificationEmail struct {
|
||||
|
||||
Reference in New Issue
Block a user