You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
936 B
Go

package players
import (
"context"
"joybuywork/internal/plugins/jsonm"
"joybuywork/internal/repository/cache"
"testing"
_ "joybuywork/test"
)
func TestSignBoard(t *testing.T) {
ctx := context.Background()
user, err := cache.NewFissionUser(ctx, 4840).FindById(284386073378832384)
if err != nil {
t.Error(err)
}
user.LangMark = "zh"
kg, err := NewSign(ctx, user)
if err != nil {
t.Error(err)
}
status, err := kg.SignBoard(0, "")
if err != nil {
t.Error(err)
}
t.Log(jsonm.MarshalToString(status))
}
func TestCycleCardSign(t *testing.T) {
ctx := context.Background()
user, err := cache.NewFissionUser(ctx, 4837).FindById(284267078566621184)
if err != nil {
t.Error(err)
}
user.LangMark = "zh"
kg, err := NewSign(ctx, user)
if err != nil {
t.Error(err)
}
status, reward, err := kg.SignIn(1754755200)
if err != nil {
t.Error(err)
}
t.Log(status)
t.Log(jsonm.MarshalToString(reward))
}