-
Notifications
You must be signed in to change notification settings - Fork 30
修复issue所提到的bug,重置niuniu数据库 #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
return nil | ||
} | ||
|
||
// TableFor 大写是为了防止数据操作哪里有问题留个保底可以在zbp的项目里直接改 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如何直接改,你的函数不是都在AnimeAPI了
return ErrNoNiuNiu | ||
} | ||
|
||
/* var n niuNiuManager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要在注释中放置无用代码,要不就写全,要不就删去。
return float64(rand.Intn(9)+1) + (float64(rand.Intn(100)) / 100) | ||
} | ||
|
||
func (db *model) getWordNiuNiu(gid, uid int64) (*userInfo, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以使用
type model struct {
sql gorm.DB
sync.RWMutex
}
的方式平替model
结构体并且不必大改接口。
FloatTech/ZeroBot-Plugin#1163