Compare commits
15 Commits
00d4f328c7
...
aaf417c9fe
| Author | SHA1 | Date |
|---|---|---|
|
|
aaf417c9fe | |
|
|
f1b86a3913 | |
|
|
9906c0fb80 | |
|
|
46ad7ea75f | |
|
|
949e6f89e3 | |
|
|
fb02fa630e | |
|
|
0f1f8a03c2 | |
|
|
1d89a8c36e | |
|
|
b52f84d182 | |
|
|
e686334c57 | |
|
|
b497bd103a | |
|
|
62f31c2460 | |
|
|
68e84e6233 | |
|
|
f9605e9f26 | |
|
|
f47cddc7c1 |
|
|
@ -130,6 +130,7 @@ func TsToStrTime(tc int64) string {
|
||||||
//return time.Now().Format("2018-07-02 19:14:00")
|
//return time.Now().Format("2018-07-02 19:14:00")
|
||||||
return time.Unix(tc, 0).Format("2006-01-02 15:04:05")
|
return time.Unix(tc, 0).Format("2006-01-02 15:04:05")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TsToStrDateTime(tc int64) string {
|
func TsToStrDateTime(tc int64) string {
|
||||||
//return time.Now().Format("2018-07-02 19:14:00")
|
//return time.Now().Format("2018-07-02 19:14:00")
|
||||||
return time.Unix(tc, 0).Format("2006-01-02")
|
return time.Unix(tc, 0).Format("2006-01-02")
|
||||||
|
|
@ -198,3 +199,8 @@ func HMSToTime(h, m, s int) time.Time {
|
||||||
func IntToTime(n int) time.Time {
|
func IntToTime(n int) time.Time {
|
||||||
return HMSToTime(n/10000, n%10000/100, n%100)
|
return HMSToTime(n/10000, n%10000/100, n%100)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func StrTimeToTime(s string) time.Time {
|
||||||
|
t, _ := time.ParseInLocation("2006-01-02 15:04:05", s, time.Local)
|
||||||
|
return t
|
||||||
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -71,7 +71,7 @@
|
||||||
"Name": "十三张(四人场)",
|
"Name": "十三张(四人场)",
|
||||||
"GameId": 211,
|
"GameId": 211,
|
||||||
"Params": [
|
"Params": [
|
||||||
4,
|
0,
|
||||||
0,
|
0,
|
||||||
30,
|
30,
|
||||||
50,
|
50,
|
||||||
|
|
@ -84,7 +84,7 @@
|
||||||
"Name": "十三张(八人场)",
|
"Name": "十三张(八人场)",
|
||||||
"GameId": 212,
|
"GameId": 212,
|
||||||
"Params": [
|
"Params": [
|
||||||
8,
|
1,
|
||||||
0,
|
0,
|
||||||
30,
|
30,
|
||||||
50,
|
50,
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
"Name": "十三张(自由场经典场)",
|
"Name": "十三张(自由场经典场)",
|
||||||
"GameId": 213,
|
"GameId": 213,
|
||||||
"Params": [
|
"Params": [
|
||||||
8,
|
1,
|
||||||
0,
|
0,
|
||||||
30,
|
30,
|
||||||
50,
|
50,
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
"Name": "十三张(自由场癞子场)",
|
"Name": "十三张(自由场癞子场)",
|
||||||
"GameId": 214,
|
"GameId": 214,
|
||||||
"Params": [
|
"Params": [
|
||||||
8,
|
1,
|
||||||
0,
|
0,
|
||||||
30,
|
30,
|
||||||
50,
|
50,
|
||||||
|
|
|
||||||
|
|
@ -1,312 +0,0 @@
|
||||||
// --------------------------------------------------------------------------------------------
|
|
||||||
// The following code is automatically generated by the mongo-dao-generator tool.
|
|
||||||
// Please do not modify this code manually to avoid being overwritten in the next generation.
|
|
||||||
// For more tool details, please click the link to view https://github.com/dobyte/mongo-dao-generator
|
|
||||||
// --------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
package internal
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"errors"
|
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
|
||||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
|
||||||
"go.mongodb.org/mongo-driver/mongo/options"
|
|
||||||
modelpkg "mongo.games.com/game/db/model"
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
type UserFilterFunc func(cols *UserColumns) interface{}
|
|
||||||
type UserUpdateFunc func(cols *UserColumns) interface{}
|
|
||||||
type UserPipelineFunc func(cols *UserColumns) interface{}
|
|
||||||
type UserCountOptionsFunc func(cols *UserColumns) *options.CountOptions
|
|
||||||
type UserAggregateOptionsFunc func(cols *UserColumns) *options.AggregateOptions
|
|
||||||
type UserFindOneOptionsFunc func(cols *UserColumns) *options.FindOneOptions
|
|
||||||
type UserFindManyOptionsFunc func(cols *UserColumns) *options.FindOptions
|
|
||||||
type UserUpdateOptionsFunc func(cols *UserColumns) *options.UpdateOptions
|
|
||||||
type UserDeleteOptionsFunc func(cols *UserColumns) *options.DeleteOptions
|
|
||||||
type UserInsertOneOptionsFunc func(cols *UserColumns) *options.InsertOneOptions
|
|
||||||
type UserInsertManyOptionsFunc func(cols *UserColumns) *options.InsertManyOptions
|
|
||||||
|
|
||||||
type User struct {
|
|
||||||
Columns *UserColumns
|
|
||||||
Database *mongo.Database
|
|
||||||
Collection *mongo.Collection
|
|
||||||
}
|
|
||||||
|
|
||||||
type UserColumns struct {
|
|
||||||
ID string
|
|
||||||
Account string // 用户账号
|
|
||||||
Password string // 用户密码
|
|
||||||
Salt string // 密码
|
|
||||||
Mobile string // 用户手机
|
|
||||||
Email string // 用户邮箱
|
|
||||||
Nickname string // 用户昵称
|
|
||||||
Signature string // 用户签名
|
|
||||||
Level string // 用户等级
|
|
||||||
Experience string // 用户经验
|
|
||||||
Coin string // 用户金币
|
|
||||||
DeviceID string // 设备ID
|
|
||||||
RegisterIP string // 注册IP
|
|
||||||
RegisterTime string // 注册时间
|
|
||||||
LastLoginIP string // 最近登录IP
|
|
||||||
LastLoginTime string // 最近登录时间
|
|
||||||
}
|
|
||||||
|
|
||||||
var userColumns = &UserColumns{
|
|
||||||
ID: "_id",
|
|
||||||
Account: "account", // 用户账号
|
|
||||||
Password: "password", // 用户密码
|
|
||||||
Salt: "salt", // 密码
|
|
||||||
Mobile: "mobile", // 用户手机
|
|
||||||
Email: "email", // 用户邮箱
|
|
||||||
Nickname: "nickname", // 用户昵称
|
|
||||||
Signature: "signature", // 用户签名
|
|
||||||
Level: "level", // 用户等级
|
|
||||||
Experience: "experience", // 用户经验
|
|
||||||
Coin: "coin", // 用户金币
|
|
||||||
DeviceID: "device_id", // 设备ID
|
|
||||||
RegisterIP: "register_ip", // 注册IP
|
|
||||||
RegisterTime: "register_time", // 注册时间
|
|
||||||
LastLoginIP: "last_login_ip", // 最近登录IP
|
|
||||||
LastLoginTime: "last_login_time", // 最近登录时间
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewUser(db *mongo.Database) *User {
|
|
||||||
return &User{
|
|
||||||
Columns: userColumns,
|
|
||||||
Database: db,
|
|
||||||
Collection: db.Collection("user"),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Count returns the number of documents in the collection.
|
|
||||||
func (dao *User) Count(ctx context.Context, filterFunc UserFilterFunc, optionsFunc ...UserCountOptionsFunc) (int64, error) {
|
|
||||||
var (
|
|
||||||
opts *options.CountOptions
|
|
||||||
filter = filterFunc(dao.Columns)
|
|
||||||
)
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.Collection.CountDocuments(ctx, filter, opts)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Aggregate executes an aggregate command against the collection and returns a cursor over the resulting documents.
|
|
||||||
func (dao *User) Aggregate(ctx context.Context, pipelineFunc UserPipelineFunc, optionsFunc ...UserAggregateOptionsFunc) (*mongo.Cursor, error) {
|
|
||||||
var (
|
|
||||||
opts *options.AggregateOptions
|
|
||||||
pipeline = pipelineFunc(dao.Columns)
|
|
||||||
)
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.Collection.Aggregate(ctx, pipeline, opts)
|
|
||||||
}
|
|
||||||
|
|
||||||
// InsertOne executes an insert command to insert a single document into the collection.
|
|
||||||
func (dao *User) InsertOne(ctx context.Context, model *modelpkg.User, optionsFunc ...UserInsertOneOptionsFunc) (*mongo.InsertOneResult, error) {
|
|
||||||
if model == nil {
|
|
||||||
return nil, errors.New("model is nil")
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := dao.autofill(ctx, model); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
var opts *options.InsertOneOptions
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.Collection.InsertOne(ctx, model, opts)
|
|
||||||
}
|
|
||||||
|
|
||||||
// InsertMany executes an insert command to insert multiple documents into the collection.
|
|
||||||
func (dao *User) InsertMany(ctx context.Context, models []*modelpkg.User, optionsFunc ...UserInsertManyOptionsFunc) (*mongo.InsertManyResult, error) {
|
|
||||||
if len(models) == 0 {
|
|
||||||
return nil, errors.New("models is empty")
|
|
||||||
}
|
|
||||||
|
|
||||||
documents := make([]interface{}, 0, len(models))
|
|
||||||
for i := range models {
|
|
||||||
model := models[i]
|
|
||||||
if err := dao.autofill(ctx, model); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
documents = append(documents, model)
|
|
||||||
}
|
|
||||||
|
|
||||||
var opts *options.InsertManyOptions
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.Collection.InsertMany(ctx, documents, opts)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateOne executes an update command to update at most one document in the collection.
|
|
||||||
func (dao *User) UpdateOne(ctx context.Context, filterFunc UserFilterFunc, updateFunc UserUpdateFunc, optionsFunc ...UserUpdateOptionsFunc) (*mongo.UpdateResult, error) {
|
|
||||||
var (
|
|
||||||
opts *options.UpdateOptions
|
|
||||||
filter = filterFunc(dao.Columns)
|
|
||||||
update = updateFunc(dao.Columns)
|
|
||||||
)
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.Collection.UpdateOne(ctx, filter, update, opts)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateOneByID executes an update command to update at most one document in the collection.
|
|
||||||
func (dao *User) UpdateOneByID(ctx context.Context, id string, updateFunc UserUpdateFunc, optionsFunc ...UserUpdateOptionsFunc) (*mongo.UpdateResult, error) {
|
|
||||||
objectID, err := primitive.ObjectIDFromHex(id)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.UpdateOne(ctx, func(cols *UserColumns) interface{} {
|
|
||||||
return bson.M{"_id": objectID}
|
|
||||||
}, updateFunc, optionsFunc...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateMany executes an update command to update documents in the collection.
|
|
||||||
func (dao *User) UpdateMany(ctx context.Context, filterFunc UserFilterFunc, updateFunc UserUpdateFunc, optionsFunc ...UserUpdateOptionsFunc) (*mongo.UpdateResult, error) {
|
|
||||||
var (
|
|
||||||
opts *options.UpdateOptions
|
|
||||||
filter = filterFunc(dao.Columns)
|
|
||||||
update = updateFunc(dao.Columns)
|
|
||||||
)
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.Collection.UpdateMany(ctx, filter, update, opts)
|
|
||||||
}
|
|
||||||
|
|
||||||
// FindOne executes a find command and returns a model for one document in the collection.
|
|
||||||
func (dao *User) FindOne(ctx context.Context, filterFunc UserFilterFunc, optionsFunc ...UserFindOneOptionsFunc) (*modelpkg.User, error) {
|
|
||||||
var (
|
|
||||||
opts *options.FindOneOptions
|
|
||||||
model = &modelpkg.User{}
|
|
||||||
filter = filterFunc(dao.Columns)
|
|
||||||
)
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
err := dao.Collection.FindOne(ctx, filter, opts).Decode(model)
|
|
||||||
if err != nil {
|
|
||||||
if err == mongo.ErrNoDocuments {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return model, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// FindOneByID executes a find command and returns a model for one document in the collection.
|
|
||||||
func (dao *User) FindOneByID(ctx context.Context, id string, optionsFunc ...UserFindOneOptionsFunc) (*modelpkg.User, error) {
|
|
||||||
objectID, err := primitive.ObjectIDFromHex(id)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.FindOne(ctx, func(cols *UserColumns) interface{} {
|
|
||||||
return bson.M{"_id": objectID}
|
|
||||||
}, optionsFunc...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// FindMany executes a find command and returns many models the matching documents in the collection.
|
|
||||||
func (dao *User) FindMany(ctx context.Context, filterFunc UserFilterFunc, optionsFunc ...UserFindManyOptionsFunc) ([]*modelpkg.User, error) {
|
|
||||||
var (
|
|
||||||
opts *options.FindOptions
|
|
||||||
filter = filterFunc(dao.Columns)
|
|
||||||
)
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
cur, err := dao.Collection.Find(ctx, filter, opts)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
models := make([]*modelpkg.User, 0)
|
|
||||||
|
|
||||||
if err = cur.All(ctx, &models); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return models, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteOne executes a delete command to delete at most one document from the collection.
|
|
||||||
func (dao *User) DeleteOne(ctx context.Context, filterFunc UserFilterFunc, optionsFunc ...UserDeleteOptionsFunc) (*mongo.DeleteResult, error) {
|
|
||||||
var (
|
|
||||||
opts *options.DeleteOptions
|
|
||||||
filter = filterFunc(dao.Columns)
|
|
||||||
)
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.Collection.DeleteOne(ctx, filter, opts)
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteOneByID executes a delete command to delete at most one document from the collection.
|
|
||||||
func (dao *User) DeleteOneByID(ctx context.Context, id string, optionsFunc ...UserDeleteOptionsFunc) (*mongo.DeleteResult, error) {
|
|
||||||
objectID, err := primitive.ObjectIDFromHex(id)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.DeleteOne(ctx, func(cols *UserColumns) interface{} {
|
|
||||||
return bson.M{"_id": objectID}
|
|
||||||
}, optionsFunc...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteMany executes a delete command to delete documents from the collection.
|
|
||||||
func (dao *User) DeleteMany(ctx context.Context, filterFunc UserFilterFunc, optionsFunc ...UserDeleteOptionsFunc) (*mongo.DeleteResult, error) {
|
|
||||||
var (
|
|
||||||
opts *options.DeleteOptions
|
|
||||||
filter = filterFunc(dao.Columns)
|
|
||||||
)
|
|
||||||
|
|
||||||
if len(optionsFunc) > 0 {
|
|
||||||
opts = optionsFunc[0](dao.Columns)
|
|
||||||
}
|
|
||||||
|
|
||||||
return dao.Collection.DeleteMany(ctx, filter, opts)
|
|
||||||
}
|
|
||||||
|
|
||||||
// autofill when inserting data
|
|
||||||
func (dao *User) autofill(ctx context.Context, model *modelpkg.User) error {
|
|
||||||
if model.ID.IsZero() {
|
|
||||||
model.ID = primitive.NewObjectID()
|
|
||||||
}
|
|
||||||
|
|
||||||
if model.RegisterTime == 0 {
|
|
||||||
model.RegisterTime = primitive.NewDateTimeFromTime(time.Now())
|
|
||||||
}
|
|
||||||
|
|
||||||
if model.LastLoginTime == 0 {
|
|
||||||
model.LastLoginTime = primitive.NewDateTimeFromTime(time.Now())
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
package dao
|
|
||||||
|
|
||||||
import (
|
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
|
||||||
"mongo.games.com/game/db/dao/internal"
|
|
||||||
)
|
|
||||||
|
|
||||||
type UserColumns = internal.UserColumns
|
|
||||||
|
|
||||||
type User struct {
|
|
||||||
*internal.User
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewUser(db *mongo.Database, c *mongo.Collection) *User {
|
|
||||||
v := internal.NewUser(nil)
|
|
||||||
v.Database = db
|
|
||||||
v.Collection = c
|
|
||||||
panic("创建索引")
|
|
||||||
//c.Indexes().CreateOne()
|
|
||||||
//c.Indexes().CreateMany()
|
|
||||||
return &User{User: v}
|
|
||||||
}
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
mongoctl -model-dir=./model -model-names=User -dao-dir=./dao
|
|
||||||
protoc --proto_path=./proto --go_out=../../../ --go-grpc_out=../../../ ./proto/*.proto
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
package model
|
|
||||||
|
|
||||||
import (
|
|
||||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
||||||
)
|
|
||||||
|
|
||||||
//go:generate mongoctl -model-dir=. -model-names=User -dao-dir=../dao
|
|
||||||
type User struct {
|
|
||||||
ID primitive.ObjectID `bson:"_id" gen:"autoFill"`
|
|
||||||
Account string `bson:"account"` // 用户账号
|
|
||||||
Password string `bson:"password"` // 用户密码
|
|
||||||
Salt string `bson:"salt"` // 密码
|
|
||||||
Mobile string `bson:"mobile"` // 用户手机
|
|
||||||
Email string `bson:"email"` // 用户邮箱
|
|
||||||
Nickname string `bson:"nickname"` // 用户昵称
|
|
||||||
Signature string `bson:"signature"` // 用户签名
|
|
||||||
Level int `bson:"level"` // 用户等级
|
|
||||||
Experience int `bson:"experience"` // 用户经验
|
|
||||||
Coin int `bson:"coin"` // 用户金币
|
|
||||||
DeviceID string `bson:"device_id"` // 设备ID
|
|
||||||
RegisterIP string `bson:"register_ip"` // 注册IP
|
|
||||||
RegisterTime primitive.DateTime `bson:"register_time" gen:"autoFill"` // 注册时间
|
|
||||||
LastLoginIP string `bson:"last_login_ip"` // 最近登录IP
|
|
||||||
LastLoginTime primitive.DateTime `bson:"last_login_time" gen:"autoFill"` // 最近登录时间
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
syntax = "proto3";
|
|
||||||
package public;
|
|
||||||
option go_package = "mongo.games.com/game/db/proto/public";
|
|
||||||
|
|
||||||
// 通用数据结构
|
|
||||||
|
|
||||||
message Item {
|
|
||||||
int32 Id = 1; // id
|
|
||||||
int64 Num = 2; // 数量
|
|
||||||
}
|
|
||||||
|
|
@ -1,151 +0,0 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.27.1-devel
|
|
||||||
// protoc v3.19.4
|
|
||||||
// source: public.proto
|
|
||||||
|
|
||||||
package public
|
|
||||||
|
|
||||||
import (
|
|
||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
||||||
reflect "reflect"
|
|
||||||
sync "sync"
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
|
||||||
// Verify that this generated code is sufficiently up-to-date.
|
|
||||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
||||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
||||||
)
|
|
||||||
|
|
||||||
type Item struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` // id
|
|
||||||
Num int64 `protobuf:"varint,2,opt,name=Num,proto3" json:"Num,omitempty"` // 数量
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *Item) Reset() {
|
|
||||||
*x = Item{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_public_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *Item) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*Item) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *Item) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_public_proto_msgTypes[0]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use Item.ProtoReflect.Descriptor instead.
|
|
||||||
func (*Item) Descriptor() ([]byte, []int) {
|
|
||||||
return file_public_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *Item) GetId() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Id
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *Item) GetNum() int64 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Num
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
var File_public_proto protoreflect.FileDescriptor
|
|
||||||
|
|
||||||
var file_public_proto_rawDesc = []byte{
|
|
||||||
0x0a, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
|
|
||||||
0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x22, 0x28, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e,
|
|
||||||
0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x10,
|
|
||||||
0x0a, 0x03, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x4e, 0x75, 0x6d,
|
|
||||||
0x42, 0x26, 0x5a, 0x24, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e,
|
|
||||||
0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x64, 0x62, 0x2f, 0x70, 0x72, 0x6f, 0x74,
|
|
||||||
0x6f, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
file_public_proto_rawDescOnce sync.Once
|
|
||||||
file_public_proto_rawDescData = file_public_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_public_proto_rawDescGZIP() []byte {
|
|
||||||
file_public_proto_rawDescOnce.Do(func() {
|
|
||||||
file_public_proto_rawDescData = protoimpl.X.CompressGZIP(file_public_proto_rawDescData)
|
|
||||||
})
|
|
||||||
return file_public_proto_rawDescData
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_public_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
||||||
var file_public_proto_goTypes = []interface{}{
|
|
||||||
(*Item)(nil), // 0: public.Item
|
|
||||||
}
|
|
||||||
var file_public_proto_depIdxs = []int32{
|
|
||||||
0, // [0:0] is the sub-list for method output_type
|
|
||||||
0, // [0:0] is the sub-list for method input_type
|
|
||||||
0, // [0:0] is the sub-list for extension type_name
|
|
||||||
0, // [0:0] is the sub-list for extension extendee
|
|
||||||
0, // [0:0] is the sub-list for field type_name
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() { file_public_proto_init() }
|
|
||||||
func file_public_proto_init() {
|
|
||||||
if File_public_proto != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_public_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*Item); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
type x struct{}
|
|
||||||
out := protoimpl.TypeBuilder{
|
|
||||||
File: protoimpl.DescBuilder{
|
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
||||||
RawDescriptor: file_public_proto_rawDesc,
|
|
||||||
NumEnums: 0,
|
|
||||||
NumMessages: 1,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 0,
|
|
||||||
},
|
|
||||||
GoTypes: file_public_proto_goTypes,
|
|
||||||
DependencyIndexes: file_public_proto_depIdxs,
|
|
||||||
MessageInfos: file_public_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_public_proto = out.File
|
|
||||||
file_public_proto_rawDesc = nil
|
|
||||||
file_public_proto_goTypes = nil
|
|
||||||
file_public_proto_depIdxs = nil
|
|
||||||
}
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
syntax = "proto3";
|
|
||||||
package user;
|
|
||||||
option go_package = "mongo.games.com/game/db/proto/user";
|
|
||||||
|
|
||||||
import "public.proto";
|
|
||||||
|
|
||||||
service UserServer {
|
|
||||||
rpc Save (SaveReq) returns (SaveRsp){}
|
|
||||||
}
|
|
||||||
|
|
||||||
//客户端发送给服务端
|
|
||||||
message SaveReq {
|
|
||||||
string Platform = 1;
|
|
||||||
string name = 2;
|
|
||||||
repeated public.Item Items = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
//服务端返回给客户端
|
|
||||||
message SaveRsp {
|
|
||||||
string msg = 1 ;
|
|
||||||
}
|
|
||||||
|
|
@ -1,235 +0,0 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.27.1-devel
|
|
||||||
// protoc v3.19.4
|
|
||||||
// source: user.proto
|
|
||||||
|
|
||||||
package user
|
|
||||||
|
|
||||||
import (
|
|
||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
||||||
public "mongo.games.com/game/db/proto/public"
|
|
||||||
reflect "reflect"
|
|
||||||
sync "sync"
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
|
||||||
// Verify that this generated code is sufficiently up-to-date.
|
|
||||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
||||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
||||||
)
|
|
||||||
|
|
||||||
//客户端发送给服务端
|
|
||||||
type SaveReq struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Platform string `protobuf:"bytes,1,opt,name=Platform,proto3" json:"Platform,omitempty"`
|
|
||||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
||||||
Items []*public.Item `protobuf:"bytes,3,rep,name=Items,proto3" json:"Items,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SaveReq) Reset() {
|
|
||||||
*x = SaveReq{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_user_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SaveReq) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*SaveReq) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *SaveReq) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_user_proto_msgTypes[0]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use SaveReq.ProtoReflect.Descriptor instead.
|
|
||||||
func (*SaveReq) Descriptor() ([]byte, []int) {
|
|
||||||
return file_user_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SaveReq) GetPlatform() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.Platform
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SaveReq) GetName() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.Name
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SaveReq) GetItems() []*public.Item {
|
|
||||||
if x != nil {
|
|
||||||
return x.Items
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
//服务端返回给客户端
|
|
||||||
type SaveRsp struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SaveRsp) Reset() {
|
|
||||||
*x = SaveRsp{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_user_proto_msgTypes[1]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SaveRsp) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*SaveRsp) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *SaveRsp) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_user_proto_msgTypes[1]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use SaveRsp.ProtoReflect.Descriptor instead.
|
|
||||||
func (*SaveRsp) Descriptor() ([]byte, []int) {
|
|
||||||
return file_user_proto_rawDescGZIP(), []int{1}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SaveRsp) GetMsg() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.Msg
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
var File_user_proto protoreflect.FileDescriptor
|
|
||||||
|
|
||||||
var file_user_proto_rawDesc = []byte{
|
|
||||||
0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x75, 0x73,
|
|
||||||
0x65, 0x72, 0x1a, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
||||||
0x22, 0x5d, 0x0a, 0x07, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x50,
|
|
||||||
0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50,
|
|
||||||
0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
|
||||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x05, 0x49,
|
|
||||||
0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x75, 0x62,
|
|
||||||
0x6c, 0x69, 0x63, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22,
|
|
||||||
0x1b, 0x0a, 0x07, 0x53, 0x61, 0x76, 0x65, 0x52, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73,
|
|
||||||
0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x32, 0x34, 0x0a, 0x0a,
|
|
||||||
0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x04, 0x53, 0x61,
|
|
||||||
0x76, 0x65, 0x12, 0x0d, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65,
|
|
||||||
0x71, 0x1a, 0x0d, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x73, 0x70,
|
|
||||||
0x22, 0x00, 0x42, 0x24, 0x5a, 0x22, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65,
|
|
||||||
0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x64, 0x62, 0x2f, 0x70, 0x72,
|
|
||||||
0x6f, 0x74, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
file_user_proto_rawDescOnce sync.Once
|
|
||||||
file_user_proto_rawDescData = file_user_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_user_proto_rawDescGZIP() []byte {
|
|
||||||
file_user_proto_rawDescOnce.Do(func() {
|
|
||||||
file_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_proto_rawDescData)
|
|
||||||
})
|
|
||||||
return file_user_proto_rawDescData
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
||||||
var file_user_proto_goTypes = []interface{}{
|
|
||||||
(*SaveReq)(nil), // 0: user.SaveReq
|
|
||||||
(*SaveRsp)(nil), // 1: user.SaveRsp
|
|
||||||
(*public.Item)(nil), // 2: public.Item
|
|
||||||
}
|
|
||||||
var file_user_proto_depIdxs = []int32{
|
|
||||||
2, // 0: user.SaveReq.Items:type_name -> public.Item
|
|
||||||
0, // 1: user.UserServer.Save:input_type -> user.SaveReq
|
|
||||||
1, // 2: user.UserServer.Save:output_type -> user.SaveRsp
|
|
||||||
2, // [2:3] is the sub-list for method output_type
|
|
||||||
1, // [1:2] is the sub-list for method input_type
|
|
||||||
1, // [1:1] is the sub-list for extension type_name
|
|
||||||
1, // [1:1] is the sub-list for extension extendee
|
|
||||||
0, // [0:1] is the sub-list for field type_name
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() { file_user_proto_init() }
|
|
||||||
func file_user_proto_init() {
|
|
||||||
if File_user_proto != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*SaveReq); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*SaveRsp); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
type x struct{}
|
|
||||||
out := protoimpl.TypeBuilder{
|
|
||||||
File: protoimpl.DescBuilder{
|
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
||||||
RawDescriptor: file_user_proto_rawDesc,
|
|
||||||
NumEnums: 0,
|
|
||||||
NumMessages: 2,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 1,
|
|
||||||
},
|
|
||||||
GoTypes: file_user_proto_goTypes,
|
|
||||||
DependencyIndexes: file_user_proto_depIdxs,
|
|
||||||
MessageInfos: file_user_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_user_proto = out.File
|
|
||||||
file_user_proto_rawDesc = nil
|
|
||||||
file_user_proto_goTypes = nil
|
|
||||||
file_user_proto_depIdxs = nil
|
|
||||||
}
|
|
||||||
|
|
@ -1,109 +0,0 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// - protoc-gen-go-grpc v1.3.0
|
|
||||||
// - protoc v3.19.4
|
|
||||||
// source: user.proto
|
|
||||||
|
|
||||||
package user
|
|
||||||
|
|
||||||
import (
|
|
||||||
context "context"
|
|
||||||
grpc "google.golang.org/grpc"
|
|
||||||
codes "google.golang.org/grpc/codes"
|
|
||||||
status "google.golang.org/grpc/status"
|
|
||||||
)
|
|
||||||
|
|
||||||
// This is a compile-time assertion to ensure that this generated file
|
|
||||||
// is compatible with the grpc package it is being compiled against.
|
|
||||||
// Requires gRPC-Go v1.32.0 or later.
|
|
||||||
const _ = grpc.SupportPackageIsVersion7
|
|
||||||
|
|
||||||
const (
|
|
||||||
UserServer_Save_FullMethodName = "/user.UserServer/Save"
|
|
||||||
)
|
|
||||||
|
|
||||||
// UserServerClient is the client API for UserServer service.
|
|
||||||
//
|
|
||||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
||||||
type UserServerClient interface {
|
|
||||||
Save(ctx context.Context, in *SaveReq, opts ...grpc.CallOption) (*SaveRsp, error)
|
|
||||||
}
|
|
||||||
|
|
||||||
type userServerClient struct {
|
|
||||||
cc grpc.ClientConnInterface
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewUserServerClient(cc grpc.ClientConnInterface) UserServerClient {
|
|
||||||
return &userServerClient{cc}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *userServerClient) Save(ctx context.Context, in *SaveReq, opts ...grpc.CallOption) (*SaveRsp, error) {
|
|
||||||
out := new(SaveRsp)
|
|
||||||
err := c.cc.Invoke(ctx, UserServer_Save_FullMethodName, in, out, opts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// UserServerServer is the server API for UserServer service.
|
|
||||||
// All implementations must embed UnimplementedUserServerServer
|
|
||||||
// for forward compatibility
|
|
||||||
type UserServerServer interface {
|
|
||||||
Save(context.Context, *SaveReq) (*SaveRsp, error)
|
|
||||||
mustEmbedUnimplementedUserServerServer()
|
|
||||||
}
|
|
||||||
|
|
||||||
// UnimplementedUserServerServer must be embedded to have forward compatible implementations.
|
|
||||||
type UnimplementedUserServerServer struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
func (UnimplementedUserServerServer) Save(context.Context, *SaveReq) (*SaveRsp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Save not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedUserServerServer) mustEmbedUnimplementedUserServerServer() {}
|
|
||||||
|
|
||||||
// UnsafeUserServerServer may be embedded to opt out of forward compatibility for this service.
|
|
||||||
// Use of this interface is not recommended, as added methods to UserServerServer will
|
|
||||||
// result in compilation errors.
|
|
||||||
type UnsafeUserServerServer interface {
|
|
||||||
mustEmbedUnimplementedUserServerServer()
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterUserServerServer(s grpc.ServiceRegistrar, srv UserServerServer) {
|
|
||||||
s.RegisterService(&UserServer_ServiceDesc, srv)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _UserServer_Save_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(SaveReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(UserServerServer).Save(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: UserServer_Save_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(UserServerServer).Save(ctx, req.(*SaveReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UserServer_ServiceDesc is the grpc.ServiceDesc for UserServer service.
|
|
||||||
// It's only intended for direct use with grpc.RegisterService,
|
|
||||||
// and not to be introspected or modified (even as a copy)
|
|
||||||
var UserServer_ServiceDesc = grpc.ServiceDesc{
|
|
||||||
ServiceName: "user.UserServer",
|
|
||||||
HandlerType: (*UserServerServer)(nil),
|
|
||||||
Methods: []grpc.MethodDesc{
|
|
||||||
{
|
|
||||||
MethodName: "Save",
|
|
||||||
Handler: _UserServer_Save_Handler,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Streams: []grpc.StreamDesc{},
|
|
||||||
Metadata: "user.proto",
|
|
||||||
}
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
package rpc
|
|
||||||
|
|
||||||
import (
|
|
||||||
"errors"
|
|
||||||
"net"
|
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
|
||||||
"google.golang.org/grpc/credentials/insecure"
|
|
||||||
"mongo.games.com/goserver/core/logger"
|
|
||||||
|
|
||||||
"mongo.games.com/game/db/proto/user"
|
|
||||||
"mongo.games.com/game/db/rpc/server"
|
|
||||||
"mongo.games.com/game/db/rpc/svc"
|
|
||||||
)
|
|
||||||
|
|
||||||
// GrpcServer grpc服务
|
|
||||||
var GrpcServer *grpc.Server
|
|
||||||
|
|
||||||
// GrpcClientConn grpc客户端连接
|
|
||||||
var GrpcClientConn *grpc.ClientConn
|
|
||||||
|
|
||||||
// RunGrpcServer 启动grpc服务端
|
|
||||||
func RunGrpcServer(addr string) {
|
|
||||||
GrpcServer = grpc.NewServer()
|
|
||||||
registerGrpcServer()
|
|
||||||
ln, err := net.Listen("tcp", addr)
|
|
||||||
if err != nil {
|
|
||||||
panic(errors.New("db grpc failed to listen: " + err.Error()))
|
|
||||||
}
|
|
||||||
|
|
||||||
err = GrpcServer.Serve(ln)
|
|
||||||
if err != nil {
|
|
||||||
panic(errors.New("db grpc failed to serve: " + err.Error()))
|
|
||||||
}
|
|
||||||
logger.Logger.Infof("db grpc start success")
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewGrpcClientConn 创建grpc客户端连接
|
|
||||||
func NewGrpcClientConn(addr string) {
|
|
||||||
var err error
|
|
||||||
GrpcClientConn, err = grpc.NewClient(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
|
|
||||||
if err != nil {
|
|
||||||
panic(errors.New("db grpc failed to dial: " + err.Error()))
|
|
||||||
}
|
|
||||||
registerGrpcClient()
|
|
||||||
}
|
|
||||||
|
|
||||||
// registerGrpcServer 注册grpc服务
|
|
||||||
func registerGrpcServer() {
|
|
||||||
ctx := svc.NewServiceContext()
|
|
||||||
user.RegisterUserServerServer(GrpcServer, server.NewUserServer(ctx))
|
|
||||||
}
|
|
||||||
|
|
||||||
var UserClient user.UserServerClient
|
|
||||||
|
|
||||||
func registerGrpcClient() {
|
|
||||||
UserClient = user.NewUserServerClient(GrpcClientConn)
|
|
||||||
}
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
package logic
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
|
|
||||||
"mongo.games.com/game/db/dao"
|
|
||||||
"mongo.games.com/game/db/model"
|
|
||||||
"mongo.games.com/game/db/proto/user"
|
|
||||||
"mongo.games.com/game/db/rpc/svc"
|
|
||||||
)
|
|
||||||
|
|
||||||
type UserLogic struct {
|
|
||||||
ctx context.Context
|
|
||||||
svcCtx *svc.ServiceContext
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserLogic {
|
|
||||||
return &UserLogic{
|
|
||||||
ctx: ctx,
|
|
||||||
svcCtx: svcCtx,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l *UserLogic) Save(in *user.SaveReq) (*user.SaveRsp, error) {
|
|
||||||
u, err := svc.GetUserCollection(in.GetPlatform(), model.User{}, dao.NewUser)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
_, err = u.InsertOne(l.ctx, &model.User{})
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return &user.SaveRsp{}, nil
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// Code generated by goctl. DO NOT EDIT.
|
|
||||||
// goctl 1.7.2
|
|
||||||
// Source: user.proto
|
|
||||||
|
|
||||||
package server
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
|
|
||||||
"mongo.games.com/game/db/proto/user"
|
|
||||||
"mongo.games.com/game/db/rpc/logic"
|
|
||||||
"mongo.games.com/game/db/rpc/svc"
|
|
||||||
)
|
|
||||||
|
|
||||||
type UserServer struct {
|
|
||||||
svcCtx *svc.ServiceContext
|
|
||||||
user.UnimplementedUserServerServer
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewUserServer(svcCtx *svc.ServiceContext) *UserServer {
|
|
||||||
return &UserServer{
|
|
||||||
svcCtx: svcCtx,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *UserServer) Save(ctx context.Context, in *user.SaveReq) (*user.SaveRsp, error) {
|
|
||||||
l := logic.NewUserLogic(ctx, s.svcCtx)
|
|
||||||
return l.Save(in)
|
|
||||||
}
|
|
||||||
|
|
@ -1,97 +0,0 @@
|
||||||
package svc
|
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
"reflect"
|
|
||||||
"strings"
|
|
||||||
|
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
|
||||||
|
|
||||||
"mongo.games.com/game/common"
|
|
||||||
mon "mongo.games.com/game/mongo"
|
|
||||||
"mongo.games.com/goserver/core/logger"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ServiceContext 服务上下文
|
|
||||||
// 依赖注入
|
|
||||||
type ServiceContext struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewServiceContext() *ServiceContext {
|
|
||||||
|
|
||||||
vp := common.GetViper("mgo", "json")
|
|
||||||
// mongo初始化
|
|
||||||
conf := &mon.Config{}
|
|
||||||
err := vp.Unmarshal(conf)
|
|
||||||
if err != nil {
|
|
||||||
panic(fmt.Errorf("mongo config error: %v", err))
|
|
||||||
}
|
|
||||||
mon.Init(conf)
|
|
||||||
|
|
||||||
return &ServiceContext{}
|
|
||||||
}
|
|
||||||
|
|
||||||
type TableName interface {
|
|
||||||
TableName() string
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetTableName 获取表名
|
|
||||||
func GetTableName(model any) string {
|
|
||||||
if m, ok := model.(TableName); ok {
|
|
||||||
return m.TableName()
|
|
||||||
}
|
|
||||||
|
|
||||||
t := reflect.TypeOf(model)
|
|
||||||
if t.Kind() == reflect.Ptr {
|
|
||||||
t = t.Elem()
|
|
||||||
}
|
|
||||||
if t.Kind() != reflect.Struct {
|
|
||||||
panic("model must be a struct or a pointer to a struct")
|
|
||||||
}
|
|
||||||
|
|
||||||
return strings.ToLower(t.Name())
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetUserCollection 用户库
|
|
||||||
func GetUserCollection[T any](platform string, model any, f func(database *mongo.Database, c *mongo.Collection) T) (T, error) {
|
|
||||||
c, err := mon.GetUserCollection(platform, GetTableName(model))
|
|
||||||
if err != nil {
|
|
||||||
var z T
|
|
||||||
logger.Logger.Errorf("GetUserCollection error: %v", err)
|
|
||||||
return z, err
|
|
||||||
}
|
|
||||||
return f(c.Database.Database, c.Collection), nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetLogCollection 日志库
|
|
||||||
func GetLogCollection[T any](platform string, model any, f func(database *mongo.Database, c *mongo.Collection) T) (T, error) {
|
|
||||||
c, err := mon.GetLogCollection(platform, GetTableName(model))
|
|
||||||
if err != nil {
|
|
||||||
var z T
|
|
||||||
logger.Logger.Errorf("GetLogCollection error: %v", err)
|
|
||||||
return z, err
|
|
||||||
}
|
|
||||||
return f(c.Database.Database, c.Collection), nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetGlobalUserCollection 全局用户库
|
|
||||||
func GetGlobalUserCollection[T any](model any, f func(database *mongo.Database, c *mongo.Collection) T) (T, error) {
|
|
||||||
c, err := mon.GetGlobalUserCollection(GetTableName(model))
|
|
||||||
if err != nil {
|
|
||||||
var z T
|
|
||||||
logger.Logger.Errorf("GetGlobalUserCollection error: %v", err)
|
|
||||||
return z, err
|
|
||||||
}
|
|
||||||
return f(c.Database.Database, c.Collection), nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetGlobalLogCollection 全局日志库
|
|
||||||
func GetGlobalLogCollection[T any](model any, f func(database *mongo.Database, c *mongo.Collection) T) (T, error) {
|
|
||||||
c, err := mon.GetGlobalLogCollection(GetTableName(model))
|
|
||||||
if err != nil {
|
|
||||||
var z T
|
|
||||||
logger.Logger.Errorf("GetGlobalLogCollection error: %v", err)
|
|
||||||
return z, err
|
|
||||||
}
|
|
||||||
return f(c.Database.Database, c.Collection), nil
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
package fortunetiger
|
||||||
|
|
||||||
|
// 房间类型
|
||||||
|
const (
|
||||||
|
RoomMode_Classic int = iota //经典
|
||||||
|
RoomMode_Max
|
||||||
|
)
|
||||||
|
|
||||||
|
// 场景状态
|
||||||
|
const (
|
||||||
|
FortuneTigerStateStart int = iota //默认状态
|
||||||
|
FortuneTigerStateMax
|
||||||
|
)
|
||||||
|
|
||||||
|
// 玩家操作
|
||||||
|
const (
|
||||||
|
FortuneTigerPlayerOpStart int = iota
|
||||||
|
FortuneTigerPlayerOpSwitch
|
||||||
|
)
|
||||||
|
const NowByte int64 = 10000
|
||||||
|
|
||||||
|
const GameDataKey = "FortuneData"
|
||||||
|
|
@ -640,8 +640,8 @@ func (this *Player) ReportGameEvent(tax, taxex, changeCoin, validbet, validFlow,
|
||||||
|
|
||||||
gamingTime := int32(time.Now().Sub(this.scene.GameNowTime).Seconds())
|
gamingTime := int32(time.Now().Sub(this.scene.GameNowTime).Seconds())
|
||||||
mq.Write(model.CreatePlayerGameRecEvent(this.SnId, tax, taxex, changeCoin, validbet, validFlow, in, out,
|
mq.Write(model.CreatePlayerGameRecEvent(this.SnId, tax, taxex, changeCoin, validbet, validFlow, in, out,
|
||||||
int32(this.scene.GameId), this.scene.GetGameFreeId(), int32(this.scene.GameMode),
|
this.scene.GameId, this.scene.GetGameFreeId(), int32(this.scene.GameMode),
|
||||||
this.scene.GetRecordId(), this.Channel, this.BeUnderAgentCode, this.Platform, this.City, this.DeviceOS,
|
this.scene.GetRecordId(), this.Channel, this.ChannelId, this.BeUnderAgentCode, this.Platform, this.City, this.DeviceOS,
|
||||||
this.CreateTime, gamingTime, gameFirstTime, gameFreeFirstTime, gameTimes, gameFreeTimes, this.LastLoginTime,
|
this.CreateTime, gamingTime, gameFirstTime, gameFreeFirstTime, gameTimes, gameFreeTimes, this.LastLoginTime,
|
||||||
this.TelephonePromoter, this.DeviceId), mq.BackGameRecord)
|
this.TelephonePromoter, this.DeviceId), mq.BackGameRecord)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ type SceneEx struct {
|
||||||
machineId int //娃娃机ID
|
machineId int //娃娃机ID
|
||||||
machineConn *netlib.Session //娃娃机链接
|
machineConn *netlib.Session //娃娃机链接
|
||||||
machineStatus int32 //娃娃机链接状态 0:离线 1:在线
|
machineStatus int32 //娃娃机链接状态 0:离线 1:在线
|
||||||
PayCoinCount int //娃娃机总投币次数
|
PayCoinCount int //娃娃机总投币次数
|
||||||
|
|
||||||
payCoinTimeHandle timer.TimerHandle //上分投币托管handle
|
payCoinTimeHandle timer.TimerHandle //上分投币托管handle
|
||||||
grabTimerHandle timer.TimerHandle //下抓托管handle
|
grabTimerHandle timer.TimerHandle //下抓托管handle
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@ func (this *CSFortuneDragonOpHandler) Process(s *netlib.Session, packetid int, d
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
//fortunedragon
|
|
||||||
common.RegisterHandler(int(fortunedragon.FortuneDragonPID_PACKET_FORTUNEDRAGON_CSFORTUNEDRAGONOP), &CSFortuneDragonOpHandler{})
|
common.RegisterHandler(int(fortunedragon.FortuneDragonPID_PACKET_FORTUNEDRAGON_CSFORTUNEDRAGONOP), &CSFortuneDragonOpHandler{})
|
||||||
netlib.RegisterFactory(int(fortunedragon.FortuneDragonPID_PACKET_FORTUNEDRAGON_CSFORTUNEDRAGONOP), &CSFortuneDragonOpPacketFactory{})
|
netlib.RegisterFactory(int(fortunedragon.FortuneDragonPID_PACKET_FORTUNEDRAGON_CSFORTUNEDRAGONOP), &CSFortuneDragonOpPacketFactory{})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ func (this *CSFortuneOxOpHandler) Process(s *netlib.Session, packetid int, data
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
//fortunerabbit
|
|
||||||
common.RegisterHandler(int(fortuneox.FortuneOxPID_PACKET_FORTUNEOX_CSFORTUNEOXOP), &CSFortuneOxOpHandler{})
|
common.RegisterHandler(int(fortuneox.FortuneOxPID_PACKET_FORTUNEOX_CSFORTUNEOXOP), &CSFortuneOxOpHandler{})
|
||||||
netlib.RegisterFactory(int(fortuneox.FortuneOxPID_PACKET_FORTUNEOX_CSFORTUNEOXOP), &CSFortuneOxOpPacketFactory{})
|
netlib.RegisterFactory(int(fortuneox.FortuneOxPID_PACKET_FORTUNEOX_CSFORTUNEOXOP), &CSFortuneOxOpPacketFactory{})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -408,7 +408,10 @@ func (this *SceneStateStartFortuneOx) OnPlayerOp(s *base.Scene, p *base.Player,
|
||||||
data = assemble.DataToCli(Response).(assemble.GameEnd)
|
data = assemble.DataToCli(Response).(assemble.GameEnd)
|
||||||
var respinStatus int
|
var respinStatus int
|
||||||
if data.Results[0].ArrSpins[0].Special != nil {
|
if data.Results[0].ArrSpins[0].Special != nil {
|
||||||
respinStatus = data.Results[0].ArrSpins[0].Special.(SpinLock).ReSpinStatus
|
sp, _ := json.Marshal(data.Results[0].ArrSpins[0].Special)
|
||||||
|
var spinLock SpinLock
|
||||||
|
json.Unmarshal(sp, &spinLock)
|
||||||
|
respinStatus = spinLock.ReSpinStatus
|
||||||
}
|
}
|
||||||
if respinStatus == 0 || respinStatus == 1 {
|
if respinStatus == 0 || respinStatus == 1 {
|
||||||
//第一次触发或者正常模式
|
//第一次触发或者正常模式
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@ func (this *CSFortuneRabbitOpHandler) Process(s *netlib.Session, packetid int, d
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
//fortunerabbit
|
|
||||||
common.RegisterHandler(int(fortunerabbit.FortuneRabbitPID_PACKET_FORTUNERABBIT_CSFORTUNERABBITOP), &CSFortuneRabbitOpHandler{})
|
common.RegisterHandler(int(fortunerabbit.FortuneRabbitPID_PACKET_FORTUNERABBIT_CSFORTUNERABBITOP), &CSFortuneRabbitOpHandler{})
|
||||||
netlib.RegisterFactory(int(fortunerabbit.FortuneRabbitPID_PACKET_FORTUNERABBIT_CSFORTUNERABBITOP), &CSFortuneRabbitOpPacketFactory{})
|
netlib.RegisterFactory(int(fortunerabbit.FortuneRabbitPID_PACKET_FORTUNERABBIT_CSFORTUNERABBITOP), &CSFortuneRabbitOpPacketFactory{})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
package fortunetiger
|
||||||
|
|
||||||
|
import (
|
||||||
|
"mongo.games.com/game/common"
|
||||||
|
"mongo.games.com/game/gamesrv/base"
|
||||||
|
"mongo.games.com/game/protocol/fortunetiger"
|
||||||
|
"mongo.games.com/goserver/core/logger"
|
||||||
|
"mongo.games.com/goserver/core/netlib"
|
||||||
|
)
|
||||||
|
|
||||||
|
type CSFortuneTigerOpPacketFactory struct {
|
||||||
|
}
|
||||||
|
type CSFortuneTigerOpHandler struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *CSFortuneTigerOpPacketFactory) CreatePacket() interface{} {
|
||||||
|
pack := &fortunetiger.CSFortuneTigerOp{}
|
||||||
|
return pack
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *CSFortuneTigerOpHandler) Process(s *netlib.Session, packetid int, data interface{}, sid int64) error {
|
||||||
|
if op, ok := data.(*fortunetiger.CSFortuneTigerOp); ok {
|
||||||
|
p := base.PlayerMgrSington.GetPlayer(sid)
|
||||||
|
if p == nil {
|
||||||
|
logger.Logger.Warn("CSFortuneTigerOpHandler p == nil")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
scene := p.GetScene()
|
||||||
|
if scene == nil {
|
||||||
|
logger.Logger.Warn("CSFortuneTigerOpHandler p.scene == nil")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
if !scene.HasPlayer(p) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
if scene.GetScenePolicy() != nil {
|
||||||
|
scene.GetScenePolicy().OnPlayerOp(scene, p, int(op.GetOpCode()), op.GetParams())
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func init() {
|
||||||
|
common.RegisterHandler(int(fortunetiger.FortuneTigerPID_PACKET_FORTUNETIGER_CSFORTUNETIGEROP), &CSFortuneTigerOpHandler{})
|
||||||
|
netlib.RegisterFactory(int(fortunetiger.FortuneTigerPID_PACKET_FORTUNETIGER_CSFORTUNETIGEROP), &CSFortuneTigerOpPacketFactory{})
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,54 @@
|
||||||
|
package fortunetiger
|
||||||
|
|
||||||
|
import (
|
||||||
|
"mongo.games.com/game/gamerule/fortunetiger"
|
||||||
|
"mongo.games.com/game/gamesrv/base"
|
||||||
|
"mongo.games.com/game/gamesrv/slotspkg/slots"
|
||||||
|
)
|
||||||
|
|
||||||
|
type FortuneTigerPlayerData struct {
|
||||||
|
*base.Player
|
||||||
|
leaveTime int32 //离开时间
|
||||||
|
SlotsSession *base.SlotsSession
|
||||||
|
|
||||||
|
BetSizeIndex int64 `json:"bsi"` //选中的单注下标
|
||||||
|
BetLevelIndex int64 `json:"bli"` //选中的等级下标
|
||||||
|
BetLineIndex int64 `json:"bii"` //选中的线数下标
|
||||||
|
BetMode int64 `json:"bm,optional"` //0.常规 1.必中
|
||||||
|
|
||||||
|
taxCoin int64
|
||||||
|
winCoin int64
|
||||||
|
currentLogId string
|
||||||
|
totalBet int64
|
||||||
|
|
||||||
|
isRespin bool //只用于判断是否可以离开
|
||||||
|
}
|
||||||
|
|
||||||
|
type SpinLock struct {
|
||||||
|
ReSpinStatus int `json:"rs,omitempty"` //0.默认 1.第一次触发 2.进行中 3.结束
|
||||||
|
ReSpinSymbol int64 `json:"rsy,omitempty"` //图标(respin)
|
||||||
|
Lock [][]int `json:"l,omitempty"` //原来锁定的位置
|
||||||
|
AddLock [][]int `json:"al,omitempty"` //新增锁定的位置
|
||||||
|
X10 int64 `json:"x10,omitempty"` //100.不同图标 88.wild 其他类型.按当前单一中奖图标类型
|
||||||
|
WinLines map[int][][]int `json:"wls,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *FortuneTigerPlayerData) init() {
|
||||||
|
p.SlotsSession = base.NewSession(uint64(p.SnId), p.Coin*fortunetiger.NowByte)
|
||||||
|
}
|
||||||
|
func (p *FortuneTigerPlayerData) Clear() {
|
||||||
|
p.taxCoin = 0
|
||||||
|
p.winCoin = 0
|
||||||
|
p.currentLogId = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
// 需要带到world上进行数据处理
|
||||||
|
func (p *FortuneTigerPlayerData) PushPlayer() map[string]string {
|
||||||
|
cache := slots.SlotsMgrSington.PushPlayer(p.SlotsSession)
|
||||||
|
return cache
|
||||||
|
}
|
||||||
|
|
||||||
|
// 进房的时候需要带进来
|
||||||
|
func (p *FortuneTigerPlayerData) PullPlayer(data map[string]string) {
|
||||||
|
slots.SlotsMgrSington.PullPlayer(p.SlotsSession, data)
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,45 @@
|
||||||
|
package fortunetiger
|
||||||
|
|
||||||
|
import (
|
||||||
|
"mongo.games.com/game/gamesrv/base"
|
||||||
|
"mongo.games.com/game/gamesrv/slotspkg/assemble"
|
||||||
|
)
|
||||||
|
|
||||||
|
type FortuneTigerSceneData struct {
|
||||||
|
*base.Scene //场景
|
||||||
|
players map[int32]*FortuneTigerPlayerData //玩家信息
|
||||||
|
BetConfig *assemble.BetConfig
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewFortuneTigerSceneData(s *base.Scene) *FortuneTigerSceneData {
|
||||||
|
sceneEx := &FortuneTigerSceneData{
|
||||||
|
Scene: s,
|
||||||
|
players: make(map[int32]*FortuneTigerPlayerData),
|
||||||
|
}
|
||||||
|
sceneEx.Init()
|
||||||
|
return sceneEx
|
||||||
|
}
|
||||||
|
func (s *FortuneTigerSceneData) Init() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *FortuneTigerSceneData) Clear() {
|
||||||
|
//应该是水池变一次就判断修改一次
|
||||||
|
//s.slotRateWeight = s.slotRateWeightTotal[0]
|
||||||
|
}
|
||||||
|
func (s *FortuneTigerSceneData) SceneDestroy(force bool) {
|
||||||
|
//销毁房间
|
||||||
|
s.Scene.Destroy(force)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *FortuneTigerSceneData) delPlayer(SnId int32) {
|
||||||
|
if _, exist := s.players[SnId]; exist {
|
||||||
|
delete(s.players, SnId)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func (s *FortuneTigerSceneData) OnPlayerLeave(p *base.Player, reason int) {
|
||||||
|
if /*playerEx*/ _, ok := p.ExtraData.(*FortuneTigerPlayerData); ok {
|
||||||
|
|
||||||
|
}
|
||||||
|
s.delPlayer(p.SnId)
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,574 @@
|
||||||
|
package fortunetiger
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
"mongo.games.com/game/common"
|
||||||
|
"mongo.games.com/game/gamerule/fortunetiger"
|
||||||
|
"mongo.games.com/game/gamesrv/base"
|
||||||
|
"mongo.games.com/game/gamesrv/slotspkg/assemble"
|
||||||
|
"mongo.games.com/game/gamesrv/slotspkg/slots"
|
||||||
|
"mongo.games.com/game/model"
|
||||||
|
"mongo.games.com/game/proto"
|
||||||
|
protocol "mongo.games.com/game/protocol/fortunetiger"
|
||||||
|
"mongo.games.com/game/protocol/server"
|
||||||
|
"mongo.games.com/goserver/core"
|
||||||
|
"mongo.games.com/goserver/core/logger"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ////////////////////////////////////////////////////////////
|
||||||
|
var ScenePolicyFortuneTigerSington = &ScenePolicyFortuneTiger{}
|
||||||
|
|
||||||
|
type ScenePolicyFortuneTiger struct {
|
||||||
|
base.BaseScenePolicy
|
||||||
|
states [fortunetiger.FortuneTigerStateMax]base.SceneState
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建场景扩展数据
|
||||||
|
func (this *ScenePolicyFortuneTiger) CreateSceneExData(s *base.Scene) interface{} {
|
||||||
|
sceneEx := NewFortuneTigerSceneData(s)
|
||||||
|
if sceneEx != nil {
|
||||||
|
if sceneEx.GetInit() {
|
||||||
|
s.SetExtraData(sceneEx)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sceneEx
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建玩家扩展数据
|
||||||
|
func (this *ScenePolicyFortuneTiger) CreatePlayerExData(s *base.Scene, p *base.Player) interface{} {
|
||||||
|
playerEx := &FortuneTigerPlayerData{Player: p}
|
||||||
|
p.SetExtraData(playerEx)
|
||||||
|
return playerEx
|
||||||
|
}
|
||||||
|
|
||||||
|
// 场景开启事件
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnStart(s *base.Scene) {
|
||||||
|
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnStart, sceneId=", s.GetSceneId())
|
||||||
|
sceneEx := NewFortuneTigerSceneData(s)
|
||||||
|
if sceneEx != nil {
|
||||||
|
if sceneEx.GetInit() {
|
||||||
|
s.SetExtraData(sceneEx)
|
||||||
|
s.ChangeSceneState(fortunetiger.FortuneTigerStateStart)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 场景关闭事件
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnStop(s *base.Scene) {
|
||||||
|
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnStop , sceneId=", s.GetSceneId())
|
||||||
|
}
|
||||||
|
|
||||||
|
// 场景心跳事件
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnTick(s *base.Scene) {
|
||||||
|
if s == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if s.GetSceneState() != nil {
|
||||||
|
s.GetSceneState().OnTick(s)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 玩家进入事件
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnPlayerEnter(s *base.Scene, p *base.Player) {
|
||||||
|
if s == nil || p == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerEnter, sceneId=", s.GetSceneId(), " player=", p.Name)
|
||||||
|
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||||
|
playerEx := &FortuneTigerPlayerData{Player: p}
|
||||||
|
|
||||||
|
playerEx.init()
|
||||||
|
|
||||||
|
d := p.GameData[fortunetiger.GameDataKey]
|
||||||
|
if d != nil {
|
||||||
|
m := make(map[string]string)
|
||||||
|
json.Unmarshal(d.Data.([]byte), &m)
|
||||||
|
playerEx.PullPlayer(m)
|
||||||
|
} else {
|
||||||
|
m := make(map[string]string)
|
||||||
|
//json.Unmarshal(d.Data.([]byte), &m)
|
||||||
|
playerEx.PullPlayer(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
playerEx.SlotsSession.SetCoin(playerEx.Coin * fortunetiger.NowByte)
|
||||||
|
|
||||||
|
playerEx.Clear()
|
||||||
|
|
||||||
|
sceneEx.players[p.SnId] = playerEx
|
||||||
|
|
||||||
|
p.SetExtraData(playerEx)
|
||||||
|
FortuneTigerSendRoomInfo(s, sceneEx, playerEx)
|
||||||
|
|
||||||
|
s.FirePlayerEvent(p, base.PlayerEventEnter, nil)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 玩家离开事件
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnPlayerLeave(s *base.Scene, p *base.Player, reason int) {
|
||||||
|
if s == nil || p == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerLeave, sceneId=", s.GetSceneId(), " player=", p.SnId)
|
||||||
|
if playerEx, ok := p.ExtraData.(*FortuneTigerPlayerData); ok {
|
||||||
|
m := playerEx.PushPlayer()
|
||||||
|
if m != nil && len(m) > 0 {
|
||||||
|
b, err := json.Marshal(m)
|
||||||
|
if err != nil {
|
||||||
|
logger.Logger.Error("OnPlayerLeave, json.Marshal error:", err)
|
||||||
|
} else {
|
||||||
|
p.GameData[fortunetiger.GameDataKey] = &model.PlayerGameData{
|
||||||
|
Platform: p.Platform,
|
||||||
|
SnId: p.SnId,
|
||||||
|
Id: fortunetiger.GameDataKey,
|
||||||
|
Data: b,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if sceneEx, ok := s.ExtraData.(*FortuneTigerSceneData); ok {
|
||||||
|
s.FirePlayerEvent(p, base.PlayerEventLeave, nil)
|
||||||
|
sceneEx.OnPlayerLeave(p, reason)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 玩家掉线
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnPlayerDropLine(s *base.Scene, p *base.Player) {
|
||||||
|
if s == nil || p == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerDropLine, sceneId=", s.GetSceneId(), " player=", p.SnId)
|
||||||
|
s.FirePlayerEvent(p, base.PlayerEventDropLine, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 玩家重连
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnPlayerRehold(s *base.Scene, p *base.Player) {
|
||||||
|
if s == nil || p == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerRehold, sceneId=", s.GetSceneId(), " player=", p.SnId)
|
||||||
|
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||||
|
if playerEx, ok := p.GetExtraData().(*FortuneTigerPlayerData); ok {
|
||||||
|
FortuneTigerSendRoomInfo(s, sceneEx, playerEx)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 返回房间
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnPlayerReturn(s *base.Scene, p *base.Player) {
|
||||||
|
if s == nil || p == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerReturn, GetSceneId()=", s.GetSceneId(), " player=", p.Name)
|
||||||
|
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||||
|
if playerEx, ok := p.GetExtraData().(*FortuneTigerPlayerData); ok {
|
||||||
|
//if p.IsMarkFlag(base.PlayerState_Auto) {
|
||||||
|
// p.UnmarkFlag(base.PlayerState_Auto)
|
||||||
|
// p.SyncFlag()
|
||||||
|
//}
|
||||||
|
//发送房间信息给自己
|
||||||
|
FortuneTigerSendRoomInfo(s, sceneEx, playerEx)
|
||||||
|
s.FirePlayerEvent(p, base.PlayerEventReturn, nil)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func FortuneTigerSendRoomInfo(s *base.Scene, sceneEx *FortuneTigerSceneData, playerEx *FortuneTigerPlayerData) {
|
||||||
|
pack := FortuneTigerCreateRoomInfoPacket(s, sceneEx, playerEx)
|
||||||
|
logger.Logger.Trace("RoomInfo: ", pack)
|
||||||
|
playerEx.SendToClient(int(protocol.FortuneTigerPID_PACKET_FORTUNETIGER_SCFORTUNETIGERROOMINFO), pack)
|
||||||
|
}
|
||||||
|
func FortuneTigerCreateRoomInfoPacket(s *base.Scene, sceneEx *FortuneTigerSceneData, playerEx *FortuneTigerPlayerData) interface{} {
|
||||||
|
//房间信息
|
||||||
|
pack := &protocol.SCFortuneTigerRoomInfo{
|
||||||
|
RoomId: s.SceneId,
|
||||||
|
GameId: s.GameId,
|
||||||
|
RoomMode: s.SceneMode,
|
||||||
|
SceneType: s.GetSceneType(),
|
||||||
|
Params: common.CopySliceInt64ToInt32(s.Params),
|
||||||
|
NumOfGames: proto.Int(sceneEx.NumOfGames),
|
||||||
|
State: proto.Int(s.SceneState.GetState()),
|
||||||
|
ParamsEx: s.GetDBGameFree().OtherIntParams,
|
||||||
|
GameFreeId: proto.Int32(s.GetDBGameFree().Id),
|
||||||
|
//BetLimit: s.GetDBGameFree().BetLimit,
|
||||||
|
}
|
||||||
|
|
||||||
|
//自己的信息
|
||||||
|
if playerEx != nil {
|
||||||
|
pd := &protocol.FortuneTigerPlayerData{
|
||||||
|
SnId: proto.Int32(playerEx.SnId),
|
||||||
|
Name: proto.String(playerEx.Name),
|
||||||
|
Head: proto.Int32(playerEx.Head),
|
||||||
|
Sex: proto.Int32(playerEx.Sex),
|
||||||
|
Coin: proto.Int64(playerEx.Coin),
|
||||||
|
Pos: proto.Int(playerEx.Pos),
|
||||||
|
Flag: proto.Int(playerEx.GetFlag()),
|
||||||
|
City: proto.String(playerEx.City),
|
||||||
|
HeadOutLine: proto.Int32(playerEx.HeadOutLine),
|
||||||
|
VIP: proto.Int32(playerEx.VIP),
|
||||||
|
}
|
||||||
|
pack.Player = pd
|
||||||
|
}
|
||||||
|
|
||||||
|
//get data
|
||||||
|
Response, err := slots.SlotsMgrSington.Enter(playerEx.SlotsSession, int64(s.GameId))
|
||||||
|
if err == nil {
|
||||||
|
data := assemble.DataToCli(Response).(assemble.TableInfo)
|
||||||
|
pi, _ := json.Marshal(data)
|
||||||
|
pack.PlayerInfo = string(pi)
|
||||||
|
if sceneEx.BetConfig == nil {
|
||||||
|
sceneEx.BetConfig = &data.BetConfig
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
logger.Logger.Error("slots enter err:", err)
|
||||||
|
}
|
||||||
|
proto.SetDefaults(pack)
|
||||||
|
return pack
|
||||||
|
}
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, params []int64) bool {
|
||||||
|
if s == nil || p == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerOp, sceneId=", s.GetSceneId(), " player=", p.SnId, " opcode=", opcode, " params=", params)
|
||||||
|
if s.GetSceneState() != nil {
|
||||||
|
if s.GetSceneState().OnPlayerOp(s, p, opcode, params) {
|
||||||
|
p.SetLastOPTimer(time.Now())
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *ScenePolicyFortuneTiger) OnPlayerEvent(s *base.Scene, p *base.Player, evtcode int, params []int64) {
|
||||||
|
if s == nil || p == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerEvent, sceneId=", s.GetSceneId(), " player=", p.SnId, " eventcode=", evtcode, " params=", params)
|
||||||
|
if s.GetSceneState() != nil {
|
||||||
|
s.GetSceneState().OnPlayerEvent(s, p, evtcode, params)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 当前状态能否换桌
|
||||||
|
func (this *ScenePolicyFortuneTiger) CanChangeCoinScene(s *base.Scene, p *base.Player) bool {
|
||||||
|
if s == nil || p == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if s.GetSceneState() != nil {
|
||||||
|
return s.GetSceneState().CanChangeCoinScene(s, p)
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// 状态基类
|
||||||
|
type SceneBaseStateFortuneTiger struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *SceneBaseStateFortuneTiger) GetTimeout(s *base.Scene) int {
|
||||||
|
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||||
|
return int(time.Now().Sub(sceneEx.GetStateStartTime()) / time.Second)
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *SceneBaseStateFortuneTiger) CanChangeTo(s base.SceneState) bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
// 当前状态能否换桌
|
||||||
|
func (this *SceneBaseStateFortuneTiger) CanChangeCoinScene(s *base.Scene, p *base.Player) bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
func (this *SceneBaseStateFortuneTiger) OnEnter(s *base.Scene) {
|
||||||
|
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||||
|
sceneEx.SetStateStartTime(time.Now())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *SceneBaseStateFortuneTiger) OnLeave(s *base.Scene) {}
|
||||||
|
func (this *SceneBaseStateFortuneTiger) OnTick(s *base.Scene) {
|
||||||
|
if time.Now().Sub(s.GameStartTime) > time.Second*3 {
|
||||||
|
if sceneEx, ok := s.ExtraData.(*FortuneTigerSceneData); ok {
|
||||||
|
for _, p := range sceneEx.players {
|
||||||
|
if p.IsOnLine() {
|
||||||
|
p.leaveTime = 0
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
p.leaveTime++
|
||||||
|
if p.leaveTime < 60*2 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
//踢出玩家
|
||||||
|
sceneEx.PlayerLeave(p.Player, common.PlayerLeaveReason_LongTimeNoOp, true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
s.GameStartTime = time.Now()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func (this *SceneBaseStateFortuneTiger) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, params []int64) bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
func (this *SceneBaseStateFortuneTiger) OnPlayerEvent(s *base.Scene, p *base.Player, evtcode int, params []int64) {
|
||||||
|
}
|
||||||
|
|
||||||
|
// ////////////////////////////////////////////////////////////
|
||||||
|
// 开始状态
|
||||||
|
// ////////////////////////////////////////////////////////////
|
||||||
|
type SceneStateStartFortuneTiger struct {
|
||||||
|
SceneBaseStateFortuneTiger
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *SceneStateStartFortuneTiger) GetState() int {
|
||||||
|
return fortunetiger.FortuneTigerStateStart
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *SceneStateStartFortuneTiger) CanChangeTo(s base.SceneState) bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// 当前状态能否换桌
|
||||||
|
func (this *SceneStateStartFortuneTiger) CanChangeCoinScene(s *base.Scene, p *base.Player) bool {
|
||||||
|
if playerEx, ok := p.GetExtraData().(*FortuneTigerPlayerData); ok {
|
||||||
|
if playerEx.isRespin {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *SceneStateStartFortuneTiger) GetTimeout(s *base.Scene) int {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *SceneStateStartFortuneTiger) OnEnter(s *base.Scene) {
|
||||||
|
this.SceneBaseStateFortuneTiger.OnEnter(s)
|
||||||
|
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||||
|
sceneEx.SetGameNowTime(time.Now())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 状态离开时
|
||||||
|
func (this *SceneStateStartFortuneTiger) OnLeave(s *base.Scene) {
|
||||||
|
this.SceneBaseStateFortuneTiger.OnLeave(s)
|
||||||
|
logger.Logger.Tracef("(this *SceneStateStartFortuneTiger) OnLeave, sceneid=%v", s.GetSceneId())
|
||||||
|
}
|
||||||
|
|
||||||
|
// 玩家操作
|
||||||
|
func (this *SceneStateStartFortuneTiger) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, params []int64) bool {
|
||||||
|
logger.Logger.Tracef("(this *SceneStateStartFortuneTiger) OnPlayerOp, sceneid=%v params=%v", s.GetSceneId(), params)
|
||||||
|
if this.SceneBaseStateFortuneTiger.OnPlayerOp(s, p, opcode, params) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||||
|
if playerEx, ok := p.GetExtraData().(*FortuneTigerPlayerData); ok {
|
||||||
|
switch opcode {
|
||||||
|
case fortunetiger.FortuneTigerPlayerOpStart:
|
||||||
|
playerEx.Clear()
|
||||||
|
if len(params) < 3 {
|
||||||
|
pack := &protocol.SCFortuneTigerBilled{
|
||||||
|
OpRetCode: proto.Int32(1),
|
||||||
|
}
|
||||||
|
proto.SetDefaults(pack)
|
||||||
|
logger.Logger.Trace("SCFortuneTigerBilled", pack.String())
|
||||||
|
playerEx.SendToClient(int(protocol.FortuneTigerPID_PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED), pack)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
playerEx.BetSizeIndex = params[0]
|
||||||
|
playerEx.BetLevelIndex = params[1]
|
||||||
|
playerEx.BetLineIndex = params[2]
|
||||||
|
//playerEx.BetMode = params[3]
|
||||||
|
needCoin := sceneEx.BetConfig.BetSize[params[0]] * float64(sceneEx.BetConfig.BetLevel[params[1]]) *
|
||||||
|
float64(sceneEx.BetConfig.BetLines[params[2]])
|
||||||
|
if needCoin > float64(playerEx.Coin) {
|
||||||
|
pack := &protocol.SCFortuneTigerBilled{
|
||||||
|
OpRetCode: proto.Int32(1),
|
||||||
|
}
|
||||||
|
proto.SetDefaults(pack)
|
||||||
|
logger.Logger.Trace("SCFortuneTigerBilled:", pack.String())
|
||||||
|
playerEx.SendToClient(int(protocol.FortuneTigerPID_PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED), pack)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
//playerEx.SlotsSession.SetCoin(playerEx.Coin * fortunetiger.NowByte)
|
||||||
|
//logger.Logger.Trace("=============init dif coin", playerEx.Coin-playerEx.SlotsSession.Coin()/fortunetiger.NowByte)
|
||||||
|
|
||||||
|
//get data
|
||||||
|
Response, err := slots.SlotsMgrSington.Play(playerEx.SlotsSession, &base.SpinReq{
|
||||||
|
GameId: int64(sceneEx.GameId),
|
||||||
|
BetSizeIndex: playerEx.BetSizeIndex,
|
||||||
|
BetLevelIndex: playerEx.BetLevelIndex,
|
||||||
|
BetLineIndex: playerEx.BetLineIndex,
|
||||||
|
BetMode: playerEx.BetMode,
|
||||||
|
Ts: time.Now().Unix(),
|
||||||
|
})
|
||||||
|
var gameEndStr string
|
||||||
|
var data assemble.GameEnd
|
||||||
|
if err == nil {
|
||||||
|
data = assemble.DataToCli(Response).(assemble.GameEnd)
|
||||||
|
var respinStatus int
|
||||||
|
if data.Results[0].ArrSpins[0].Special != nil {
|
||||||
|
respinStatus = data.Results[0].ArrSpins[0].Special.(SpinLock).ReSpinStatus
|
||||||
|
}
|
||||||
|
if respinStatus == 0 || respinStatus == 1 {
|
||||||
|
//第一次触发或者正常模式
|
||||||
|
//logger.Logger.Trace("=============addcoin1111 ", -data.TotalBet)
|
||||||
|
playerEx.AddCoin(int64(-data.TotalBet), common.GainWay_HundredSceneLost, base.SyncFlag_ToClient, "system", s.GetSceneName())
|
||||||
|
playerEx.totalBet = int64(data.TotalBet)
|
||||||
|
//logger.Logger.Trace("=======bet======dif++++ ", float64(playerEx.Coin)-data.BetAfterCoin)
|
||||||
|
}
|
||||||
|
var taxCoin float64
|
||||||
|
if data.RoundReward > 0 {
|
||||||
|
//税收比例
|
||||||
|
taxRate := sceneEx.GetDBGameFree().GetTaxRate()
|
||||||
|
if taxRate < 0 || taxRate > 10000 {
|
||||||
|
taxRate = 500
|
||||||
|
}
|
||||||
|
taxCoin = data.RoundReward * float64(taxRate) / 10000
|
||||||
|
data.RoundReward = data.RoundReward - taxCoin
|
||||||
|
playerEx.AddServiceFee(int64(taxCoin))
|
||||||
|
playerEx.taxCoin = int64(taxCoin)
|
||||||
|
playerEx.winCoin = int64(data.RoundReward)
|
||||||
|
}
|
||||||
|
pi, _ := json.Marshal(data)
|
||||||
|
gameEndStr = string(pi)
|
||||||
|
if respinStatus == 0 || respinStatus == 3 {
|
||||||
|
//logger.Logger.Trace("===win==========addcoin222 ", data.RoundReward)
|
||||||
|
playerEx.AddCoin(int64(data.RoundReward), common.GainWay_HundredSceneWin, 0, "system", s.GetSceneName())
|
||||||
|
//logger.Logger.Trace("=======win======dif++++ ", float64(playerEx.Coin)-data.FinalCoin)
|
||||||
|
//免费游戏结束或者正常模式
|
||||||
|
sceneEx.StaticsLaba(&base.StaticLabaParam{
|
||||||
|
SnId: playerEx.SnId,
|
||||||
|
Gain: int64(data.RoundReward - data.TotalBet),
|
||||||
|
GainTax: int64(taxCoin),
|
||||||
|
IsAddTimes: true,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if respinStatus == 0 || respinStatus == 3 {
|
||||||
|
playerEx.isRespin = false
|
||||||
|
} else {
|
||||||
|
playerEx.isRespin = true
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
logger.Logger.Error("slots Play err:", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
playerEx.SlotsSession.SetCoin(int64(data.FinalCoin) * fortunetiger.NowByte)
|
||||||
|
|
||||||
|
//logger.Logger.Trace("======end=======init dif coin", playerEx.Coin-playerEx.SlotsSession.Coin()/fortunetiger.NowByte)
|
||||||
|
|
||||||
|
if playerEx.Coin != int64(data.FinalCoin) {
|
||||||
|
logger.Logger.Error("==========playerEx.Coin != data.FinalCoin==============", (float64(playerEx.Coin)-data.FinalCoin)/10000)
|
||||||
|
}
|
||||||
|
pack := &protocol.SCFortuneTigerBilled{
|
||||||
|
OpRetCode: proto.Int32(0),
|
||||||
|
GameEndStr: proto.String(gameEndStr),
|
||||||
|
}
|
||||||
|
proto.SetDefaults(pack)
|
||||||
|
logger.Logger.Trace("SCFortuneTigerBilled", pack.String())
|
||||||
|
playerEx.SendToClient(int(protocol.FortuneTigerPID_PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED), pack)
|
||||||
|
|
||||||
|
// 记录本次操作
|
||||||
|
FortuneTigerAndSaveLog(sceneEx, playerEx, data)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
// 玩家事件
|
||||||
|
func (this *SceneStateStartFortuneTiger) OnPlayerEvent(s *base.Scene, p *base.Player, evtcode int, params []int64) {
|
||||||
|
logger.Logger.Trace("(this *SceneStateStartFortuneTiger) OnPlayerEvent, sceneId=", s.GetSceneId(), " player=", p.SnId, " evtcode=", evtcode)
|
||||||
|
this.SceneBaseStateFortuneTiger.OnPlayerEvent(s, p, evtcode, params)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *SceneStateStartFortuneTiger) OnTick(s *base.Scene) {
|
||||||
|
this.SceneBaseStateFortuneTiger.OnTick(s)
|
||||||
|
}
|
||||||
|
|
||||||
|
// //////////////////////////////////////////////////////////////////////////////
|
||||||
|
func (this *ScenePolicyFortuneTiger) RegisteSceneState(state base.SceneState) {
|
||||||
|
if state == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
stateid := state.GetState()
|
||||||
|
if stateid < 0 || stateid >= fortunetiger.FortuneTigerStateMax {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.states[stateid] = state
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *ScenePolicyFortuneTiger) GetSceneState(s *base.Scene, stateid int) base.SceneState {
|
||||||
|
if stateid >= 0 && stateid < fortunetiger.FortuneTigerStateMax {
|
||||||
|
return this.states[stateid]
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func FortuneTigerAndSaveLog(sceneEx *FortuneTigerSceneData, playerEx *FortuneTigerPlayerData, data assemble.GameEnd) {
|
||||||
|
if !playerEx.IsRob {
|
||||||
|
data.SnId = playerEx.SnId
|
||||||
|
info, err := model.MarshalGameNoteByROLL(data)
|
||||||
|
if err == nil {
|
||||||
|
logid, _ := model.AutoIncGameLogId()
|
||||||
|
playerEx.currentLogId = logid
|
||||||
|
sceneEx.SaveGameDetailedLog(logid, info, &base.GameDetailedParam{})
|
||||||
|
totalin := playerEx.totalBet
|
||||||
|
totalout := int64(data.RoundReward) + playerEx.taxCoin
|
||||||
|
validFlow := totalin + totalout
|
||||||
|
validBet := common.AbsI64(totalin - totalout)
|
||||||
|
logParam := &base.SaveGamePlayerListLogParam{
|
||||||
|
Platform: playerEx.Platform,
|
||||||
|
Channel: playerEx.Channel,
|
||||||
|
Promoter: playerEx.BeUnderAgentCode,
|
||||||
|
PackageTag: playerEx.PackageID,
|
||||||
|
InviterId: playerEx.InviterId,
|
||||||
|
LogId: logid,
|
||||||
|
TotalIn: totalin,
|
||||||
|
TotalOut: totalout,
|
||||||
|
TaxCoin: playerEx.taxCoin,
|
||||||
|
BetAmount: playerEx.totalBet,
|
||||||
|
WinAmountNoAnyTax: int64(data.RoundReward) + playerEx.taxCoin,
|
||||||
|
ValidBet: validBet,
|
||||||
|
ValidFlow: validFlow,
|
||||||
|
IsFirstGame: sceneEx.IsPlayerFirst(playerEx.Player),
|
||||||
|
}
|
||||||
|
sceneEx.SaveGamePlayerListLog(playerEx.SnId, logParam)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//统计输下注金币数
|
||||||
|
if !sceneEx.Testing && !playerEx.IsRob {
|
||||||
|
playerBet := &server.PlayerData{
|
||||||
|
SnId: proto.Int32(playerEx.SnId),
|
||||||
|
Bet: proto.Int64(playerEx.CurrentBet),
|
||||||
|
Gain: proto.Int64(int64(data.RoundReward) + playerEx.taxCoin),
|
||||||
|
Tax: proto.Int64(playerEx.taxCoin),
|
||||||
|
Coin: proto.Int64(playerEx.GetCoin()),
|
||||||
|
GameCoinTs: proto.Int64(playerEx.GameCoinTs),
|
||||||
|
}
|
||||||
|
gwPlayerBet := &server.GWPlayerData{
|
||||||
|
SceneId: sceneEx.SceneId,
|
||||||
|
GameFreeId: proto.Int32(sceneEx.GetDBGameFree().GetId()),
|
||||||
|
}
|
||||||
|
gwPlayerBet.Datas = append(gwPlayerBet.Datas, playerBet)
|
||||||
|
sceneEx.SyncPlayerDatas(&base.PlayerDataParam{
|
||||||
|
HasRobotGaming: false,
|
||||||
|
Data: gwPlayerBet,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
playerEx.taxCoin = 0
|
||||||
|
playerEx.winCoin = 0
|
||||||
|
|
||||||
|
if sceneEx.CheckNeedDestroy() && data.Results[0].FreeNum <= 0 {
|
||||||
|
sceneEx.SceneDestroy(true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func init() {
|
||||||
|
//主状态
|
||||||
|
ScenePolicyFortuneTigerSington.RegisteSceneState(&SceneStateStartFortuneTiger{})
|
||||||
|
core.RegisteHook(core.HOOK_BEFORE_START, func() error {
|
||||||
|
base.RegisteScenePolicy(common.GameId_FortuneTiger, fortunetiger.RoomMode_Classic, ScenePolicyFortuneTigerSington)
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -31,7 +31,9 @@ import (
|
||||||
_ "mongo.games.com/game/gamesrv/caishen"
|
_ "mongo.games.com/game/gamesrv/caishen"
|
||||||
_ "mongo.games.com/game/gamesrv/easterisland"
|
_ "mongo.games.com/game/gamesrv/easterisland"
|
||||||
_ "mongo.games.com/game/gamesrv/fortunedragon"
|
_ "mongo.games.com/game/gamesrv/fortunedragon"
|
||||||
|
_ "mongo.games.com/game/gamesrv/fortuneox"
|
||||||
_ "mongo.games.com/game/gamesrv/fortunerabbit"
|
_ "mongo.games.com/game/gamesrv/fortunerabbit"
|
||||||
|
_ "mongo.games.com/game/gamesrv/fortunetiger"
|
||||||
_ "mongo.games.com/game/gamesrv/fruits"
|
_ "mongo.games.com/game/gamesrv/fruits"
|
||||||
_ "mongo.games.com/game/gamesrv/iceage"
|
_ "mongo.games.com/game/gamesrv/iceage"
|
||||||
_ "mongo.games.com/game/gamesrv/richblessed"
|
_ "mongo.games.com/game/gamesrv/richblessed"
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
|
@ -9,170 +9,170 @@ import "mongo.games.com/game/gamesrv/slotspkg/internal/exported/excel2go/structs
|
||||||
func init() {
|
func init() {
|
||||||
FortuneDragonBaseMultiplier = []*structs.FortuneDragonBaseMultiplier{
|
FortuneDragonBaseMultiplier = []*structs.FortuneDragonBaseMultiplier{
|
||||||
{
|
{
|
||||||
WinRateMin: 0,
|
WinRateMin: 0,
|
||||||
WinRateMax: 0.01,
|
WinRateMax: 0.01,
|
||||||
ItemIds: []int64{200, 8, 9, 10},
|
ItemIds: []int64{200, 8, 9, 10},
|
||||||
MultiplierWeights: []int64{140, 10, 20, 10},
|
MultiplierWeights: []int64{140, 10, 20, 10},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
WinRateMin: 0.01,
|
WinRateMin: 0.01,
|
||||||
WinRateMax: 1,
|
WinRateMax: 1,
|
||||||
ItemIds: []int64{200, 8, 9, 10},
|
ItemIds: []int64{200, 8, 9, 10},
|
||||||
MultiplierWeights: []int64{1689, 98, 176, 100},
|
MultiplierWeights: []int64{1689, 98, 176, 100},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
WinRateMin: 1,
|
WinRateMin: 1,
|
||||||
WinRateMax: 3,
|
WinRateMax: 3,
|
||||||
ItemIds: []int64{200, 8, 9, 10},
|
ItemIds: []int64{200, 8, 9, 10},
|
||||||
MultiplierWeights: []int64{60, 8, 10, 2},
|
MultiplierWeights: []int64{60, 8, 10, 2},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
WinRateMin: 3,
|
WinRateMin: 3,
|
||||||
WinRateMax: 10,
|
WinRateMax: 10,
|
||||||
ItemIds: []int64{200, 8, 9, 10},
|
ItemIds: []int64{200, 8, 9, 10},
|
||||||
MultiplierWeights: []int64{2883, 100, 100, 250},
|
MultiplierWeights: []int64{2883, 100, 100, 250},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
WinRateMin: 10,
|
WinRateMin: 10,
|
||||||
WinRateMax: 20,
|
WinRateMax: 20,
|
||||||
ItemIds: []int64{200, 8, 9, 10},
|
ItemIds: []int64{200, 8, 9, 10},
|
||||||
MultiplierWeights: []int64{820, 1585, 100, 10},
|
MultiplierWeights: []int64{820, 1585, 100, 10},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
WinRateMin: 20,
|
WinRateMin: 20,
|
||||||
WinRateMax: 999999,
|
WinRateMax: 999999,
|
||||||
ItemIds: []int64{200, 8, 9, 10},
|
ItemIds: []int64{200, 8, 9, 10},
|
||||||
MultiplierWeights: []int64{2884, 8, 10, 287},
|
MultiplierWeights: []int64{2884, 8, 10, 287},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneDragonBetBetChangeList = map[int64]*structs.FortuneDragonBetBetChangeList{
|
FortuneDragonBetBetChangeList = map[int64]*structs.FortuneDragonBetBetChangeList{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetChangeList: 150000,
|
BetChangeList: 150000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetChangeList: 300000,
|
BetChangeList: 300000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 1,
|
BetLevelIndex: 1,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetChangeList: 450000,
|
BetChangeList: 450000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 2,
|
BetLevelIndex: 2,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetChangeList: 500000,
|
BetChangeList: 500000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetChangeList: 750000,
|
BetChangeList: 750000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetChangeList: 1500000,
|
BetChangeList: 1500000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetChangeList: 2500000,
|
BetChangeList: 2500000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetChangeList: 4500000,
|
BetChangeList: 4500000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetChangeList: 5000000,
|
BetChangeList: 5000000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetChangeList: 7500000,
|
BetChangeList: 7500000,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
10: {
|
10: {
|
||||||
Index: 10,
|
Index: 10,
|
||||||
BetChangeList: 15000000,
|
BetChangeList: 15000000,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
11: {
|
11: {
|
||||||
Index: 11,
|
Index: 11,
|
||||||
BetChangeList: 22500000,
|
BetChangeList: 22500000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
12: {
|
12: {
|
||||||
Index: 12,
|
Index: 12,
|
||||||
BetChangeList: 45000000,
|
BetChangeList: 45000000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneDragonBetBetLevel = map[int64]*structs.FortuneDragonBetBetLevel{
|
FortuneDragonBetBetLevel = map[int64]*structs.FortuneDragonBetBetLevel{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLevel: 1,
|
BetLevel: 1,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetLevel: 2,
|
BetLevel: 2,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetLevel: 3,
|
BetLevel: 3,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetLevel: 4,
|
BetLevel: 4,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetLevel: 5,
|
BetLevel: 5,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetLevel: 6,
|
BetLevel: 6,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetLevel: 7,
|
BetLevel: 7,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetLevel: 8,
|
BetLevel: 8,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetLevel: 9,
|
BetLevel: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetLevel: 10,
|
BetLevel: 10,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneDragonBetBetLine = map[int64]*structs.FortuneDragonBetBetLine{
|
FortuneDragonBetBetLine = map[int64]*structs.FortuneDragonBetBetLine{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLine: 5,
|
BetLine: 5,
|
||||||
BaseBet: 1,
|
BaseBet: 1,
|
||||||
},
|
},
|
||||||
|
|
@ -180,81 +180,81 @@ func init() {
|
||||||
|
|
||||||
FortuneDragonBetBetSize = map[int64]*structs.FortuneDragonBetBetSize{
|
FortuneDragonBetBetSize = map[int64]*structs.FortuneDragonBetBetSize{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetSize: 300000000,
|
BetSize: 300000000,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSize: 1000000000,
|
BetSize: 1000000000,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetSize: 3000000000,
|
BetSize: 3000000000,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetSize: 9000000000,
|
BetSize: 9000000000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneDragonBetFirstBet = map[int64]*structs.FortuneDragonBetFirstBet{
|
FortuneDragonBetFirstBet = map[int64]*structs.FortuneDragonBetFirstBet{
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 1,
|
BetLevelIndex: 1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneDragonFormation = []*structs.FortuneDragonFormation{
|
FortuneDragonFormation = []*structs.FortuneDragonFormation{
|
||||||
{
|
{
|
||||||
SpinType: 1,
|
SpinType: 1,
|
||||||
NodeType: "BaseSpin",
|
NodeType: "BaseSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "BaseSpin",
|
Reel: "BaseSpin",
|
||||||
Matrix: "Line5Form3X3TypeB",
|
Matrix: "Line5Form3X3TypeB",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 2,
|
FirstInitMethod: 2,
|
||||||
OtherInitMethod: 4,
|
OtherInitMethod: 4,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SpinType: 3,
|
SpinType: 3,
|
||||||
NodeType: "FreeSpin",
|
NodeType: "FreeSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "FreeSpin",
|
Reel: "FreeSpin",
|
||||||
Matrix: "Line5Form3X3TypeB",
|
Matrix: "Line5Form3X3TypeB",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 2,
|
FirstInitMethod: 2,
|
||||||
OtherInitMethod: 2,
|
OtherInitMethod: 2,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SpinType: 1,
|
SpinType: 1,
|
||||||
NodeType: "SureWinBaseSpin",
|
NodeType: "SureWinBaseSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "SureWinBaseSpin",
|
Reel: "SureWinBaseSpin",
|
||||||
Matrix: "Line5Form3X3TypeB",
|
Matrix: "Line5Form3X3TypeB",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 2,
|
FirstInitMethod: 2,
|
||||||
OtherInitMethod: 4,
|
OtherInitMethod: 4,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SpinType: 3,
|
SpinType: 3,
|
||||||
NodeType: "SureWinFreeSpin",
|
NodeType: "SureWinFreeSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "SureWinFreeSpin",
|
Reel: "SureWinFreeSpin",
|
||||||
Matrix: "Line5Form3X3TypeB",
|
Matrix: "Line5Form3X3TypeB",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 2,
|
FirstInitMethod: 2,
|
||||||
OtherInitMethod: 2,
|
OtherInitMethod: 2,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
|
|
@ -278,11 +278,11 @@ func init() {
|
||||||
FortuneDragonFreeMultiplierCount = []*structs.FortuneDragonFreeMultiplierCount{
|
FortuneDragonFreeMultiplierCount = []*structs.FortuneDragonFreeMultiplierCount{
|
||||||
{
|
{
|
||||||
MultiplierCount: 2,
|
MultiplierCount: 2,
|
||||||
Weight: 3,
|
Weight: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
MultiplierCount: 3,
|
MultiplierCount: 3,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -291,44 +291,44 @@ func init() {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
TypeWeight: map[int64]*structs.FortuneDragonMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneDragonMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "96",
|
Desc: "96",
|
||||||
Rtp: 0.96,
|
Rtp: 0.96,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
TypeWeight: map[int64]*structs.FortuneDragonMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneDragonMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "80",
|
Desc: "80",
|
||||||
Rtp: 0.8,
|
Rtp: 0.8,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
TypeWeight: map[int64]*structs.FortuneDragonMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneDragonMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "120",
|
Desc: "120",
|
||||||
Rtp: 1.2,
|
Rtp: 1.2,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneDragonOthers = []*structs.FortuneDragonOthers{
|
FortuneDragonOthers = []*structs.FortuneDragonOthers{
|
||||||
{
|
{
|
||||||
FreespinTriggerPro: 0.005,
|
FreespinTriggerPro: 0.005,
|
||||||
FreeSpinCount: 8,
|
FreeSpinCount: 8,
|
||||||
MaxWin: 2500,
|
MaxWin: 2500,
|
||||||
SureWinFreespinTriggerPro: 0.0273,
|
SureWinFreespinTriggerPro: 0.0273,
|
||||||
SureWinBetMultiplier: 5,
|
SureWinBetMultiplier: 5,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -398,103 +398,103 @@ func init() {
|
||||||
|
|
||||||
FortuneDragonSymbol = map[int64]*structs.FortuneDragonSymbol{
|
FortuneDragonSymbol = map[int64]*structs.FortuneDragonSymbol{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Name: "Wild",
|
Name: "Wild",
|
||||||
IsWild: true,
|
IsWild: true,
|
||||||
Group: []int64{1},
|
Group: []int64{1},
|
||||||
PayRate: []int64{0, 0, 100},
|
PayRate: []int64{0, 0, 100},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
Name: "元宝",
|
Name: "元宝",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{2},
|
Group: []int64{2},
|
||||||
PayRate: []int64{0, 0, 50},
|
PayRate: []int64{0, 0, 50},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
Name: "红包",
|
Name: "红包",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{3},
|
Group: []int64{3},
|
||||||
PayRate: []int64{0, 0, 25},
|
PayRate: []int64{0, 0, 25},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
ID: 4,
|
ID: 4,
|
||||||
Name: "灯笼",
|
Name: "灯笼",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{4},
|
Group: []int64{4},
|
||||||
PayRate: []int64{0, 0, 10},
|
PayRate: []int64{0, 0, 10},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
ID: 5,
|
ID: 5,
|
||||||
Name: "福炮",
|
Name: "福炮",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{5},
|
Group: []int64{5},
|
||||||
PayRate: []int64{0, 0, 5},
|
PayRate: []int64{0, 0, 5},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
ID: 6,
|
ID: 6,
|
||||||
Name: "花结",
|
Name: "花结",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{6},
|
Group: []int64{6},
|
||||||
PayRate: []int64{0, 0, 3},
|
PayRate: []int64{0, 0, 3},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
ID: 7,
|
ID: 7,
|
||||||
Name: "铜钱",
|
Name: "铜钱",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{7},
|
Group: []int64{7},
|
||||||
PayRate: []int64{0, 0, 2},
|
PayRate: []int64{0, 0, 2},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
ID: 8,
|
ID: 8,
|
||||||
Name: "X2",
|
Name: "X2",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{8},
|
Group: []int64{8},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
ID: 9,
|
ID: 9,
|
||||||
Name: "X5",
|
Name: "X5",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{8},
|
Group: []int64{8},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
10: {
|
10: {
|
||||||
ID: 10,
|
ID: 10,
|
||||||
Name: "X10",
|
Name: "X10",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{8},
|
Group: []int64{8},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
200: {
|
200: {
|
||||||
ID: 200,
|
ID: 200,
|
||||||
Name: "Empty",
|
Name: "Empty",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{8},
|
Group: []int64{8},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,131 +9,131 @@ import "mongo.games.com/game/gamesrv/slotspkg/internal/exported/excel2go/structs
|
||||||
func init() {
|
func init() {
|
||||||
FortuneMouseBetBetChangeList = map[int64]*structs.FortuneMouseBetBetChangeList{
|
FortuneMouseBetBetChangeList = map[int64]*structs.FortuneMouseBetBetChangeList{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetChangeList: 0.15,
|
BetChangeList: 0.15,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetChangeList: 0.3,
|
BetChangeList: 0.3,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 1,
|
BetLevelIndex: 1,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetChangeList: 0.45,
|
BetChangeList: 0.45,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 2,
|
BetLevelIndex: 2,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetChangeList: 0.5,
|
BetChangeList: 0.5,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetChangeList: 0.75,
|
BetChangeList: 0.75,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetChangeList: 1.5,
|
BetChangeList: 1.5,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetChangeList: 2.5,
|
BetChangeList: 2.5,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetChangeList: 4.5,
|
BetChangeList: 4.5,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetChangeList: 5,
|
BetChangeList: 5,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetChangeList: 7.5,
|
BetChangeList: 7.5,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
10: {
|
10: {
|
||||||
Index: 10,
|
Index: 10,
|
||||||
BetChangeList: 15,
|
BetChangeList: 15,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
11: {
|
11: {
|
||||||
Index: 11,
|
Index: 11,
|
||||||
BetChangeList: 22.5,
|
BetChangeList: 22.5,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
12: {
|
12: {
|
||||||
Index: 12,
|
Index: 12,
|
||||||
BetChangeList: 45,
|
BetChangeList: 45,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneMouseBetBetLevel = map[int64]*structs.FortuneMouseBetBetLevel{
|
FortuneMouseBetBetLevel = map[int64]*structs.FortuneMouseBetBetLevel{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLevel: 1,
|
BetLevel: 1,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetLevel: 2,
|
BetLevel: 2,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetLevel: 3,
|
BetLevel: 3,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetLevel: 4,
|
BetLevel: 4,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetLevel: 5,
|
BetLevel: 5,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetLevel: 6,
|
BetLevel: 6,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetLevel: 7,
|
BetLevel: 7,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetLevel: 8,
|
BetLevel: 8,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetLevel: 9,
|
BetLevel: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetLevel: 10,
|
BetLevel: 10,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneMouseBetBetLine = map[int64]*structs.FortuneMouseBetBetLine{
|
FortuneMouseBetBetLine = map[int64]*structs.FortuneMouseBetBetLine{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLine: 5,
|
BetLine: 5,
|
||||||
BaseBet: 1,
|
BaseBet: 1,
|
||||||
},
|
},
|
||||||
|
|
@ -141,55 +141,55 @@ func init() {
|
||||||
|
|
||||||
FortuneMouseBetBetSize = map[int64]*structs.FortuneMouseBetBetSize{
|
FortuneMouseBetBetSize = map[int64]*structs.FortuneMouseBetBetSize{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetSize: 300,
|
BetSize: 300,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSize: 1000,
|
BetSize: 1000,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetSize: 3000,
|
BetSize: 3000,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetSize: 9000,
|
BetSize: 9000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneMouseBetFirstBet = map[int64]*structs.FortuneMouseBetFirstBet{
|
FortuneMouseBetFirstBet = map[int64]*structs.FortuneMouseBetFirstBet{
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 1,
|
BetLevelIndex: 1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneMouseFormation = []*structs.FortuneMouseFormation{
|
FortuneMouseFormation = []*structs.FortuneMouseFormation{
|
||||||
{
|
{
|
||||||
SpinType: 1,
|
SpinType: 1,
|
||||||
NodeType: "BaseSpin",
|
NodeType: "BaseSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "BaseSpin",
|
Reel: "BaseSpin",
|
||||||
Matrix: "Line5Form3X3TypeB",
|
Matrix: "Line5Form3X3TypeB",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 2,
|
FirstInitMethod: 2,
|
||||||
OtherInitMethod: 4,
|
OtherInitMethod: 4,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SpinType: 3,
|
SpinType: 3,
|
||||||
NodeType: "ReSpin",
|
NodeType: "ReSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "ReSpin",
|
Reel: "ReSpin",
|
||||||
Matrix: "Line5Form3X3TypeB",
|
Matrix: "Line5Form3X3TypeB",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 3,
|
FirstInitMethod: 3,
|
||||||
OtherInitMethod: 3,
|
OtherInitMethod: 3,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
|
|
@ -200,42 +200,42 @@ func init() {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
TypeWeight: map[int64]*structs.FortuneMouseMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneMouseMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "96",
|
Desc: "96",
|
||||||
Rtp: 0.96,
|
Rtp: 0.96,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
TypeWeight: map[int64]*structs.FortuneMouseMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneMouseMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "80",
|
Desc: "80",
|
||||||
Rtp: 0.8,
|
Rtp: 0.8,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
TypeWeight: map[int64]*structs.FortuneMouseMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneMouseMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "120",
|
Desc: "120",
|
||||||
Rtp: 1.2,
|
Rtp: 1.2,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneMouseOthers = []*structs.FortuneMouseOthers{
|
FortuneMouseOthers = []*structs.FortuneMouseOthers{
|
||||||
{
|
{
|
||||||
RespinTriggerPro: 0.0123,
|
RespinTriggerPro: 0.0123,
|
||||||
MaxWin: 1000,
|
MaxWin: 1000,
|
||||||
ExtraWin: 700,
|
ExtraWin: 700,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -273,37 +273,37 @@ func init() {
|
||||||
|
|
||||||
FortuneMouseSuperStackWeight = []*structs.FortuneMouseSuperStackWeight{
|
FortuneMouseSuperStackWeight = []*structs.FortuneMouseSuperStackWeight{
|
||||||
{
|
{
|
||||||
ID: 1,
|
ID: 1,
|
||||||
ItemID: 1,
|
ItemID: 1,
|
||||||
Weight: 0,
|
Weight: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 2,
|
ID: 2,
|
||||||
ItemID: 2,
|
ItemID: 2,
|
||||||
Weight: 3,
|
Weight: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 3,
|
ID: 3,
|
||||||
ItemID: 3,
|
ItemID: 3,
|
||||||
Weight: 5,
|
Weight: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 4,
|
ID: 4,
|
||||||
ItemID: 4,
|
ItemID: 4,
|
||||||
Weight: 7,
|
Weight: 7,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 5,
|
ID: 5,
|
||||||
ItemID: 5,
|
ItemID: 5,
|
||||||
Weight: 8,
|
Weight: 8,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 6,
|
ID: 6,
|
||||||
ItemID: 6,
|
ItemID: 6,
|
||||||
Weight: 9,
|
Weight: 9,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 7,
|
ID: 7,
|
||||||
ItemID: 7,
|
ItemID: 7,
|
||||||
Weight: 10,
|
Weight: 10,
|
||||||
},
|
},
|
||||||
|
|
@ -311,76 +311,76 @@ func init() {
|
||||||
|
|
||||||
FortuneMouseSymbol = map[int64]*structs.FortuneMouseSymbol{
|
FortuneMouseSymbol = map[int64]*structs.FortuneMouseSymbol{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Name: "wild",
|
Name: "wild",
|
||||||
IsWild: true,
|
IsWild: true,
|
||||||
Group: []int64{1},
|
Group: []int64{1},
|
||||||
PayRate: []int64{0, 0, 300},
|
PayRate: []int64{0, 0, 300},
|
||||||
ClientOrder: 1,
|
ClientOrder: 1,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
Name: "倒福",
|
Name: "倒福",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{2},
|
Group: []int64{2},
|
||||||
PayRate: []int64{0, 0, 100},
|
PayRate: []int64{0, 0, 100},
|
||||||
ClientOrder: 2,
|
ClientOrder: 2,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
Name: "红包",
|
Name: "红包",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{3},
|
Group: []int64{3},
|
||||||
PayRate: []int64{0, 0, 50},
|
PayRate: []int64{0, 0, 50},
|
||||||
ClientOrder: 3,
|
ClientOrder: 3,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
ID: 4,
|
ID: 4,
|
||||||
Name: "钱袋",
|
Name: "钱袋",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{4},
|
Group: []int64{4},
|
||||||
PayRate: []int64{0, 0, 30},
|
PayRate: []int64{0, 0, 30},
|
||||||
ClientOrder: 4,
|
ClientOrder: 4,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
ID: 5,
|
ID: 5,
|
||||||
Name: "爆竹",
|
Name: "爆竹",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{5},
|
Group: []int64{5},
|
||||||
PayRate: []int64{0, 0, 15},
|
PayRate: []int64{0, 0, 15},
|
||||||
ClientOrder: 5,
|
ClientOrder: 5,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
ID: 6,
|
ID: 6,
|
||||||
Name: "橘子",
|
Name: "橘子",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{6},
|
Group: []int64{6},
|
||||||
PayRate: []int64{0, 0, 5},
|
PayRate: []int64{0, 0, 5},
|
||||||
ClientOrder: 6,
|
ClientOrder: 6,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
ID: 7,
|
ID: 7,
|
||||||
Name: "花生",
|
Name: "花生",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{7},
|
Group: []int64{7},
|
||||||
PayRate: []int64{0, 0, 3},
|
PayRate: []int64{0, 0, 3},
|
||||||
ClientOrder: 7,
|
ClientOrder: 7,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
ID: 8,
|
ID: 8,
|
||||||
Name: "SuperStack",
|
Name: "SuperStack",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{8},
|
Group: []int64{8},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,131 +9,131 @@ import "mongo.games.com/game/gamesrv/slotspkg/internal/exported/excel2go/structs
|
||||||
func init() {
|
func init() {
|
||||||
FortuneOxBetBetChangeList = map[int64]*structs.FortuneOxBetBetChangeList{
|
FortuneOxBetBetChangeList = map[int64]*structs.FortuneOxBetBetChangeList{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetChangeList: 300000,
|
BetChangeList: 300000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetChangeList: 600000,
|
BetChangeList: 600000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 1,
|
BetLevelIndex: 1,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetChangeList: 900000,
|
BetChangeList: 900000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 2,
|
BetLevelIndex: 2,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetChangeList: 1000000,
|
BetChangeList: 1000000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetChangeList: 1500000,
|
BetChangeList: 1500000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetChangeList: 3000000,
|
BetChangeList: 3000000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetChangeList: 5000000,
|
BetChangeList: 5000000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetChangeList: 9000000,
|
BetChangeList: 9000000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetChangeList: 10000000,
|
BetChangeList: 10000000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetChangeList: 15000000,
|
BetChangeList: 15000000,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
10: {
|
10: {
|
||||||
Index: 10,
|
Index: 10,
|
||||||
BetChangeList: 30000000,
|
BetChangeList: 30000000,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
11: {
|
11: {
|
||||||
Index: 11,
|
Index: 11,
|
||||||
BetChangeList: 45000000,
|
BetChangeList: 45000000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
12: {
|
12: {
|
||||||
Index: 12,
|
Index: 12,
|
||||||
BetChangeList: 90000000,
|
BetChangeList: 90000000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneOxBetBetLevel = map[int64]*structs.FortuneOxBetBetLevel{
|
FortuneOxBetBetLevel = map[int64]*structs.FortuneOxBetBetLevel{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLevel: 1,
|
BetLevel: 1,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetLevel: 2,
|
BetLevel: 2,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetLevel: 3,
|
BetLevel: 3,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetLevel: 4,
|
BetLevel: 4,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetLevel: 5,
|
BetLevel: 5,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetLevel: 6,
|
BetLevel: 6,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetLevel: 7,
|
BetLevel: 7,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetLevel: 8,
|
BetLevel: 8,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetLevel: 9,
|
BetLevel: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetLevel: 10,
|
BetLevel: 10,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneOxBetBetLine = map[int64]*structs.FortuneOxBetBetLine{
|
FortuneOxBetBetLine = map[int64]*structs.FortuneOxBetBetLine{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLine: 10,
|
BetLine: 10,
|
||||||
BaseBet: 1,
|
BaseBet: 1,
|
||||||
},
|
},
|
||||||
|
|
@ -141,55 +141,55 @@ func init() {
|
||||||
|
|
||||||
FortuneOxBetBetSize = map[int64]*structs.FortuneOxBetBetSize{
|
FortuneOxBetBetSize = map[int64]*structs.FortuneOxBetBetSize{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetSize: 300000000,
|
BetSize: 300000000,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSize: 1000000000,
|
BetSize: 1000000000,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetSize: 3000000000,
|
BetSize: 3000000000,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetSize: 9000000000,
|
BetSize: 9000000000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneOxBetFirstBet = map[int64]*structs.FortuneOxBetFirstBet{
|
FortuneOxBetFirstBet = map[int64]*structs.FortuneOxBetFirstBet{
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneOxFormation = []*structs.FortuneOxFormation{
|
FortuneOxFormation = []*structs.FortuneOxFormation{
|
||||||
{
|
{
|
||||||
SpinType: 1,
|
SpinType: 1,
|
||||||
NodeType: "BaseSpin",
|
NodeType: "BaseSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "BaseSpin",
|
Reel: "BaseSpin",
|
||||||
Matrix: "Line10Form343TypeA",
|
Matrix: "Line10Form343TypeA",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 2,
|
FirstInitMethod: 2,
|
||||||
OtherInitMethod: 4,
|
OtherInitMethod: 4,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SpinType: 3,
|
SpinType: 3,
|
||||||
NodeType: "ReSpin",
|
NodeType: "ReSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "ReSpin",
|
Reel: "ReSpin",
|
||||||
Matrix: "Line10Form343TypeA",
|
Matrix: "Line10Form343TypeA",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 3,
|
FirstInitMethod: 3,
|
||||||
OtherInitMethod: 3,
|
OtherInitMethod: 3,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
|
|
@ -200,42 +200,42 @@ func init() {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
TypeWeight: map[int64]*structs.FortuneOxMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneOxMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "96",
|
Desc: "96",
|
||||||
Rtp: 0.96,
|
Rtp: 0.96,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
TypeWeight: map[int64]*structs.FortuneOxMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneOxMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "80",
|
Desc: "80",
|
||||||
Rtp: 0.8,
|
Rtp: 0.8,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
TypeWeight: map[int64]*structs.FortuneOxMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneOxMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "120",
|
Desc: "120",
|
||||||
Rtp: 1.2,
|
Rtp: 1.2,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneOxOthers = []*structs.FortuneOxOthers{
|
FortuneOxOthers = []*structs.FortuneOxOthers{
|
||||||
{
|
{
|
||||||
RespinTriggerPro: 0.0107,
|
RespinTriggerPro: 0.0107,
|
||||||
Multiplier: 10,
|
Multiplier: 10,
|
||||||
MaxWin: 2000,
|
MaxWin: 2000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -273,37 +273,37 @@ func init() {
|
||||||
|
|
||||||
FortuneOxSuperStack1Weight = []*structs.FortuneOxSuperStack1Weight{
|
FortuneOxSuperStack1Weight = []*structs.FortuneOxSuperStack1Weight{
|
||||||
{
|
{
|
||||||
ID: 1,
|
ID: 1,
|
||||||
ItemID: 1,
|
ItemID: 1,
|
||||||
Weight: 0,
|
Weight: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 2,
|
ID: 2,
|
||||||
ItemID: 2,
|
ItemID: 2,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 3,
|
ID: 3,
|
||||||
ItemID: 3,
|
ItemID: 3,
|
||||||
Weight: 4,
|
Weight: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 4,
|
ID: 4,
|
||||||
ItemID: 4,
|
ItemID: 4,
|
||||||
Weight: 10,
|
Weight: 10,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 5,
|
ID: 5,
|
||||||
ItemID: 5,
|
ItemID: 5,
|
||||||
Weight: 15,
|
Weight: 15,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 6,
|
ID: 6,
|
||||||
ItemID: 6,
|
ItemID: 6,
|
||||||
Weight: 30,
|
Weight: 30,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 7,
|
ID: 7,
|
||||||
ItemID: 7,
|
ItemID: 7,
|
||||||
Weight: 40,
|
Weight: 40,
|
||||||
},
|
},
|
||||||
|
|
@ -311,37 +311,37 @@ func init() {
|
||||||
|
|
||||||
FortuneOxSuperStack2Weight = []*structs.FortuneOxSuperStack2Weight{
|
FortuneOxSuperStack2Weight = []*structs.FortuneOxSuperStack2Weight{
|
||||||
{
|
{
|
||||||
ID: 1,
|
ID: 1,
|
||||||
ItemID: 1,
|
ItemID: 1,
|
||||||
Weight: 0,
|
Weight: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 2,
|
ID: 2,
|
||||||
ItemID: 2,
|
ItemID: 2,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 3,
|
ID: 3,
|
||||||
ItemID: 3,
|
ItemID: 3,
|
||||||
Weight: 2,
|
Weight: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 4,
|
ID: 4,
|
||||||
ItemID: 4,
|
ItemID: 4,
|
||||||
Weight: 3,
|
Weight: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 5,
|
ID: 5,
|
||||||
ItemID: 5,
|
ItemID: 5,
|
||||||
Weight: 4,
|
Weight: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 6,
|
ID: 6,
|
||||||
ItemID: 6,
|
ItemID: 6,
|
||||||
Weight: 5,
|
Weight: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 7,
|
ID: 7,
|
||||||
ItemID: 7,
|
ItemID: 7,
|
||||||
Weight: 6,
|
Weight: 6,
|
||||||
},
|
},
|
||||||
|
|
@ -349,85 +349,85 @@ func init() {
|
||||||
|
|
||||||
FortuneOxSymbol = map[int64]*structs.FortuneOxSymbol{
|
FortuneOxSymbol = map[int64]*structs.FortuneOxSymbol{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Name: "wild",
|
Name: "wild",
|
||||||
IsWild: true,
|
IsWild: true,
|
||||||
Group: []int64{1},
|
Group: []int64{1},
|
||||||
PayRate: []int64{0, 0, 200},
|
PayRate: []int64{0, 0, 200},
|
||||||
ClientOrder: 1,
|
ClientOrder: 1,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
Name: "元宝",
|
Name: "元宝",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{2},
|
Group: []int64{2},
|
||||||
PayRate: []int64{0, 0, 100},
|
PayRate: []int64{0, 0, 100},
|
||||||
ClientOrder: 2,
|
ClientOrder: 2,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
Name: "金锦盒",
|
Name: "金锦盒",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{3},
|
Group: []int64{3},
|
||||||
PayRate: []int64{0, 0, 50},
|
PayRate: []int64{0, 0, 50},
|
||||||
ClientOrder: 3,
|
ClientOrder: 3,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
ID: 4,
|
ID: 4,
|
||||||
Name: "钱袋",
|
Name: "钱袋",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{4},
|
Group: []int64{4},
|
||||||
PayRate: []int64{0, 0, 20},
|
PayRate: []int64{0, 0, 20},
|
||||||
ClientOrder: 4,
|
ClientOrder: 4,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
ID: 5,
|
ID: 5,
|
||||||
Name: "红包",
|
Name: "红包",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{5},
|
Group: []int64{5},
|
||||||
PayRate: []int64{0, 0, 10},
|
PayRate: []int64{0, 0, 10},
|
||||||
ClientOrder: 5,
|
ClientOrder: 5,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
ID: 6,
|
ID: 6,
|
||||||
Name: "橘子",
|
Name: "橘子",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{6},
|
Group: []int64{6},
|
||||||
PayRate: []int64{0, 0, 5},
|
PayRate: []int64{0, 0, 5},
|
||||||
ClientOrder: 6,
|
ClientOrder: 6,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
ID: 7,
|
ID: 7,
|
||||||
Name: "炮竹",
|
Name: "炮竹",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{7},
|
Group: []int64{7},
|
||||||
PayRate: []int64{0, 0, 3},
|
PayRate: []int64{0, 0, 3},
|
||||||
ClientOrder: 7,
|
ClientOrder: 7,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
ID: 8,
|
ID: 8,
|
||||||
Name: "SuperStack1",
|
Name: "SuperStack1",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{8},
|
Group: []int64{8},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
ID: 9,
|
ID: 9,
|
||||||
Name: "SuperStack2",
|
Name: "SuperStack2",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{9},
|
Group: []int64{9},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,131 +9,131 @@ import "mongo.games.com/game/gamesrv/slotspkg/internal/exported/excel2go/structs
|
||||||
func init() {
|
func init() {
|
||||||
FortuneRabbitBetBetChangeList = map[int64]*structs.FortuneRabbitBetBetChangeList{
|
FortuneRabbitBetBetChangeList = map[int64]*structs.FortuneRabbitBetBetChangeList{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetChangeList: 300000,
|
BetChangeList: 300000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetChangeList: 600000,
|
BetChangeList: 600000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 1,
|
BetLevelIndex: 1,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetChangeList: 900000,
|
BetChangeList: 900000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 2,
|
BetLevelIndex: 2,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetChangeList: 1000000,
|
BetChangeList: 1000000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetChangeList: 1500000,
|
BetChangeList: 1500000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetChangeList: 3000000,
|
BetChangeList: 3000000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetChangeList: 5000000,
|
BetChangeList: 5000000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetChangeList: 9000000,
|
BetChangeList: 9000000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetChangeList: 10000000,
|
BetChangeList: 10000000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetChangeList: 15000000,
|
BetChangeList: 15000000,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
10: {
|
10: {
|
||||||
Index: 10,
|
Index: 10,
|
||||||
BetChangeList: 30000000,
|
BetChangeList: 30000000,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
11: {
|
11: {
|
||||||
Index: 11,
|
Index: 11,
|
||||||
BetChangeList: 45000000,
|
BetChangeList: 45000000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
12: {
|
12: {
|
||||||
Index: 12,
|
Index: 12,
|
||||||
BetChangeList: 90000000,
|
BetChangeList: 90000000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneRabbitBetBetLevel = map[int64]*structs.FortuneRabbitBetBetLevel{
|
FortuneRabbitBetBetLevel = map[int64]*structs.FortuneRabbitBetBetLevel{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLevel: 1,
|
BetLevel: 1,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetLevel: 2,
|
BetLevel: 2,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetLevel: 3,
|
BetLevel: 3,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetLevel: 4,
|
BetLevel: 4,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetLevel: 5,
|
BetLevel: 5,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetLevel: 6,
|
BetLevel: 6,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetLevel: 7,
|
BetLevel: 7,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetLevel: 8,
|
BetLevel: 8,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetLevel: 9,
|
BetLevel: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetLevel: 10,
|
BetLevel: 10,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneRabbitBetBetLine = map[int64]*structs.FortuneRabbitBetBetLine{
|
FortuneRabbitBetBetLine = map[int64]*structs.FortuneRabbitBetBetLine{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLine: 10,
|
BetLine: 10,
|
||||||
BaseBet: 1,
|
BaseBet: 1,
|
||||||
},
|
},
|
||||||
|
|
@ -141,156 +141,156 @@ func init() {
|
||||||
|
|
||||||
FortuneRabbitBetBetSize = map[int64]*structs.FortuneRabbitBetBetSize{
|
FortuneRabbitBetBetSize = map[int64]*structs.FortuneRabbitBetBetSize{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetSize: 300000000,
|
BetSize: 300000000,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSize: 1000000000,
|
BetSize: 1000000000,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetSize: 3000000000,
|
BetSize: 3000000000,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetSize: 9000000000,
|
BetSize: 9000000000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneRabbitBetFirstBet = map[int64]*structs.FortuneRabbitBetFirstBet{
|
FortuneRabbitBetFirstBet = map[int64]*structs.FortuneRabbitBetFirstBet{
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneRabbitCashPrizeWeight = []*structs.FortuneRabbitCashPrizeWeight{
|
FortuneRabbitCashPrizeWeight = []*structs.FortuneRabbitCashPrizeWeight{
|
||||||
{
|
{
|
||||||
ID: 1,
|
ID: 1,
|
||||||
PrizeValue: 0.5,
|
PrizeValue: 0.5,
|
||||||
Weight: 150,
|
Weight: 150,
|
||||||
NoWinWeight: 100,
|
NoWinWeight: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 2,
|
ID: 2,
|
||||||
PrizeValue: 1,
|
PrizeValue: 1,
|
||||||
Weight: 25,
|
Weight: 25,
|
||||||
NoWinWeight: 25,
|
NoWinWeight: 25,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 3,
|
ID: 3,
|
||||||
PrizeValue: 2,
|
PrizeValue: 2,
|
||||||
Weight: 9,
|
Weight: 9,
|
||||||
NoWinWeight: 9,
|
NoWinWeight: 9,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 4,
|
ID: 4,
|
||||||
PrizeValue: 5,
|
PrizeValue: 5,
|
||||||
Weight: 55,
|
Weight: 55,
|
||||||
NoWinWeight: 55,
|
NoWinWeight: 55,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 5,
|
ID: 5,
|
||||||
PrizeValue: 10,
|
PrizeValue: 10,
|
||||||
Weight: 6,
|
Weight: 6,
|
||||||
NoWinWeight: 12,
|
NoWinWeight: 12,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 6,
|
ID: 6,
|
||||||
PrizeValue: 20,
|
PrizeValue: 20,
|
||||||
Weight: 3,
|
Weight: 3,
|
||||||
NoWinWeight: 9,
|
NoWinWeight: 9,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 7,
|
ID: 7,
|
||||||
PrizeValue: 30,
|
PrizeValue: 30,
|
||||||
Weight: 0.6,
|
Weight: 0.6,
|
||||||
NoWinWeight: 6,
|
NoWinWeight: 6,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 8,
|
ID: 8,
|
||||||
PrizeValue: 50,
|
PrizeValue: 50,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
NoWinWeight: 3,
|
NoWinWeight: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 9,
|
ID: 9,
|
||||||
PrizeValue: 100,
|
PrizeValue: 100,
|
||||||
Weight: 0.39,
|
Weight: 0.39,
|
||||||
NoWinWeight: 0.9,
|
NoWinWeight: 0.9,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 10,
|
ID: 10,
|
||||||
PrizeValue: 500,
|
PrizeValue: 500,
|
||||||
Weight: 0.01,
|
Weight: 0.01,
|
||||||
NoWinWeight: 0.1,
|
NoWinWeight: 0.1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneRabbitForceCashCountWeight = []*structs.FortuneRabbitForceCashCountWeight{
|
FortuneRabbitForceCashCountWeight = []*structs.FortuneRabbitForceCashCountWeight{
|
||||||
{
|
{
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Count: 5,
|
Count: 5,
|
||||||
Weight: 80,
|
Weight: 80,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 2,
|
ID: 2,
|
||||||
Count: 6,
|
Count: 6,
|
||||||
Weight: 15,
|
Weight: 15,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 3,
|
ID: 3,
|
||||||
Count: 7,
|
Count: 7,
|
||||||
Weight: 5,
|
Weight: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 4,
|
ID: 4,
|
||||||
Count: 8,
|
Count: 8,
|
||||||
Weight: 0,
|
Weight: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 5,
|
ID: 5,
|
||||||
Count: 9,
|
Count: 9,
|
||||||
Weight: 0,
|
Weight: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 6,
|
ID: 6,
|
||||||
Count: 10,
|
Count: 10,
|
||||||
Weight: 0,
|
Weight: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 7,
|
ID: 7,
|
||||||
Count: 11,
|
Count: 11,
|
||||||
Weight: 0,
|
Weight: 0,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneRabbitFormation = []*structs.FortuneRabbitFormation{
|
FortuneRabbitFormation = []*structs.FortuneRabbitFormation{
|
||||||
{
|
{
|
||||||
SpinType: 1,
|
SpinType: 1,
|
||||||
NodeType: "BaseSpin",
|
NodeType: "BaseSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "BaseSpin",
|
Reel: "BaseSpin",
|
||||||
Matrix: "Line10Form343TypeA",
|
Matrix: "Line10Form343TypeA",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 2,
|
FirstInitMethod: 2,
|
||||||
OtherInitMethod: 4,
|
OtherInitMethod: 4,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SpinType: 3,
|
SpinType: 3,
|
||||||
NodeType: "FreeSpin",
|
NodeType: "FreeSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "FreeSpin",
|
Reel: "FreeSpin",
|
||||||
Matrix: "Line10Form343TypeA",
|
Matrix: "Line10Form343TypeA",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 3,
|
FirstInitMethod: 3,
|
||||||
OtherInitMethod: 3,
|
OtherInitMethod: 3,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
|
|
@ -301,58 +301,58 @@ func init() {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
TypeWeight: map[int64]*structs.FortuneRabbitMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneRabbitMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "96",
|
Desc: "96",
|
||||||
Rtp: 0.96,
|
Rtp: 0.96,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
TypeWeight: map[int64]*structs.FortuneRabbitMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneRabbitMapRTPModeTypeWeight{
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "80",
|
Desc: "80",
|
||||||
Rtp: 0.8,
|
Rtp: 0.8,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
TypeWeight: map[int64]*structs.FortuneRabbitMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneRabbitMapRTPModeTypeWeight{
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "120",
|
Desc: "120",
|
||||||
Rtp: 1.2,
|
Rtp: 1.2,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneRabbitOthers = []*structs.FortuneRabbitOthers{
|
FortuneRabbitOthers = []*structs.FortuneRabbitOthers{
|
||||||
{
|
{
|
||||||
FreespinTriggerPro: 0.0106,
|
FreespinTriggerPro: 0.0106,
|
||||||
FreeSpinCount: 8,
|
FreeSpinCount: 8,
|
||||||
MaxWin: 5000,
|
MaxWin: 5000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneRabbitOthersRTP120 = []*structs.FortuneRabbitOthersRTP120{
|
FortuneRabbitOthersRTP120 = []*structs.FortuneRabbitOthersRTP120{
|
||||||
{
|
{
|
||||||
FreespinTriggerPro: 0.01785,
|
FreespinTriggerPro: 0.01785,
|
||||||
FreeSpinCount: 8,
|
FreeSpinCount: 8,
|
||||||
MaxWin: 5000,
|
MaxWin: 5000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneRabbitOthersRTP80 = []*structs.FortuneRabbitOthersRTP80{
|
FortuneRabbitOthersRTP80 = []*structs.FortuneRabbitOthersRTP80{
|
||||||
{
|
{
|
||||||
FreespinTriggerPro: 0.00577,
|
FreespinTriggerPro: 0.00577,
|
||||||
FreeSpinCount: 8,
|
FreeSpinCount: 8,
|
||||||
MaxWin: 5000,
|
MaxWin: 5000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -390,85 +390,85 @@ func init() {
|
||||||
|
|
||||||
FortuneRabbitSymbol = map[int64]*structs.FortuneRabbitSymbol{
|
FortuneRabbitSymbol = map[int64]*structs.FortuneRabbitSymbol{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Name: "wild",
|
Name: "wild",
|
||||||
IsWild: true,
|
IsWild: true,
|
||||||
Group: []int64{1},
|
Group: []int64{1},
|
||||||
PayRate: []int64{0, 0, 200},
|
PayRate: []int64{0, 0, 200},
|
||||||
ClientOrder: 1,
|
ClientOrder: 1,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
Name: "元宝",
|
Name: "元宝",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{2},
|
Group: []int64{2},
|
||||||
PayRate: []int64{0, 0, 100},
|
PayRate: []int64{0, 0, 100},
|
||||||
ClientOrder: 2,
|
ClientOrder: 2,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
Name: "钱袋",
|
Name: "钱袋",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{3},
|
Group: []int64{3},
|
||||||
PayRate: []int64{0, 0, 50},
|
PayRate: []int64{0, 0, 50},
|
||||||
ClientOrder: 3,
|
ClientOrder: 3,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
ID: 4,
|
ID: 4,
|
||||||
Name: "红包",
|
Name: "红包",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{4},
|
Group: []int64{4},
|
||||||
PayRate: []int64{0, 0, 10},
|
PayRate: []int64{0, 0, 10},
|
||||||
ClientOrder: 4,
|
ClientOrder: 4,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
ID: 5,
|
ID: 5,
|
||||||
Name: "铜币",
|
Name: "铜币",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{5},
|
Group: []int64{5},
|
||||||
PayRate: []int64{0, 0, 5},
|
PayRate: []int64{0, 0, 5},
|
||||||
ClientOrder: 5,
|
ClientOrder: 5,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
ID: 6,
|
ID: 6,
|
||||||
Name: "爆竹",
|
Name: "爆竹",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{6},
|
Group: []int64{6},
|
||||||
PayRate: []int64{0, 0, 3},
|
PayRate: []int64{0, 0, 3},
|
||||||
ClientOrder: 6,
|
ClientOrder: 6,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
ID: 7,
|
ID: 7,
|
||||||
Name: "胡萝卜",
|
Name: "胡萝卜",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{7},
|
Group: []int64{7},
|
||||||
PayRate: []int64{0, 0, 2},
|
PayRate: []int64{0, 0, 2},
|
||||||
ClientOrder: 7,
|
ClientOrder: 7,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
ID: 8,
|
ID: 8,
|
||||||
Name: "Cash",
|
Name: "Cash",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{8},
|
Group: []int64{8},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
200: {
|
200: {
|
||||||
ID: 200,
|
ID: 200,
|
||||||
Name: "Empty",
|
Name: "Empty",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{200},
|
Group: []int64{200},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,131 +9,131 @@ import "mongo.games.com/game/gamesrv/slotspkg/internal/exported/excel2go/structs
|
||||||
func init() {
|
func init() {
|
||||||
FortuneTigerBetBetChangeList = map[int64]*structs.FortuneTigerBetBetChangeList{
|
FortuneTigerBetBetChangeList = map[int64]*structs.FortuneTigerBetBetChangeList{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetChangeList: 0.15,
|
BetChangeList: 150000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetChangeList: 0.3,
|
BetChangeList: 300000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 1,
|
BetLevelIndex: 1,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetChangeList: 0.45,
|
BetChangeList: 450000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 2,
|
BetLevelIndex: 2,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetChangeList: 0.5,
|
BetChangeList: 500000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetChangeList: 0.75,
|
BetChangeList: 750000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetChangeList: 1.5,
|
BetChangeList: 1500000,
|
||||||
BetSizeIndex: 0,
|
BetSizeIndex: 0,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetChangeList: 2.5,
|
BetChangeList: 2500000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetChangeList: 4.5,
|
BetChangeList: 4500000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 0,
|
BetLevelIndex: 0,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetChangeList: 5,
|
BetChangeList: 5000000,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetChangeList: 7.5,
|
BetChangeList: 7500000,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
10: {
|
10: {
|
||||||
Index: 10,
|
Index: 10,
|
||||||
BetChangeList: 15,
|
BetChangeList: 15000000,
|
||||||
BetSizeIndex: 2,
|
BetSizeIndex: 2,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
11: {
|
11: {
|
||||||
Index: 11,
|
Index: 11,
|
||||||
BetChangeList: 22.5,
|
BetChangeList: 22500000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 4,
|
BetLevelIndex: 4,
|
||||||
},
|
},
|
||||||
12: {
|
12: {
|
||||||
Index: 12,
|
Index: 12,
|
||||||
BetChangeList: 45,
|
BetChangeList: 45000000,
|
||||||
BetSizeIndex: 3,
|
BetSizeIndex: 3,
|
||||||
BetLevelIndex: 9,
|
BetLevelIndex: 9,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneTigerBetBetLevel = map[int64]*structs.FortuneTigerBetBetLevel{
|
FortuneTigerBetBetLevel = map[int64]*structs.FortuneTigerBetBetLevel{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLevel: 1,
|
BetLevel: 1,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetLevel: 2,
|
BetLevel: 2,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetLevel: 3,
|
BetLevel: 3,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetLevel: 4,
|
BetLevel: 4,
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
Index: 4,
|
Index: 4,
|
||||||
BetLevel: 5,
|
BetLevel: 5,
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
Index: 5,
|
Index: 5,
|
||||||
BetLevel: 6,
|
BetLevel: 6,
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
Index: 6,
|
Index: 6,
|
||||||
BetLevel: 7,
|
BetLevel: 7,
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
Index: 7,
|
Index: 7,
|
||||||
BetLevel: 8,
|
BetLevel: 8,
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
Index: 8,
|
Index: 8,
|
||||||
BetLevel: 9,
|
BetLevel: 9,
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
Index: 9,
|
Index: 9,
|
||||||
BetLevel: 10,
|
BetLevel: 10,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneTigerBetBetLine = map[int64]*structs.FortuneTigerBetBetLine{
|
FortuneTigerBetBetLine = map[int64]*structs.FortuneTigerBetBetLine{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetLine: 5,
|
BetLine: 5,
|
||||||
BaseBet: 1,
|
BaseBet: 1,
|
||||||
},
|
},
|
||||||
|
|
@ -141,55 +141,55 @@ func init() {
|
||||||
|
|
||||||
FortuneTigerBetBetSize = map[int64]*structs.FortuneTigerBetBetSize{
|
FortuneTigerBetBetSize = map[int64]*structs.FortuneTigerBetBetSize{
|
||||||
0: {
|
0: {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
BetSize: 300,
|
BetSize: 300000000,
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSize: 1000,
|
BetSize: 1000000000,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
Index: 2,
|
Index: 2,
|
||||||
BetSize: 3000,
|
BetSize: 3000000000,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
Index: 3,
|
Index: 3,
|
||||||
BetSize: 9000,
|
BetSize: 9000000000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneTigerBetFirstBet = map[int64]*structs.FortuneTigerBetFirstBet{
|
FortuneTigerBetFirstBet = map[int64]*structs.FortuneTigerBetFirstBet{
|
||||||
1: {
|
1: {
|
||||||
Index: 1,
|
Index: 1,
|
||||||
BetSizeIndex: 1,
|
BetSizeIndex: 1,
|
||||||
BetLevelIndex: 1,
|
BetLevelIndex: 1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneTigerFormation = []*structs.FortuneTigerFormation{
|
FortuneTigerFormation = []*structs.FortuneTigerFormation{
|
||||||
{
|
{
|
||||||
SpinType: 1,
|
SpinType: 1,
|
||||||
NodeType: "BaseSpin",
|
NodeType: "BaseSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "BaseSpin",
|
Reel: "BaseSpin",
|
||||||
Matrix: "Line5Form3X3TypeB",
|
Matrix: "Line5Form3X3TypeB",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 4,
|
FirstInitMethod: 4,
|
||||||
OtherInitMethod: 4,
|
OtherInitMethod: 4,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SpinType: 3,
|
SpinType: 3,
|
||||||
NodeType: "ReSpin",
|
NodeType: "ReSpin",
|
||||||
ID: 1,
|
ID: 1,
|
||||||
SeqID: 1,
|
SeqID: 1,
|
||||||
Reel: "ReSpin",
|
Reel: "ReSpin",
|
||||||
Matrix: "Line5Form3X3TypeB",
|
Matrix: "Line5Form3X3TypeB",
|
||||||
Symbol: "Default",
|
Symbol: "Default",
|
||||||
FirstInitMethod: 3,
|
FirstInitMethod: 3,
|
||||||
OtherInitMethod: 3,
|
OtherInitMethod: 3,
|
||||||
FirstInitSymbols: []int64{},
|
FirstInitSymbols: []int64{},
|
||||||
OtherInitSymbols: []int64{},
|
OtherInitSymbols: []int64{},
|
||||||
},
|
},
|
||||||
|
|
@ -200,42 +200,42 @@ func init() {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
TypeWeight: map[int64]*structs.FortuneTigerMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneTigerMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "96",
|
Desc: "96",
|
||||||
Rtp: 0.96,
|
Rtp: 0.96,
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
TypeWeight: map[int64]*structs.FortuneTigerMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneTigerMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "80",
|
Desc: "80",
|
||||||
Rtp: 0.8,
|
Rtp: 0.8,
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
TypeWeight: map[int64]*structs.FortuneTigerMapRTPModeTypeWeight{
|
TypeWeight: map[int64]*structs.FortuneTigerMapRTPModeTypeWeight{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Weight: 1,
|
Weight: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Desc: "120",
|
Desc: "120",
|
||||||
Rtp: 1.2,
|
Rtp: 1.2,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
FortuneTigerOthers = []*structs.FortuneTigerOthers{
|
FortuneTigerOthers = []*structs.FortuneTigerOthers{
|
||||||
{
|
{
|
||||||
RespinTriggerPro: 0.0104,
|
RespinTriggerPro: 0.0104,
|
||||||
Multiplier: 10,
|
Multiplier: 10,
|
||||||
MaxWin: 2500,
|
MaxWin: 2500,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -273,37 +273,37 @@ func init() {
|
||||||
|
|
||||||
FortuneTigerSuperStackWeight = []*structs.FortuneTigerSuperStackWeight{
|
FortuneTigerSuperStackWeight = []*structs.FortuneTigerSuperStackWeight{
|
||||||
{
|
{
|
||||||
ID: 1,
|
ID: 1,
|
||||||
ItemID: 1,
|
ItemID: 1,
|
||||||
Weight: 0,
|
Weight: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 2,
|
ID: 2,
|
||||||
ItemID: 2,
|
ItemID: 2,
|
||||||
Weight: 0.66,
|
Weight: 0.66,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 3,
|
ID: 3,
|
||||||
ItemID: 3,
|
ItemID: 3,
|
||||||
Weight: 3.34,
|
Weight: 3.34,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 4,
|
ID: 4,
|
||||||
ItemID: 4,
|
ItemID: 4,
|
||||||
Weight: 11,
|
Weight: 11,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 5,
|
ID: 5,
|
||||||
ItemID: 5,
|
ItemID: 5,
|
||||||
Weight: 15,
|
Weight: 15,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 6,
|
ID: 6,
|
||||||
ItemID: 6,
|
ItemID: 6,
|
||||||
Weight: 20,
|
Weight: 20,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 7,
|
ID: 7,
|
||||||
ItemID: 7,
|
ItemID: 7,
|
||||||
Weight: 50,
|
Weight: 50,
|
||||||
},
|
},
|
||||||
|
|
@ -311,85 +311,85 @@ func init() {
|
||||||
|
|
||||||
FortuneTigerSymbol = map[int64]*structs.FortuneTigerSymbol{
|
FortuneTigerSymbol = map[int64]*structs.FortuneTigerSymbol{
|
||||||
1: {
|
1: {
|
||||||
ID: 1,
|
ID: 1,
|
||||||
Name: "wild",
|
Name: "wild",
|
||||||
IsWild: true,
|
IsWild: true,
|
||||||
Group: []int64{1},
|
Group: []int64{1},
|
||||||
PayRate: []int64{0, 0, 250},
|
PayRate: []int64{0, 0, 250},
|
||||||
ClientOrder: 1,
|
ClientOrder: 1,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
ID: 2,
|
ID: 2,
|
||||||
Name: "元宝",
|
Name: "元宝",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{2},
|
Group: []int64{2},
|
||||||
PayRate: []int64{0, 0, 100},
|
PayRate: []int64{0, 0, 100},
|
||||||
ClientOrder: 2,
|
ClientOrder: 2,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
ID: 3,
|
ID: 3,
|
||||||
Name: "玉饰",
|
Name: "玉饰",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{3},
|
Group: []int64{3},
|
||||||
PayRate: []int64{0, 0, 25},
|
PayRate: []int64{0, 0, 25},
|
||||||
ClientOrder: 3,
|
ClientOrder: 3,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
ID: 4,
|
ID: 4,
|
||||||
Name: "福袋",
|
Name: "福袋",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{4},
|
Group: []int64{4},
|
||||||
PayRate: []int64{0, 0, 10},
|
PayRate: []int64{0, 0, 10},
|
||||||
ClientOrder: 4,
|
ClientOrder: 4,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
ID: 5,
|
ID: 5,
|
||||||
Name: "红包",
|
Name: "红包",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{5},
|
Group: []int64{5},
|
||||||
PayRate: []int64{0, 0, 8},
|
PayRate: []int64{0, 0, 8},
|
||||||
ClientOrder: 5,
|
ClientOrder: 5,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
ID: 6,
|
ID: 6,
|
||||||
Name: "爆竹",
|
Name: "爆竹",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{6},
|
Group: []int64{6},
|
||||||
PayRate: []int64{0, 0, 5},
|
PayRate: []int64{0, 0, 5},
|
||||||
ClientOrder: 6,
|
ClientOrder: 6,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
ID: 7,
|
ID: 7,
|
||||||
Name: "橘子",
|
Name: "橘子",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{7},
|
Group: []int64{7},
|
||||||
PayRate: []int64{0, 0, 3},
|
PayRate: []int64{0, 0, 3},
|
||||||
ClientOrder: 7,
|
ClientOrder: 7,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
ID: 8,
|
ID: 8,
|
||||||
Name: "SuperStack",
|
Name: "SuperStack",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{8},
|
Group: []int64{8},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
200: {
|
200: {
|
||||||
ID: 200,
|
ID: 200,
|
||||||
Name: "Empty",
|
Name: "Empty",
|
||||||
IsWild: false,
|
IsWild: false,
|
||||||
Group: []int64{200},
|
Group: []int64{200},
|
||||||
PayRate: []int64{0, 0, 0},
|
PayRate: []int64{0, 0, 0},
|
||||||
ClientOrder: 0,
|
ClientOrder: 0,
|
||||||
ClientDsc: "",
|
ClientDsc: "",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ import "mongo.games.com/game/gamesrv/slotspkg/internal/exported/excel2go/structs
|
||||||
func init() {
|
func init() {
|
||||||
MatrixFeaturesForm15X1TypeA = []*structs.MatrixFeaturesForm15X1TypeA{
|
MatrixFeaturesForm15X1TypeA = []*structs.MatrixFeaturesForm15X1TypeA{
|
||||||
{
|
{
|
||||||
Type: "FeatureForm15X1TypeA",
|
Type: "FeatureForm15X1TypeA",
|
||||||
LinkType: 2,
|
LinkType: 2,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -22,8 +22,8 @@ func init() {
|
||||||
|
|
||||||
MatrixFeaturesForm19X1TypeA = []*structs.MatrixFeaturesForm19X1TypeA{
|
MatrixFeaturesForm19X1TypeA = []*structs.MatrixFeaturesForm19X1TypeA{
|
||||||
{
|
{
|
||||||
Type: "FeatureForm19X1TypeA",
|
Type: "FeatureForm19X1TypeA",
|
||||||
LinkType: 2,
|
LinkType: 2,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -35,8 +35,8 @@ func init() {
|
||||||
|
|
||||||
MatrixFeaturesForm20X1TypeA = []*structs.MatrixFeaturesForm20X1TypeA{
|
MatrixFeaturesForm20X1TypeA = []*structs.MatrixFeaturesForm20X1TypeA{
|
||||||
{
|
{
|
||||||
Type: "FeatureForm20X1TypeA",
|
Type: "FeatureForm20X1TypeA",
|
||||||
LinkType: 2,
|
LinkType: 2,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -48,8 +48,8 @@ func init() {
|
||||||
|
|
||||||
MatrixFeaturesForm25X1TypeA = []*structs.MatrixFeaturesForm25X1TypeA{
|
MatrixFeaturesForm25X1TypeA = []*structs.MatrixFeaturesForm25X1TypeA{
|
||||||
{
|
{
|
||||||
Type: "FeatureForm25X1TypeA",
|
Type: "FeatureForm25X1TypeA",
|
||||||
LinkType: 2,
|
LinkType: 2,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -61,8 +61,8 @@ func init() {
|
||||||
|
|
||||||
MatrixFeaturesForm30X1TypeA = []*structs.MatrixFeaturesForm30X1TypeA{
|
MatrixFeaturesForm30X1TypeA = []*structs.MatrixFeaturesForm30X1TypeA{
|
||||||
{
|
{
|
||||||
Type: "FeatureForm30X1TypeA",
|
Type: "FeatureForm30X1TypeA",
|
||||||
LinkType: 2,
|
LinkType: 2,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -74,8 +74,8 @@ func init() {
|
||||||
|
|
||||||
MatrixFeaturesForm35X1TypeA = []*structs.MatrixFeaturesForm35X1TypeA{
|
MatrixFeaturesForm35X1TypeA = []*structs.MatrixFeaturesForm35X1TypeA{
|
||||||
{
|
{
|
||||||
Type: "FeatureForm35X1TypeA",
|
Type: "FeatureForm35X1TypeA",
|
||||||
LinkType: 2,
|
LinkType: 2,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -87,8 +87,8 @@ func init() {
|
||||||
|
|
||||||
MatrixFeaturesForm40X1 = []*structs.MatrixFeaturesForm40X1{
|
MatrixFeaturesForm40X1 = []*structs.MatrixFeaturesForm40X1{
|
||||||
{
|
{
|
||||||
Type: "FeatureForm40X1",
|
Type: "FeatureForm40X1",
|
||||||
LinkType: 2,
|
LinkType: 2,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 0,
|
LineCount: 0,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -100,8 +100,8 @@ func init() {
|
||||||
|
|
||||||
MatrixFeaturesForm40X1TypeA = []*structs.MatrixFeaturesForm40X1TypeA{
|
MatrixFeaturesForm40X1TypeA = []*structs.MatrixFeaturesForm40X1TypeA{
|
||||||
{
|
{
|
||||||
Type: "FeatureForm40X1",
|
Type: "FeatureForm40X1",
|
||||||
LinkType: 2,
|
LinkType: 2,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 0,
|
LineCount: 0,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -113,8 +113,8 @@ func init() {
|
||||||
|
|
||||||
MatrixFeaturesForm7X1TypeA = []*structs.MatrixFeaturesForm7X1TypeA{
|
MatrixFeaturesForm7X1TypeA = []*structs.MatrixFeaturesForm7X1TypeA{
|
||||||
{
|
{
|
||||||
Type: "FeatureForm15X1TypeA",
|
Type: "FeatureForm15X1TypeA",
|
||||||
LinkType: 2,
|
LinkType: 2,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -126,8 +126,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine100Form12X5TypeA = []*structs.MatrixLine100Form12X5TypeA{
|
MatrixLine100Form12X5TypeA = []*structs.MatrixLine100Form12X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line100Form12X5TypeA",
|
Type: "Line100Form12X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -238,8 +238,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine100Form6X5TypeA = []*structs.MatrixLine100Form6X5TypeA{
|
MatrixLine100Form6X5TypeA = []*structs.MatrixLine100Form6X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line100Form6X5TypeA",
|
Type: "Line100Form6X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -350,8 +350,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine10Form343TypeA = []*structs.MatrixLine10Form343TypeA{
|
MatrixLine10Form343TypeA = []*structs.MatrixLine10Form343TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line10Form343TypeA",
|
Type: "Line10Form343TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 10,
|
LineCount: 10,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -372,8 +372,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine10Form3X5TypeA = []*structs.MatrixLine10Form3X5TypeA{
|
MatrixLine10Form3X5TypeA = []*structs.MatrixLine10Form3X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line10Form3X5TypeA",
|
Type: "Line10Form3X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 10,
|
LineCount: 10,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -394,8 +394,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine1Form3X3TypeA = []*structs.MatrixLine1Form3X3TypeA{
|
MatrixLine1Form3X3TypeA = []*structs.MatrixLine1Form3X3TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line1Form3X3TypeA",
|
Type: "Line1Form3X3TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 1,
|
LineCount: 1,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -407,8 +407,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine1Form3X3TypeB = []*structs.MatrixLine1Form3X3TypeB{
|
MatrixLine1Form3X3TypeB = []*structs.MatrixLine1Form3X3TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line1Form3X3TypeB",
|
Type: "Line1Form3X3TypeB",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 1,
|
LineCount: 1,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -420,8 +420,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine1Form5X5TypeA = []*structs.MatrixLine1Form5X5TypeA{
|
MatrixLine1Form5X5TypeA = []*structs.MatrixLine1Form5X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line1Form5X5TypeA",
|
Type: "Line1Form5X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 1,
|
LineCount: 1,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -433,8 +433,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine20Form3X5TypeA = []*structs.MatrixLine20Form3X5TypeA{
|
MatrixLine20Form3X5TypeA = []*structs.MatrixLine20Form3X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line20Form3X5TypeA",
|
Type: "Line20Form3X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 20,
|
LineCount: 20,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -465,8 +465,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine25Form36666TypeA = []*structs.MatrixLine25Form36666TypeA{
|
MatrixLine25Form36666TypeA = []*structs.MatrixLine25Form36666TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line25Form36666TypeA",
|
Type: "Line25Form36666TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 25,
|
LineCount: 25,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -502,8 +502,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine25Form3X5TypeA = []*structs.MatrixLine25Form3X5TypeA{
|
MatrixLine25Form3X5TypeA = []*structs.MatrixLine25Form3X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line25Form3X5TypeA",
|
Type: "Line25Form3X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 25,
|
LineCount: 25,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -539,8 +539,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine25Form3X5TypeB = []*structs.MatrixLine25Form3X5TypeB{
|
MatrixLine25Form3X5TypeB = []*structs.MatrixLine25Form3X5TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line25Form3X5TypeB",
|
Type: "Line25Form3X5TypeB",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 2,
|
Direction: 2,
|
||||||
LineCount: 25,
|
LineCount: 25,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -576,8 +576,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine25Form3X5TypeC = []*structs.MatrixLine25Form3X5TypeC{
|
MatrixLine25Form3X5TypeC = []*structs.MatrixLine25Form3X5TypeC{
|
||||||
{
|
{
|
||||||
Type: "Line25Form3X5TypeC",
|
Type: "Line25Form3X5TypeC",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 25,
|
LineCount: 25,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -613,8 +613,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine25Form3X5TypeD = []*structs.MatrixLine25Form3X5TypeD{
|
MatrixLine25Form3X5TypeD = []*structs.MatrixLine25Form3X5TypeD{
|
||||||
{
|
{
|
||||||
Type: "Line25Form3X5TypeD",
|
Type: "Line25Form3X5TypeD",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 25,
|
LineCount: 25,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -650,8 +650,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine25Form3X5TypeE = []*structs.MatrixLine25Form3X5TypeE{
|
MatrixLine25Form3X5TypeE = []*structs.MatrixLine25Form3X5TypeE{
|
||||||
{
|
{
|
||||||
Type: "Line25Form3X5TypeE",
|
Type: "Line25Form3X5TypeE",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 25,
|
LineCount: 25,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -687,8 +687,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine30Form3X5TypeA = []*structs.MatrixLine30Form3X5TypeA{
|
MatrixLine30Form3X5TypeA = []*structs.MatrixLine30Form3X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line30Form3X5TypeA",
|
Type: "Line30Form3X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 30,
|
LineCount: 30,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -729,8 +729,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine30Form3X5TypeB = []*structs.MatrixLine30Form3X5TypeB{
|
MatrixLine30Form3X5TypeB = []*structs.MatrixLine30Form3X5TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line30Form3X5TypeB",
|
Type: "Line30Form3X5TypeB",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 30,
|
LineCount: 30,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -771,8 +771,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine30Form3X5TypeC = []*structs.MatrixLine30Form3X5TypeC{
|
MatrixLine30Form3X5TypeC = []*structs.MatrixLine30Form3X5TypeC{
|
||||||
{
|
{
|
||||||
Type: "Line30Form3X5TypeC",
|
Type: "Line30Form3X5TypeC",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 30,
|
LineCount: 30,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -813,8 +813,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine30Form3X5TypeD = []*structs.MatrixLine30Form3X5TypeD{
|
MatrixLine30Form3X5TypeD = []*structs.MatrixLine30Form3X5TypeD{
|
||||||
{
|
{
|
||||||
Type: "Line30Form3X5TypeD",
|
Type: "Line30Form3X5TypeD",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 30,
|
LineCount: 30,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -855,8 +855,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine30Form3X5TypeE = []*structs.MatrixLine30Form3X5TypeE{
|
MatrixLine30Form3X5TypeE = []*structs.MatrixLine30Form3X5TypeE{
|
||||||
{
|
{
|
||||||
Type: "Line30Form3X5TypeE",
|
Type: "Line30Form3X5TypeE",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 30,
|
LineCount: 30,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -897,8 +897,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine30Form3X6TypeA = []*structs.MatrixLine30Form3X6TypeA{
|
MatrixLine30Form3X6TypeA = []*structs.MatrixLine30Form3X6TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line30Form3X6TypeA",
|
Type: "Line30Form3X6TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 30,
|
LineCount: 30,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -939,8 +939,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine30Form4X5TypeA = []*structs.MatrixLine30Form4X5TypeA{
|
MatrixLine30Form4X5TypeA = []*structs.MatrixLine30Form4X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line30Form4X5TypeA",
|
Type: "Line30Form4X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 30,
|
LineCount: 30,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -981,8 +981,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine30Form4X5TypeB = []*structs.MatrixLine30Form4X5TypeB{
|
MatrixLine30Form4X5TypeB = []*structs.MatrixLine30Form4X5TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line30Form4X5TypeB",
|
Type: "Line30Form4X5TypeB",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 30,
|
LineCount: 30,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1023,8 +1023,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine3Form3X3TypeA = []*structs.MatrixLine3Form3X3TypeA{
|
MatrixLine3Form3X3TypeA = []*structs.MatrixLine3Form3X3TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line3Form3X3TypeA",
|
Type: "Line3Form3X3TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 3,
|
LineCount: 3,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1038,8 +1038,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine40Form34543TypeA = []*structs.MatrixLine40Form34543TypeA{
|
MatrixLine40Form34543TypeA = []*structs.MatrixLine40Form34543TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line40Form34543TypeA",
|
Type: "Line40Form34543TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 40,
|
LineCount: 40,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1090,8 +1090,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine40Form3X5TypeA = []*structs.MatrixLine40Form3X5TypeA{
|
MatrixLine40Form3X5TypeA = []*structs.MatrixLine40Form3X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line40Form3X5TypeA",
|
Type: "Line40Form3X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 40,
|
LineCount: 40,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1142,8 +1142,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine40Form3X5TypeB = []*structs.MatrixLine40Form3X5TypeB{
|
MatrixLine40Form3X5TypeB = []*structs.MatrixLine40Form3X5TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line40Form3X5TypeB",
|
Type: "Line40Form3X5TypeB",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 40,
|
LineCount: 40,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1194,8 +1194,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine40Form3X5TypeC = []*structs.MatrixLine40Form3X5TypeC{
|
MatrixLine40Form3X5TypeC = []*structs.MatrixLine40Form3X5TypeC{
|
||||||
{
|
{
|
||||||
Type: "Line40Form3X5TypeC",
|
Type: "Line40Form3X5TypeC",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 40,
|
LineCount: 40,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1246,8 +1246,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine40Form3X5TypeD = []*structs.MatrixLine40Form3X5TypeD{
|
MatrixLine40Form3X5TypeD = []*structs.MatrixLine40Form3X5TypeD{
|
||||||
{
|
{
|
||||||
Type: "Line40Form3X5TypeD",
|
Type: "Line40Form3X5TypeD",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 40,
|
LineCount: 40,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1298,8 +1298,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine40Form4X5TypeA = []*structs.MatrixLine40Form4X5TypeA{
|
MatrixLine40Form4X5TypeA = []*structs.MatrixLine40Form4X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line40Form4X5TypeA",
|
Type: "Line40Form4X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 40,
|
LineCount: 40,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1350,8 +1350,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine40Form4X5TypeB = []*structs.MatrixLine40Form4X5TypeB{
|
MatrixLine40Form4X5TypeB = []*structs.MatrixLine40Form4X5TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line40Form4X5TypeA",
|
Type: "Line40Form4X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 40,
|
LineCount: 40,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1402,8 +1402,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine40Form4X5TypeC = []*structs.MatrixLine40Form4X5TypeC{
|
MatrixLine40Form4X5TypeC = []*structs.MatrixLine40Form4X5TypeC{
|
||||||
{
|
{
|
||||||
Type: "Line40Form4X5TypeC",
|
Type: "Line40Form4X5TypeC",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 40,
|
LineCount: 40,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1454,8 +1454,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine40Form4X6TypeA = []*structs.MatrixLine40Form4X6TypeA{
|
MatrixLine40Form4X6TypeA = []*structs.MatrixLine40Form4X6TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line40Form4X6TypeA",
|
Type: "Line40Form4X6TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 40,
|
LineCount: 40,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1506,8 +1506,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form3X5TypeA = []*structs.MatrixLine50Form3X5TypeA{
|
MatrixLine50Form3X5TypeA = []*structs.MatrixLine50Form3X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line50Form3X5TypeA",
|
Type: "Line50Form3X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1568,8 +1568,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form3X5TypeB = []*structs.MatrixLine50Form3X5TypeB{
|
MatrixLine50Form3X5TypeB = []*structs.MatrixLine50Form3X5TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line50Form3X5TypeB",
|
Type: "Line50Form3X5TypeB",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1630,8 +1630,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form3X5TypeC = []*structs.MatrixLine50Form3X5TypeC{
|
MatrixLine50Form3X5TypeC = []*structs.MatrixLine50Form3X5TypeC{
|
||||||
{
|
{
|
||||||
Type: "Line50Form3X5TypeC",
|
Type: "Line50Form3X5TypeC",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1692,8 +1692,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form3X5TypeD = []*structs.MatrixLine50Form3X5TypeD{
|
MatrixLine50Form3X5TypeD = []*structs.MatrixLine50Form3X5TypeD{
|
||||||
{
|
{
|
||||||
Type: "Line50Form3X5TypeD",
|
Type: "Line50Form3X5TypeD",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1754,8 +1754,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form3X5TypeE = []*structs.MatrixLine50Form3X5TypeE{
|
MatrixLine50Form3X5TypeE = []*structs.MatrixLine50Form3X5TypeE{
|
||||||
{
|
{
|
||||||
Type: "Line50Form3X5TypeE",
|
Type: "Line50Form3X5TypeE",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1816,8 +1816,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form3X5TypeF = []*structs.MatrixLine50Form3X5TypeF{
|
MatrixLine50Form3X5TypeF = []*structs.MatrixLine50Form3X5TypeF{
|
||||||
{
|
{
|
||||||
Type: "Line50Form3X5TypeF",
|
Type: "Line50Form3X5TypeF",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1878,8 +1878,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form3X5TypeG = []*structs.MatrixLine50Form3X5TypeG{
|
MatrixLine50Form3X5TypeG = []*structs.MatrixLine50Form3X5TypeG{
|
||||||
{
|
{
|
||||||
Type: "Line50Form3X5TypeG",
|
Type: "Line50Form3X5TypeG",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -1940,8 +1940,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form3X5TypeH = []*structs.MatrixLine50Form3X5TypeH{
|
MatrixLine50Form3X5TypeH = []*structs.MatrixLine50Form3X5TypeH{
|
||||||
{
|
{
|
||||||
Type: "Line50Form3X5TypeH",
|
Type: "Line50Form3X5TypeH",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2002,8 +2002,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form45454TypeA = []*structs.MatrixLine50Form45454TypeA{
|
MatrixLine50Form45454TypeA = []*structs.MatrixLine50Form45454TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line50Form45454TypeA",
|
Type: "Line50Form45454TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2064,8 +2064,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form4X5TypeA = []*structs.MatrixLine50Form4X5TypeA{
|
MatrixLine50Form4X5TypeA = []*structs.MatrixLine50Form4X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line50Form4X5TypeA",
|
Type: "Line50Form4X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2126,8 +2126,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form4X5TypeB = []*structs.MatrixLine50Form4X5TypeB{
|
MatrixLine50Form4X5TypeB = []*structs.MatrixLine50Form4X5TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line50Form4X5TypeB",
|
Type: "Line50Form4X5TypeB",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2188,8 +2188,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form4X5TypeC = []*structs.MatrixLine50Form4X5TypeC{
|
MatrixLine50Form4X5TypeC = []*structs.MatrixLine50Form4X5TypeC{
|
||||||
{
|
{
|
||||||
Type: "Line50Form4X5TypeC",
|
Type: "Line50Form4X5TypeC",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2250,8 +2250,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form4X5TypeD = []*structs.MatrixLine50Form4X5TypeD{
|
MatrixLine50Form4X5TypeD = []*structs.MatrixLine50Form4X5TypeD{
|
||||||
{
|
{
|
||||||
Type: "Line50Form4X5TypeD",
|
Type: "Line50Form4X5TypeD",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2312,8 +2312,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form4X5TypeE = []*structs.MatrixLine50Form4X5TypeE{
|
MatrixLine50Form4X5TypeE = []*structs.MatrixLine50Form4X5TypeE{
|
||||||
{
|
{
|
||||||
Type: "Line50Form4X5TypeE",
|
Type: "Line50Form4X5TypeE",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2374,8 +2374,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form4X5TypeF = []*structs.MatrixLine50Form4X5TypeF{
|
MatrixLine50Form4X5TypeF = []*structs.MatrixLine50Form4X5TypeF{
|
||||||
{
|
{
|
||||||
Type: "Line50Form4X5TypeF",
|
Type: "Line50Form4X5TypeF",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2436,8 +2436,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form4X6TypeA = []*structs.MatrixLine50Form4X6TypeA{
|
MatrixLine50Form4X6TypeA = []*structs.MatrixLine50Form4X6TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line50Form4X6TypeA",
|
Type: "Line50Form4X6TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2498,8 +2498,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form5X5TypeA = []*structs.MatrixLine50Form5X5TypeA{
|
MatrixLine50Form5X5TypeA = []*structs.MatrixLine50Form5X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line50Form5X5TypeA",
|
Type: "Line50Form5X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2560,8 +2560,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form5X5TypeB = []*structs.MatrixLine50Form5X5TypeB{
|
MatrixLine50Form5X5TypeB = []*structs.MatrixLine50Form5X5TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line50Form5X5TypeB",
|
Type: "Line50Form5X5TypeB",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2622,8 +2622,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form5X5TypeC = []*structs.MatrixLine50Form5X5TypeC{
|
MatrixLine50Form5X5TypeC = []*structs.MatrixLine50Form5X5TypeC{
|
||||||
{
|
{
|
||||||
Type: "Line50Form5X5TypeC",
|
Type: "Line50Form5X5TypeC",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2684,8 +2684,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine50Form6X5TypeA = []*structs.MatrixLine50Form6X5TypeA{
|
MatrixLine50Form6X5TypeA = []*structs.MatrixLine50Form6X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line50Form6X5TypeA",
|
Type: "Line50Form6X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 50,
|
LineCount: 50,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2746,8 +2746,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine5Form3X3TypeA = []*structs.MatrixLine5Form3X3TypeA{
|
MatrixLine5Form3X3TypeA = []*structs.MatrixLine5Form3X3TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line5Form3X3TypeA",
|
Type: "Line5Form3X3TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 5,
|
LineCount: 5,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2763,8 +2763,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine5Form3X3TypeB = []*structs.MatrixLine5Form3X3TypeB{
|
MatrixLine5Form3X3TypeB = []*structs.MatrixLine5Form3X3TypeB{
|
||||||
{
|
{
|
||||||
Type: "Line5Form3X3TypeB",
|
Type: "Line5Form3X3TypeB",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 5,
|
LineCount: 5,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2780,8 +2780,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine60Form33633TypeA = []*structs.MatrixLine60Form33633TypeA{
|
MatrixLine60Form33633TypeA = []*structs.MatrixLine60Form33633TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line60Form33633TypeA",
|
Type: "Line60Form33633TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 60,
|
LineCount: 60,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2852,8 +2852,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine60Form8X5TypeA = []*structs.MatrixLine60Form8X5TypeA{
|
MatrixLine60Form8X5TypeA = []*structs.MatrixLine60Form8X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line60Form8X5TypeA",
|
Type: "Line60Form8X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 60,
|
LineCount: 60,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -2924,8 +2924,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine65Form6X5TypeA = []*structs.MatrixLine65Form6X5TypeA{
|
MatrixLine65Form6X5TypeA = []*structs.MatrixLine65Form6X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line65Form6X5TypeA",
|
Type: "Line65Form6X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 65,
|
LineCount: 65,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3001,8 +3001,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine70Form9X5TypeA = []*structs.MatrixLine70Form9X5TypeA{
|
MatrixLine70Form9X5TypeA = []*structs.MatrixLine70Form9X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line70Form9X5TypeA",
|
Type: "Line70Form9X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 70,
|
LineCount: 70,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3083,8 +3083,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine75Form5X6TypeA = []*structs.MatrixLine75Form5X6TypeA{
|
MatrixLine75Form5X6TypeA = []*structs.MatrixLine75Form5X6TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line75Form5X6TypeA",
|
Type: "Line75Form5X6TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 75,
|
LineCount: 75,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3170,8 +3170,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine75Form6X5TypeA = []*structs.MatrixLine75Form6X5TypeA{
|
MatrixLine75Form6X5TypeA = []*structs.MatrixLine75Form6X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line75Form6X5TypeA",
|
Type: "Line75Form6X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 75,
|
LineCount: 75,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3257,8 +3257,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine80Form10X5TypeA = []*structs.MatrixLine80Form10X5TypeA{
|
MatrixLine80Form10X5TypeA = []*structs.MatrixLine80Form10X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line80Form10X5TypeA",
|
Type: "Line80Form10X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 80,
|
LineCount: 80,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3349,8 +3349,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine80Form3X5TypeA = []*structs.MatrixLine80Form3X5TypeA{
|
MatrixLine80Form3X5TypeA = []*structs.MatrixLine80Form3X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line80Form3X5TypeA",
|
Type: "Line80Form3X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 80,
|
LineCount: 80,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3441,8 +3441,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine80Form4X6TypeA = []*structs.MatrixLine80Form4X6TypeA{
|
MatrixLine80Form4X6TypeA = []*structs.MatrixLine80Form4X6TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line80Form4X6TypeA",
|
Type: "Line80Form4X6TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 80,
|
LineCount: 80,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3533,8 +3533,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine80Form7X5TypeA = []*structs.MatrixLine80Form7X5TypeA{
|
MatrixLine80Form7X5TypeA = []*structs.MatrixLine80Form7X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line80Form7X5TypeA",
|
Type: "Line80Form7X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 80,
|
LineCount: 80,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3625,8 +3625,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine90Form11X5TypeA = []*structs.MatrixLine90Form11X5TypeA{
|
MatrixLine90Form11X5TypeA = []*structs.MatrixLine90Form11X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line90Form11X5TypeA",
|
Type: "Line90Form11X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 90,
|
LineCount: 90,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3727,8 +3727,8 @@ func init() {
|
||||||
|
|
||||||
MatrixLine95Form8X5TypeA = []*structs.MatrixLine95Form8X5TypeA{
|
MatrixLine95Form8X5TypeA = []*structs.MatrixLine95Form8X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "Line95Form8X5TypeA",
|
Type: "Line95Form8X5TypeA",
|
||||||
LinkType: 0,
|
LinkType: 0,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 95,
|
LineCount: 95,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3834,8 +3834,8 @@ func init() {
|
||||||
|
|
||||||
MatrixMatchForm7X7TypeA = []*structs.MatrixMatchForm7X7TypeA{
|
MatrixMatchForm7X7TypeA = []*structs.MatrixMatchForm7X7TypeA{
|
||||||
{
|
{
|
||||||
Type: "MatchForm7X7",
|
Type: "MatchForm7X7",
|
||||||
LinkType: 4,
|
LinkType: 4,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 20,
|
LineCount: 20,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3847,8 +3847,8 @@ func init() {
|
||||||
|
|
||||||
MatrixSameForm5X6TypeA = []*structs.MatrixSameForm5X6TypeA{
|
MatrixSameForm5X6TypeA = []*structs.MatrixSameForm5X6TypeA{
|
||||||
{
|
{
|
||||||
Type: "SameForm5X6",
|
Type: "SameForm5X6",
|
||||||
LinkType: 3,
|
LinkType: 3,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 20,
|
LineCount: 20,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3860,8 +3860,8 @@ func init() {
|
||||||
|
|
||||||
MatrixSameForm5X6TypeB = []*structs.MatrixSameForm5X6TypeB{
|
MatrixSameForm5X6TypeB = []*structs.MatrixSameForm5X6TypeB{
|
||||||
{
|
{
|
||||||
Type: "SameForm5X6TypeB",
|
Type: "SameForm5X6TypeB",
|
||||||
LinkType: 3,
|
LinkType: 3,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 25,
|
LineCount: 25,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3873,8 +3873,8 @@ func init() {
|
||||||
|
|
||||||
MatrixWaysForm333331 = []*structs.MatrixWaysForm333331{
|
MatrixWaysForm333331 = []*structs.MatrixWaysForm333331{
|
||||||
{
|
{
|
||||||
Type: "WaysForm333331",
|
Type: "WaysForm333331",
|
||||||
LinkType: 1,
|
LinkType: 1,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3886,8 +3886,8 @@ func init() {
|
||||||
|
|
||||||
MatrixWaysForm33555 = []*structs.MatrixWaysForm33555{
|
MatrixWaysForm33555 = []*structs.MatrixWaysForm33555{
|
||||||
{
|
{
|
||||||
Type: "WaysForm33555",
|
Type: "WaysForm33555",
|
||||||
LinkType: 1,
|
LinkType: 1,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3899,8 +3899,8 @@ func init() {
|
||||||
|
|
||||||
MatrixWaysForm344444 = []*structs.MatrixWaysForm344444{
|
MatrixWaysForm344444 = []*structs.MatrixWaysForm344444{
|
||||||
{
|
{
|
||||||
Type: "WaysForm344444",
|
Type: "WaysForm344444",
|
||||||
LinkType: 1,
|
LinkType: 1,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3912,8 +3912,8 @@ func init() {
|
||||||
|
|
||||||
MatrixWaysForm3X5TypeA = []*structs.MatrixWaysForm3X5TypeA{
|
MatrixWaysForm3X5TypeA = []*structs.MatrixWaysForm3X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "WaysForm3X5TypeA",
|
Type: "WaysForm3X5TypeA",
|
||||||
LinkType: 1,
|
LinkType: 1,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3925,8 +3925,8 @@ func init() {
|
||||||
|
|
||||||
MatrixWaysForm44668 = []*structs.MatrixWaysForm44668{
|
MatrixWaysForm44668 = []*structs.MatrixWaysForm44668{
|
||||||
{
|
{
|
||||||
Type: "WaysForm44668",
|
Type: "WaysForm44668",
|
||||||
LinkType: 1,
|
LinkType: 1,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3938,8 +3938,8 @@ func init() {
|
||||||
|
|
||||||
MatrixWaysForm4X5TypeA = []*structs.MatrixWaysForm4X5TypeA{
|
MatrixWaysForm4X5TypeA = []*structs.MatrixWaysForm4X5TypeA{
|
||||||
{
|
{
|
||||||
Type: "WaysForm4X5TypeA",
|
Type: "WaysForm4X5TypeA",
|
||||||
LinkType: 1,
|
LinkType: 1,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 100,
|
LineCount: 100,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
@ -3951,8 +3951,8 @@ func init() {
|
||||||
|
|
||||||
MatrixWaysForm4X5TypeB = []*structs.MatrixWaysForm4X5TypeB{
|
MatrixWaysForm4X5TypeB = []*structs.MatrixWaysForm4X5TypeB{
|
||||||
{
|
{
|
||||||
Type: "WaysForm4X5TypeB",
|
Type: "WaysForm4X5TypeB",
|
||||||
LinkType: 1,
|
LinkType: 1,
|
||||||
Direction: 0,
|
Direction: 0,
|
||||||
LineCount: 60,
|
LineCount: 60,
|
||||||
Lines: [][]int64{
|
Lines: [][]int64{
|
||||||
|
|
|
||||||
9
go.mod
9
go.mod
|
|
@ -33,10 +33,13 @@ require (
|
||||||
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c
|
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c
|
||||||
google.golang.org/grpc v1.67.1
|
google.golang.org/grpc v1.67.1
|
||||||
google.golang.org/protobuf v1.35.1
|
google.golang.org/protobuf v1.35.1
|
||||||
|
gorm.io/driver/mysql v1.5.7
|
||||||
|
gorm.io/gorm v1.25.12
|
||||||
mongo.games.com/goserver v0.0.0-00010101000000-000000000000
|
mongo.games.com/goserver v0.0.0-00010101000000-000000000000
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
filippo.io/edwards25519 v1.1.0 // indirect
|
||||||
github.com/360EntSecGroup-Skylar/excelize/v2 v2.3.1 // indirect
|
github.com/360EntSecGroup-Skylar/excelize/v2 v2.3.1 // indirect
|
||||||
github.com/containrrr/shoutrrr v0.6.1 // indirect
|
github.com/containrrr/shoutrrr v0.6.1 // indirect
|
||||||
github.com/coreos/go-semver v0.3.1 // indirect
|
github.com/coreos/go-semver v0.3.1 // indirect
|
||||||
|
|
@ -45,6 +48,7 @@ require (
|
||||||
github.com/dlclark/regexp2 v1.10.0 // indirect
|
github.com/dlclark/regexp2 v1.10.0 // indirect
|
||||||
github.com/fatih/color v1.17.0 // indirect
|
github.com/fatih/color v1.17.0 // indirect
|
||||||
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
||||||
|
github.com/go-sql-driver/mysql v1.8.1 // indirect
|
||||||
github.com/gocarina/gocsv v0.0.0-20221105105431-c8ef78125b99 // indirect
|
github.com/gocarina/gocsv v0.0.0-20221105105431-c8ef78125b99 // indirect
|
||||||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
|
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
|
||||||
github.com/golang/protobuf v1.5.4 // indirect
|
github.com/golang/protobuf v1.5.4 // indirect
|
||||||
|
|
@ -53,9 +57,12 @@ require (
|
||||||
github.com/gorilla/websocket v1.5.3 // indirect
|
github.com/gorilla/websocket v1.5.3 // indirect
|
||||||
github.com/hashicorp/hcl v1.0.0 // indirect
|
github.com/hashicorp/hcl v1.0.0 // indirect
|
||||||
github.com/innopals/sls-logrus-hook v0.0.0-20190808032145-2fe1d6f7ce00 // indirect
|
github.com/innopals/sls-logrus-hook v0.0.0-20190808032145-2fe1d6f7ce00 // indirect
|
||||||
|
github.com/jinzhu/inflection v1.0.0 // indirect
|
||||||
github.com/klauspost/compress v1.17.9 // indirect
|
github.com/klauspost/compress v1.17.9 // indirect
|
||||||
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
|
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
|
||||||
github.com/klauspost/reedsolomon v1.12.4 // indirect
|
github.com/klauspost/reedsolomon v1.12.4 // indirect
|
||||||
|
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible // indirect
|
||||||
|
github.com/lestrrat-go/strftime v1.1.0 // indirect
|
||||||
github.com/magiconair/properties v1.8.7 // indirect
|
github.com/magiconair/properties v1.8.7 // indirect
|
||||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||||
|
|
@ -68,7 +75,7 @@ require (
|
||||||
github.com/sagikazarmark/locafero v0.4.0 // indirect
|
github.com/sagikazarmark/locafero v0.4.0 // indirect
|
||||||
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
|
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
|
||||||
github.com/shopspring/decimal v1.3.1 // indirect
|
github.com/shopspring/decimal v1.3.1 // indirect
|
||||||
github.com/sirupsen/logrus v1.9.0 // indirect
|
github.com/sirupsen/logrus v1.9.3 // indirect
|
||||||
github.com/sourcegraph/conc v0.3.0 // indirect
|
github.com/sourcegraph/conc v0.3.0 // indirect
|
||||||
github.com/spaolacci/murmur3 v1.1.0 // indirect
|
github.com/spaolacci/murmur3 v1.1.0 // indirect
|
||||||
github.com/spf13/afero v1.11.0 // indirect
|
github.com/spf13/afero v1.11.0 // indirect
|
||||||
|
|
|
||||||
24
go.sum
24
go.sum
|
|
@ -1,5 +1,7 @@
|
||||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||||
|
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
||||||
|
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
||||||
github.com/360EntSecGroup-Skylar/excelize/v2 v2.3.1 h1:j56fC19WoD3z+u+ZHxm2XwRGyS1XmdSMk7058BLhdsM=
|
github.com/360EntSecGroup-Skylar/excelize/v2 v2.3.1 h1:j56fC19WoD3z+u+ZHxm2XwRGyS1XmdSMk7058BLhdsM=
|
||||||
github.com/360EntSecGroup-Skylar/excelize/v2 v2.3.1/go.mod h1:gXEhMjm1VadSGjAzyDlBxmdYglP8eJpYWxpwJnmXRWw=
|
github.com/360EntSecGroup-Skylar/excelize/v2 v2.3.1/go.mod h1:gXEhMjm1VadSGjAzyDlBxmdYglP8eJpYWxpwJnmXRWw=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
|
|
@ -92,6 +94,9 @@ github.com/go-redis/redis v6.14.2+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8w
|
||||||
github.com/go-redis/redis v6.15.9+incompatible h1:K0pv1D7EQUjfyoMql+r/jZqCLizCGKFlFgcHWWmHQjg=
|
github.com/go-redis/redis v6.15.9+incompatible h1:K0pv1D7EQUjfyoMql+r/jZqCLizCGKFlFgcHWWmHQjg=
|
||||||
github.com/go-redis/redis v6.15.9+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
|
github.com/go-redis/redis v6.15.9+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
|
||||||
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
||||||
|
github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=
|
||||||
|
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
|
||||||
|
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
|
||||||
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
||||||
github.com/gocarina/gocsv v0.0.0-20221105105431-c8ef78125b99 h1:qNAaZUnCulf2xIQc7rM6F3uGYr80h40rtilsVKyAHoM=
|
github.com/gocarina/gocsv v0.0.0-20221105105431-c8ef78125b99 h1:qNAaZUnCulf2xIQc7rM6F3uGYr80h40rtilsVKyAHoM=
|
||||||
github.com/gocarina/gocsv v0.0.0-20221105105431-c8ef78125b99/go.mod h1:5YoVOkjYAQumqlV356Hj3xeYh4BdZuLE0/nRkf2NKkI=
|
github.com/gocarina/gocsv v0.0.0-20221105105431-c8ef78125b99/go.mod h1:5YoVOkjYAQumqlV356Hj3xeYh4BdZuLE0/nRkf2NKkI=
|
||||||
|
|
@ -159,9 +164,13 @@ github.com/innopals/sls-logrus-hook v0.0.0-20190808032145-2fe1d6f7ce00 h1:QfdUfo
|
||||||
github.com/innopals/sls-logrus-hook v0.0.0-20190808032145-2fe1d6f7ce00/go.mod h1:Q24O6QMGImDU3WY71P4YAxNb36NNn5qaznCfMUoXVfc=
|
github.com/innopals/sls-logrus-hook v0.0.0-20190808032145-2fe1d6f7ce00/go.mod h1:Q24O6QMGImDU3WY71P4YAxNb36NNn5qaznCfMUoXVfc=
|
||||||
github.com/jarcoal/httpmock v1.0.4 h1:jp+dy/+nonJE4g4xbVtl9QdrUNbn6/3hDT5R4nDIZnA=
|
github.com/jarcoal/httpmock v1.0.4 h1:jp+dy/+nonJE4g4xbVtl9QdrUNbn6/3hDT5R4nDIZnA=
|
||||||
github.com/jarcoal/httpmock v1.0.4/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=
|
github.com/jarcoal/httpmock v1.0.4/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=
|
||||||
|
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
|
||||||
|
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
|
||||||
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
|
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
|
||||||
github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
|
github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
|
||||||
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
|
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
|
||||||
|
github.com/jonboulle/clockwork v0.4.0 h1:p4Cf1aMWXnXAUh8lVfewRBx1zaTSYKrKMF2g3ST4RZ4=
|
||||||
|
github.com/jonboulle/clockwork v0.4.0/go.mod h1:xgRqUGwRcjKCO1vbZUEtSLrqKoPSsUpK7fnezOII0kc=
|
||||||
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
||||||
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||||
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||||
|
|
@ -186,6 +195,12 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||||
github.com/ledisdb/ledisdb v0.0.0-20200510135210-d35789ec47e6/go.mod h1:n931TsDuKuq+uX4v1fulaMbA/7ZLLhjc85h7chZGBCQ=
|
github.com/ledisdb/ledisdb v0.0.0-20200510135210-d35789ec47e6/go.mod h1:n931TsDuKuq+uX4v1fulaMbA/7ZLLhjc85h7chZGBCQ=
|
||||||
|
github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc h1:RKf14vYWi2ttpEmkA4aQ3j4u9dStX2t4M8UM6qqNsG8=
|
||||||
|
github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc/go.mod h1:kopuH9ugFRkIXf3YoqHKyrJ9YfUFsckUU9S7B+XP+is=
|
||||||
|
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible h1:Y6sqxHMyB1D2YSzWkLibYKgg+SwmyFU9dF2hn6MdTj4=
|
||||||
|
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible/go.mod h1:ZQnN8lSECaebrkQytbHj4xNgtg8CR7RYXnPok8e0EHA=
|
||||||
|
github.com/lestrrat-go/strftime v1.1.0 h1:gMESpZy44/4pXLO/m+sL0yBd1W6LjgjrrD4a68Gapyg=
|
||||||
|
github.com/lestrrat-go/strftime v1.1.0/go.mod h1:uzeIB52CeUJenCo1syghlugshMysrqUT51HlxphXVeI=
|
||||||
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||||
github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
|
github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
|
||||||
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
|
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
|
||||||
|
|
@ -282,8 +297,8 @@ github.com/siddontang/goredis v0.0.0-20150324035039-760763f78400/go.mod h1:DDcKz
|
||||||
github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d/go.mod h1:AMEsy7v5z92TR1JKMkLLoaOQk++LVnOKL3ScbJ8GNGA=
|
github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d/go.mod h1:AMEsy7v5z92TR1JKMkLLoaOQk++LVnOKL3ScbJ8GNGA=
|
||||||
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
||||||
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
||||||
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
|
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
|
||||||
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
||||||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
|
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
|
||||||
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
||||||
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
|
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
|
||||||
|
|
@ -581,6 +596,11 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
gorm.io/driver/mysql v1.5.7 h1:MndhOPYOfEp2rHKgkZIhJ16eVUIRf2HmzgoPmh7FCWo=
|
||||||
|
gorm.io/driver/mysql v1.5.7/go.mod h1:sEtPWMiqiN1N1cMXoXmBbd8C6/l+TESwriotuRRpkDM=
|
||||||
|
gorm.io/gorm v1.25.7/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
|
||||||
|
gorm.io/gorm v1.25.12 h1:I0u8i2hWQItBq1WfE0o2+WuL9+8L21K9e2HHSTE/0f8=
|
||||||
|
gorm.io/gorm v1.25.12/go.mod h1:xh7N7RHfYlNc5EmcI/El95gXusucDrQnHXe0+CgWcLQ=
|
||||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1J8+AsQnQCKsi8A=
|
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1J8+AsQnQCKsi8A=
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"strconv"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jinzhu/now"
|
"github.com/jinzhu/now"
|
||||||
|
|
@ -90,30 +88,30 @@ type LuckyDiceGameNoteData struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 在线统计
|
// 在线统计
|
||||||
type PlayerOnlineEvent struct {
|
//type PlayerOnlineEvent struct {
|
||||||
Online map[int]int
|
// Online map[int]int
|
||||||
Time time.Time
|
// Time time.Time
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
func MarshalPlayerOnlineEvent(source int32, online map[string]int) (data string, err error) {
|
//func MarshalPlayerOnlineEvent(source int32, online map[string]int) (data string, err error) {
|
||||||
m := map[int]int{}
|
// m := map[int]int{}
|
||||||
for k, v := range online {
|
// for k, v := range online {
|
||||||
i, _ := strconv.Atoi(k)
|
// i, _ := strconv.Atoi(k)
|
||||||
m[i] = v
|
// m[i] = v
|
||||||
}
|
// }
|
||||||
raw := &RabbitMQDataRaw{
|
// raw := &RabbitMQDataRaw{
|
||||||
Source: source,
|
// Source: source,
|
||||||
Data: &PlayerOnlineEvent{
|
// Data: &PlayerOnlineEvent{
|
||||||
Online: m,
|
// Online: m,
|
||||||
Time: time.Now(),
|
// Time: time.Now(),
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
d, err := json.Marshal(raw)
|
// d, err := json.Marshal(raw)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
return string(d), nil
|
// return string(d), nil
|
||||||
}
|
//}
|
||||||
|
|
||||||
// 玩家登录
|
// 玩家登录
|
||||||
type PlayerLoginEvent struct {
|
type PlayerLoginEvent struct {
|
||||||
|
|
@ -166,34 +164,34 @@ func CreatePlayerLoginEvent(snid int32, channel, promoter, platform, city, os, i
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户升级账号
|
// 用户升级账号
|
||||||
type PlayerBindPhoneEvent struct {
|
//type PlayerBindPhoneEvent struct {
|
||||||
SnId int32 //用户ID
|
// SnId int32 //用户ID
|
||||||
Channel string //渠道
|
// Channel string //渠道
|
||||||
Promoter string //推广
|
// Promoter string //推广
|
||||||
Platform string //平台
|
// Platform string //平台
|
||||||
City string //城市
|
// City string //城市
|
||||||
OS string //操作系统
|
// OS string //操作系统
|
||||||
Value int32 //占位用
|
// Value int32 //占位用
|
||||||
TelephonePromoter int32 //电销
|
// TelephonePromoter int32 //电销
|
||||||
CreateTime int64 //创建日期
|
// CreateTime int64 //创建日期
|
||||||
BindTime int64 //绑定日期
|
// BindTime int64 //绑定日期
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
func CreatePlayerBindPhoneEvent(snid int32, channel, promoter, platform, city, os string,
|
//func CreatePlayerBindPhoneEvent(snid int32, channel, promoter, platform, city, os string,
|
||||||
createTime time.Time, telephonePromoter int32) *PlayerBindPhoneEvent {
|
// createTime time.Time, telephonePromoter int32) *PlayerBindPhoneEvent {
|
||||||
return &PlayerBindPhoneEvent{
|
// return &PlayerBindPhoneEvent{
|
||||||
SnId: snid,
|
// SnId: snid,
|
||||||
Channel: channel,
|
// Channel: channel,
|
||||||
Promoter: promoter,
|
// Promoter: promoter,
|
||||||
TelephonePromoter: telephonePromoter,
|
// TelephonePromoter: telephonePromoter,
|
||||||
Platform: platform,
|
// Platform: platform,
|
||||||
City: city,
|
// City: city,
|
||||||
OS: os,
|
// OS: os,
|
||||||
Value: 1,
|
// Value: 1,
|
||||||
CreateTime: createTime.Unix(),
|
// CreateTime: createTime.Unix(),
|
||||||
BindTime: time.Now().Unix(),
|
// BindTime: time.Now().Unix(),
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
//func MarshalPlayerBindPhoneEvent(source, snid int32, channel, promoter, platform, city, os string,
|
//func MarshalPlayerBindPhoneEvent(source, snid int32, channel, promoter, platform, city, os string,
|
||||||
// createTime time.Time, telephonePromoter int32) (data string, err error) {
|
// createTime time.Time, telephonePromoter int32) (data string, err error) {
|
||||||
|
|
@ -210,46 +208,46 @@ func CreatePlayerBindPhoneEvent(snid int32, channel, promoter, platform, city, o
|
||||||
//}
|
//}
|
||||||
|
|
||||||
// 用户升级账号
|
// 用户升级账号
|
||||||
type PlayerBindAlipayEvent struct {
|
//type PlayerBindAlipayEvent struct {
|
||||||
SnId int32 //用户ID
|
// SnId int32 //用户ID
|
||||||
Channel string //渠道
|
// Channel string //渠道
|
||||||
Promoter string //推广
|
// Promoter string //推广
|
||||||
TelephonePromoter int32 //电销
|
// TelephonePromoter int32 //电销
|
||||||
Platform string //平台
|
// Platform string //平台
|
||||||
City string //城市
|
// City string //城市
|
||||||
OS string //操作系统
|
// OS string //操作系统
|
||||||
Value int32 //占位用
|
// Value int32 //占位用
|
||||||
BindTime int64 //绑定日期
|
// BindTime int64 //绑定日期
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
func MarshalPlayerBindAlipayEvent(source, snid int32, channel, promoter, platform, city, os string, telephonePromoter int32) (data string, err error) {
|
//func MarshalPlayerBindAlipayEvent(source, snid int32, channel, promoter, platform, city, os string, telephonePromoter int32) (data string, err error) {
|
||||||
raw := &RabbitMQDataRaw{
|
// raw := &RabbitMQDataRaw{
|
||||||
Source: source,
|
// Source: source,
|
||||||
Data: &PlayerBindAlipayEvent{
|
// Data: &PlayerBindAlipayEvent{
|
||||||
SnId: snid,
|
// SnId: snid,
|
||||||
Channel: channel,
|
// Channel: channel,
|
||||||
Promoter: promoter,
|
// Promoter: promoter,
|
||||||
Platform: platform,
|
// Platform: platform,
|
||||||
TelephonePromoter: telephonePromoter,
|
// TelephonePromoter: telephonePromoter,
|
||||||
City: city,
|
// City: city,
|
||||||
OS: os,
|
// OS: os,
|
||||||
Value: 1,
|
// Value: 1,
|
||||||
BindTime: time.Now().Local().Unix(),
|
// BindTime: time.Now().Local().Unix(),
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
d, e := json.Marshal(raw)
|
// d, e := json.Marshal(raw)
|
||||||
if e == nil {
|
// if e == nil {
|
||||||
data = string(d[:])
|
// data = string(d[:])
|
||||||
}
|
// }
|
||||||
err = e
|
// err = e
|
||||||
return
|
// return
|
||||||
}
|
//}
|
||||||
|
|
||||||
// 玩家游戏记录
|
// 玩家游戏记录
|
||||||
type PlayerGameRecEvent struct {
|
type PlayerGameRecEvent struct {
|
||||||
RecordId string //游戏记录ID
|
RecordId string //游戏记录ID
|
||||||
SnId int32 //用户ID
|
SnId int32 //用户ID
|
||||||
Channel string //渠道
|
Channel string //包类型
|
||||||
Promoter string //推广
|
Promoter string //推广
|
||||||
Platform string //平台
|
Platform string //平台
|
||||||
City string //城市
|
City string //城市
|
||||||
|
|
@ -258,26 +256,26 @@ type PlayerGameRecEvent struct {
|
||||||
GameId int32 //游戏id
|
GameId int32 //游戏id
|
||||||
ModeId int32 //游戏模式
|
ModeId int32 //游戏模式
|
||||||
Tax int64 //税收
|
Tax int64 //税收
|
||||||
//Taxex int64 //税收2
|
Amount int64 //金币变化(正值为赢;负值为输)
|
||||||
Amount int64 //金币变化(正值为赢;负值为输)
|
CreateTime int64 //创建时间
|
||||||
CreateTime int64 //创建时间
|
CreateDayTime int64 //账号创建时间0点
|
||||||
CreateDayTime int64 //账号创建时间0点
|
ValidBet int64 //有效下注数量
|
||||||
ValidBet int64 //有效下注数量
|
ValidFlow int64 //有效流水数量
|
||||||
ValidFlow int64 //有效流水数量
|
Out int64 //产出
|
||||||
Out int64 //产出
|
In int64 //投入
|
||||||
In int64 //投入
|
IsNew int32 //是否是新人
|
||||||
IsNew int32 //是否是新人
|
GameFreeID int32 //游戏freeid
|
||||||
GameFreeID int32 //游戏freeid
|
GamingTime int32 //游戏开始到玩家结算的时长 单位:秒
|
||||||
GamingTime int32 //游戏开始到玩家结算的时长 单位:秒
|
FirstTime int64 //首次玩该场次游戏时间
|
||||||
FirstTime int64 //首次玩该场次游戏时间
|
PlayTimes int64 //该场次游戏次数
|
||||||
PlayTimes int64 //该场次游戏次数
|
FirstGameTime int64 //首次玩游戏时间
|
||||||
FirstGameTime int64 //首次玩游戏时间
|
PlayGameTimes int64 //该游戏总次数
|
||||||
PlayGameTimes int64 //该游戏总次数
|
LastLoginTime int64 //最后登录时间
|
||||||
LastLoginTime int64 //最后登录时间
|
DeviceId string //设备id
|
||||||
DeviceId string //设备id
|
ChannelId string //推广渠道id
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreatePlayerGameRecEvent(snid int32, tax, taxex, amount, validbet, validflow, in, out int64, gameid, gameFreeId, modeid int32, recordId, channel, promoter,
|
func CreatePlayerGameRecEvent(snid int32, tax, taxex, amount, validbet, validflow, in, out int64, gameid, gameFreeId, modeid int32, recordId, channel, channelId, promoter,
|
||||||
platform, city, os string, createDayTime time.Time, gamingTime int32, firstGameFreeTime, firstGameTime time.Time,
|
platform, city, os string, createDayTime time.Time, gamingTime int32, firstGameFreeTime, firstGameTime time.Time,
|
||||||
playGameFreeTimes, playerGameTimes int64, lastLoginTime time.Time, teleponePromoter int32, deviceId string) *PlayerGameRecEvent {
|
playGameFreeTimes, playerGameTimes int64, lastLoginTime time.Time, teleponePromoter int32, deviceId string) *PlayerGameRecEvent {
|
||||||
isNewbie := int32(0)
|
isNewbie := int32(0)
|
||||||
|
|
@ -315,242 +313,227 @@ func CreatePlayerGameRecEvent(snid int32, tax, taxex, amount, validbet, validflo
|
||||||
PlayTimes: playGameFreeTimes,
|
PlayTimes: playGameFreeTimes,
|
||||||
PlayGameTimes: playerGameTimes,
|
PlayGameTimes: playerGameTimes,
|
||||||
LastLoginTime: lastLoginTime.Unix(),
|
LastLoginTime: lastLoginTime.Unix(),
|
||||||
DeviceId: deviceId}
|
DeviceId: deviceId,
|
||||||
}
|
ChannelId: channelId,
|
||||||
|
|
||||||
func MarshalPlayerGameRecEvent(source, snid int32, tax, taxex, amount, validbet, validflow, in, out int64, gameid, gameFreeId, modeid int32, recordId, channel, promoter,
|
|
||||||
platform, city, os string, createDayTime time.Time, gamingTime int32, firstGameFreeTime time.Time,
|
|
||||||
playGameFreeTimes int64, lastLoginTime time.Time, telephonePromoter int32, firstGameTime time.Time,
|
|
||||||
playGameTimes int64, deviceId string) (data string, err error) {
|
|
||||||
raw := &RabbitMQDataRaw{
|
|
||||||
Source: source,
|
|
||||||
Data: CreatePlayerGameRecEvent(snid, tax, taxex, amount, validbet, validflow, in, out, gameid, gameFreeId, modeid, recordId, channel, promoter,
|
|
||||||
platform, city, os, createDayTime, gamingTime, firstGameFreeTime, firstGameTime, playGameFreeTimes, playGameTimes, lastLoginTime, telephonePromoter, deviceId),
|
|
||||||
}
|
}
|
||||||
d, e := json.Marshal(raw)
|
|
||||||
if e == nil {
|
|
||||||
data = string(d[:])
|
|
||||||
}
|
|
||||||
err = e
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 玩家游戏记录
|
// 玩家游戏记录
|
||||||
type PlayerGameRecPayEvent struct {
|
//type PlayerGameRecPayEvent struct {
|
||||||
SnId int32 //用户ID
|
// SnId int32 //用户ID
|
||||||
Channel string //渠道
|
// Channel string //渠道
|
||||||
Promoter string //推广
|
// Promoter string //推广
|
||||||
Platform string //平台
|
// Platform string //平台
|
||||||
City string //城市
|
// City string //城市
|
||||||
OS string //操作系统
|
// OS string //操作系统
|
||||||
TelephonePromoter int32 //电销标签
|
// TelephonePromoter int32 //电销标签
|
||||||
IsNew int32 //是否新人
|
// IsNew int32 //是否新人
|
||||||
IsPay int32 //是否付费
|
// IsPay int32 //是否付费
|
||||||
IsGame int32 //是否游戏
|
// IsGame int32 //是否游戏
|
||||||
CreateTime int64 //记录创建时间
|
// CreateTime int64 //记录创建时间
|
||||||
CreateDayTime int64 //记录创建时间0点
|
// CreateDayTime int64 //记录创建时间0点
|
||||||
Time int64 //当前时间
|
// Time int64 //当前时间
|
||||||
RegisterDayTime int64 //玩家注册时间
|
// RegisterDayTime int64 //玩家注册时间
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
func MarshalPlayerGameRecPayEvent(source, snid, isPay, isGame int32, channel, promoter, platform, city, os string,
|
//func MarshalPlayerGameRecPayEvent(source, snid, isPay, isGame int32, channel, promoter, platform, city, os string,
|
||||||
createDayTime time.Time, orderCreateTime int64, telephonePromoter int32) (data string, err error) {
|
// createDayTime time.Time, orderCreateTime int64, telephonePromoter int32) (data string, err error) {
|
||||||
isNewbie := int32(0)
|
// isNewbie := int32(0)
|
||||||
if now.BeginningOfDay().Equal(now.New(createDayTime).BeginningOfDay()) {
|
// if now.BeginningOfDay().Equal(now.New(createDayTime).BeginningOfDay()) {
|
||||||
isNewbie = 1
|
// isNewbie = 1
|
||||||
}
|
// }
|
||||||
tNow := time.Now()
|
// tNow := time.Now()
|
||||||
raw := &RabbitMQDataRaw{
|
// raw := &RabbitMQDataRaw{
|
||||||
Source: source,
|
// Source: source,
|
||||||
Data: &PlayerGameRecPayEvent{
|
// Data: &PlayerGameRecPayEvent{
|
||||||
SnId: snid,
|
// SnId: snid,
|
||||||
Channel: channel,
|
// Channel: channel,
|
||||||
Promoter: promoter,
|
// Promoter: promoter,
|
||||||
Platform: platform,
|
// Platform: platform,
|
||||||
City: city,
|
// City: city,
|
||||||
OS: os,
|
// OS: os,
|
||||||
IsNew: isNewbie,
|
// IsNew: isNewbie,
|
||||||
TelephonePromoter: telephonePromoter,
|
// TelephonePromoter: telephonePromoter,
|
||||||
IsPay: isPay,
|
// IsPay: isPay,
|
||||||
IsGame: isGame,
|
// IsGame: isGame,
|
||||||
RegisterDayTime: createDayTime.Local().Unix(),
|
// RegisterDayTime: createDayTime.Local().Unix(),
|
||||||
CreateTime: time.Unix(orderCreateTime, 0).Local().Unix(),
|
// CreateTime: time.Unix(orderCreateTime, 0).Local().Unix(),
|
||||||
CreateDayTime: now.New(time.Unix(orderCreateTime, 0)).BeginningOfDay().Local().Unix(),
|
// CreateDayTime: now.New(time.Unix(orderCreateTime, 0)).BeginningOfDay().Local().Unix(),
|
||||||
Time: tNow.Local().Unix(),
|
// Time: tNow.Local().Unix(),
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
d, e := json.Marshal(raw)
|
// d, e := json.Marshal(raw)
|
||||||
if e == nil {
|
// if e == nil {
|
||||||
data = string(d[:])
|
// data = string(d[:])
|
||||||
}
|
// }
|
||||||
err = e
|
// err = e
|
||||||
return
|
// return
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
// 破产统计
|
//// 破产统计
|
||||||
type BankruptcyEvent struct {
|
//type BankruptcyEvent struct {
|
||||||
SnId int32 //用户id
|
// SnId int32 //用户id
|
||||||
Channel string //渠道
|
// Channel string //渠道
|
||||||
Promoter string //推广
|
// Promoter string //推广
|
||||||
Platform string //平台
|
// Platform string //平台
|
||||||
City string //城市
|
// City string //城市
|
||||||
Value int32 //值
|
// Value int32 //值
|
||||||
TelephonePromoter int32 //电销标签
|
// TelephonePromoter int32 //电销标签
|
||||||
IsNew int32 //是否新人
|
// IsNew int32 //是否新人
|
||||||
Time int64 //操作时间
|
// Time int64 //操作时间
|
||||||
GameId int32 //游戏id
|
// GameId int32 //游戏id
|
||||||
GameMode int32 //游戏模式id
|
// GameMode int32 //游戏模式id
|
||||||
GameFreeId int32 //游戏场次id
|
// GameFreeId int32 //游戏场次id
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
func MarshalBankruptcyEvent(source, snid, telephonePromoter int32, channel, promoter, platform, city string, createDayTime time.Time, gameId, gameMode, gameFreeId int32) (data string, err error) {
|
//func MarshalBankruptcyEvent(source, snid, telephonePromoter int32, channel, promoter, platform, city string, createDayTime time.Time, gameId, gameMode, gameFreeId int32) (data string, err error) {
|
||||||
isNewbie := int32(0)
|
// isNewbie := int32(0)
|
||||||
if now.BeginningOfDay().Equal(now.New(createDayTime).BeginningOfDay()) {
|
// if now.BeginningOfDay().Equal(now.New(createDayTime).BeginningOfDay()) {
|
||||||
isNewbie = 1
|
// isNewbie = 1
|
||||||
}
|
// }
|
||||||
raw := &RabbitMQDataRaw{
|
// raw := &RabbitMQDataRaw{
|
||||||
Source: source,
|
// Source: source,
|
||||||
Data: &BankruptcyEvent{
|
// Data: &BankruptcyEvent{
|
||||||
SnId: snid,
|
// SnId: snid,
|
||||||
Channel: channel,
|
// Channel: channel,
|
||||||
Promoter: promoter,
|
// Promoter: promoter,
|
||||||
TelephonePromoter: telephonePromoter,
|
// TelephonePromoter: telephonePromoter,
|
||||||
Platform: platform,
|
// Platform: platform,
|
||||||
City: city,
|
// City: city,
|
||||||
IsNew: isNewbie,
|
// IsNew: isNewbie,
|
||||||
Value: 0,
|
// Value: 0,
|
||||||
Time: time.Now().Local().Unix(),
|
// Time: time.Now().Local().Unix(),
|
||||||
GameId: gameId,
|
// GameId: gameId,
|
||||||
GameMode: gameMode,
|
// GameMode: gameMode,
|
||||||
GameFreeId: gameFreeId,
|
// GameFreeId: gameFreeId,
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
d, e := json.Marshal(raw)
|
// d, e := json.Marshal(raw)
|
||||||
if e == nil {
|
// if e == nil {
|
||||||
data = string(d[:])
|
// data = string(d[:])
|
||||||
}
|
// }
|
||||||
err = e
|
// err = e
|
||||||
return
|
// return
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
// 充值统计
|
//// 充值统计
|
||||||
type PlayerPayEvent struct {
|
//type PlayerPayEvent struct {
|
||||||
SnId int32 //用户id
|
// SnId int32 //用户id
|
||||||
Channel string //渠道
|
// Channel string //渠道
|
||||||
Promoter string //推广
|
// Promoter string //推广
|
||||||
Platform string //平台
|
// Platform string //平台
|
||||||
City string //城市
|
// City string //城市
|
||||||
TelephonePromoter int32 //电销标记
|
// TelephonePromoter int32 //电销标记
|
||||||
Tag int32 //#充值类型 0 API直接充值 1在线充值
|
// Tag int32 //#充值类型 0 API直接充值 1在线充值
|
||||||
BeforeCoin int32 //充值前钱包数量
|
// BeforeCoin int32 //充值前钱包数量
|
||||||
BeforeBank int32 //充值前保险柜数量
|
// BeforeBank int32 //充值前保险柜数量
|
||||||
Amount int32 //充值金额
|
// Amount int32 //充值金额
|
||||||
IsNew int32 //是否是新人
|
// IsNew int32 //是否是新人
|
||||||
Time int64 //操作时间
|
// Time int64 //操作时间
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
func MarshalPlayerPayEvent(source, snid, tag, beforeCoin, beforeBank, amount int32, channel,
|
//func MarshalPlayerPayEvent(source, snid, tag, beforeCoin, beforeBank, amount int32, channel,
|
||||||
promoter, platform, city string, createDayTime time.Time, orderCreateTime int64,
|
// promoter, platform, city string, createDayTime time.Time, orderCreateTime int64,
|
||||||
telephonePromoter int32) (data string, err error) {
|
// telephonePromoter int32) (data string, err error) {
|
||||||
isNewbie := int32(0)
|
// isNewbie := int32(0)
|
||||||
if now.BeginningOfDay().Equal(now.New(createDayTime).BeginningOfDay()) {
|
// if now.BeginningOfDay().Equal(now.New(createDayTime).BeginningOfDay()) {
|
||||||
isNewbie = 1
|
// isNewbie = 1
|
||||||
}
|
// }
|
||||||
raw := &RabbitMQDataRaw{
|
// raw := &RabbitMQDataRaw{
|
||||||
Source: source,
|
// Source: source,
|
||||||
Data: &PlayerPayEvent{
|
// Data: &PlayerPayEvent{
|
||||||
SnId: snid,
|
// SnId: snid,
|
||||||
Channel: channel,
|
// Channel: channel,
|
||||||
Promoter: promoter,
|
// Promoter: promoter,
|
||||||
Platform: platform,
|
// Platform: platform,
|
||||||
City: city,
|
// City: city,
|
||||||
Tag: tag,
|
// Tag: tag,
|
||||||
TelephonePromoter: telephonePromoter,
|
// TelephonePromoter: telephonePromoter,
|
||||||
BeforeCoin: beforeCoin,
|
// BeforeCoin: beforeCoin,
|
||||||
BeforeBank: beforeBank,
|
// BeforeBank: beforeBank,
|
||||||
Amount: amount,
|
// Amount: amount,
|
||||||
IsNew: isNewbie,
|
// IsNew: isNewbie,
|
||||||
Time: time.Unix(orderCreateTime, 0).Local().Unix(),
|
// Time: time.Unix(orderCreateTime, 0).Local().Unix(),
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
d, e := json.Marshal(raw)
|
// d, e := json.Marshal(raw)
|
||||||
if e == nil {
|
// if e == nil {
|
||||||
data = string(d[:])
|
// data = string(d[:])
|
||||||
}
|
// }
|
||||||
err = e
|
// err = e
|
||||||
return
|
// return
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
// 系统赠送
|
//// 系统赠送
|
||||||
type SystemGiveEvent struct {
|
//type SystemGiveEvent struct {
|
||||||
SnId int32 //用户id
|
// SnId int32 //用户id
|
||||||
Channel string //渠道
|
// Channel string //渠道
|
||||||
Promoter string //推广
|
// Promoter string //推广
|
||||||
Platform string //平台
|
// Platform string //平台
|
||||||
City string //城市
|
// City string //城市
|
||||||
TelephonePromoter int32 //电销
|
// TelephonePromoter int32 //电销
|
||||||
Tag int32 //#充值类型 0 API直接充值 1在线充值
|
// Tag int32 //#充值类型 0 API直接充值 1在线充值
|
||||||
Amount int32 //充值金额
|
// Amount int32 //充值金额
|
||||||
Time int64 //操作时间
|
// Time int64 //操作时间
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
func MarshalSystemGiveEvent(source, snid, tag, amount int32, channel, promoter, platform, city string,
|
//func MarshalSystemGiveEvent(source, snid, tag, amount int32, channel, promoter, platform, city string,
|
||||||
telephonePromoter int32) (data string, err error) {
|
// telephonePromoter int32) (data string, err error) {
|
||||||
raw := &RabbitMQDataRaw{
|
// raw := &RabbitMQDataRaw{
|
||||||
Source: source,
|
// Source: source,
|
||||||
Data: &SystemGiveEvent{
|
// Data: &SystemGiveEvent{
|
||||||
SnId: snid,
|
// SnId: snid,
|
||||||
Channel: channel,
|
// Channel: channel,
|
||||||
Promoter: promoter,
|
// Promoter: promoter,
|
||||||
Platform: platform,
|
// Platform: platform,
|
||||||
TelephonePromoter: telephonePromoter,
|
// TelephonePromoter: telephonePromoter,
|
||||||
City: city,
|
// City: city,
|
||||||
Tag: tag,
|
// Tag: tag,
|
||||||
Amount: amount,
|
// Amount: amount,
|
||||||
Time: time.Now().Local().Unix(),
|
// Time: time.Now().Local().Unix(),
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
d, e := json.Marshal(raw)
|
// d, e := json.Marshal(raw)
|
||||||
if e == nil {
|
// if e == nil {
|
||||||
data = string(d[:])
|
// data = string(d[:])
|
||||||
}
|
// }
|
||||||
err = e
|
// err = e
|
||||||
return
|
// return
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
// 水池变化记录
|
//// 水池变化记录
|
||||||
type GameCoinPoolEvent struct {
|
//type GameCoinPoolEvent struct {
|
||||||
Platform string //平台
|
// Platform string //平台
|
||||||
GameId int32 //游戏id
|
// GameId int32 //游戏id
|
||||||
GroupId int32 //组id
|
// GroupId int32 //组id
|
||||||
ChangeCoin int64 //变化金币
|
// ChangeCoin int64 //变化金币
|
||||||
CurCoin int64 //变化后金币
|
// CurCoin int64 //变化后金币
|
||||||
UpCoin int64 //上限
|
// UpCoin int64 //上限
|
||||||
DownCoin int64 //下限
|
// DownCoin int64 //下限
|
||||||
Time int64 //操作时间
|
// Time int64 //操作时间
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
func MarshalGameCoinPoolEvent(source int32, platform string, gameid, groupId int32, changeCoin,
|
//func MarshalGameCoinPoolEvent(source int32, platform string, gameid, groupId int32, changeCoin,
|
||||||
curCoin, upCoin, downCoin int64) (data string, err error) {
|
// curCoin, upCoin, downCoin int64) (data string, err error) {
|
||||||
|
//
|
||||||
raw := &RabbitMQDataRaw{
|
// raw := &RabbitMQDataRaw{
|
||||||
Source: source,
|
// Source: source,
|
||||||
Data: &GameCoinPoolEvent{
|
// Data: &GameCoinPoolEvent{
|
||||||
Platform: platform,
|
// Platform: platform,
|
||||||
GameId: gameid,
|
// GameId: gameid,
|
||||||
|
//
|
||||||
GroupId: groupId,
|
// GroupId: groupId,
|
||||||
ChangeCoin: changeCoin,
|
// ChangeCoin: changeCoin,
|
||||||
CurCoin: curCoin,
|
// CurCoin: curCoin,
|
||||||
UpCoin: upCoin,
|
// UpCoin: upCoin,
|
||||||
DownCoin: downCoin,
|
// DownCoin: downCoin,
|
||||||
Time: time.Now().Local().Unix(),
|
// Time: time.Now().Local().Unix(),
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
d, e := json.Marshal(raw)
|
// d, e := json.Marshal(raw)
|
||||||
if e == nil {
|
// if e == nil {
|
||||||
data = string(d[:])
|
// data = string(d[:])
|
||||||
}
|
// }
|
||||||
err = e
|
// err = e
|
||||||
return
|
// return
|
||||||
}
|
//}
|
||||||
|
|
|
||||||
144
mongo/export.go
144
mongo/export.go
|
|
@ -1,144 +0,0 @@
|
||||||
package mongo
|
|
||||||
|
|
||||||
import (
|
|
||||||
"errors"
|
|
||||||
|
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
|
||||||
"mongo.games.com/goserver/core/logger"
|
|
||||||
|
|
||||||
"mongo.games.com/game/mongo/internal"
|
|
||||||
)
|
|
||||||
|
|
||||||
type DatabaseType string
|
|
||||||
|
|
||||||
const (
|
|
||||||
KeyGlobal = "global"
|
|
||||||
DatabaseUser DatabaseType = "user"
|
|
||||||
DatabaseLog DatabaseType = "log"
|
|
||||||
)
|
|
||||||
|
|
||||||
var NotInitError = errors.New("mongo manager is nil, please call Init() first")
|
|
||||||
|
|
||||||
type Config = internal.Config
|
|
||||||
type DatabaseConfig = internal.DatabaseConfig
|
|
||||||
type Collection = internal.Collection
|
|
||||||
type Database = internal.Database
|
|
||||||
|
|
||||||
var _manager *internal.Manager
|
|
||||||
var _conf *internal.Config
|
|
||||||
|
|
||||||
// GetConfig 获取配置
|
|
||||||
func GetConfig() *Config {
|
|
||||||
return _conf
|
|
||||||
}
|
|
||||||
|
|
||||||
// Init 初始化
|
|
||||||
func Init(conf *Config) {
|
|
||||||
_conf = conf
|
|
||||||
_manager = internal.NewManager(_conf)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Restart 重启
|
|
||||||
func Restart() {
|
|
||||||
if _manager == nil {
|
|
||||||
logger.Logger.Error(NotInitError)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_manager.Restart(_conf)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Close 关闭
|
|
||||||
func Close() {
|
|
||||||
internal.Close(_manager)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetDatabase 获取数据库
|
|
||||||
// platform: 平台id
|
|
||||||
// database: 数据库名称
|
|
||||||
func GetDatabase(platform string, database DatabaseType) (*Database, error) {
|
|
||||||
if _manager == nil {
|
|
||||||
return nil, NotInitError
|
|
||||||
}
|
|
||||||
|
|
||||||
return _manager.GetDatabase(platform, string(database))
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetUserDatabase(platform string) (*Database, error) {
|
|
||||||
return GetDatabase(platform, DatabaseUser)
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetLogDatabase(platform string) (*Database, error) {
|
|
||||||
return GetDatabase(platform, DatabaseLog)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetGlobalDatabase 获取全局库
|
|
||||||
// database: 数据库名称
|
|
||||||
func GetGlobalDatabase(database DatabaseType) (*Database, error) {
|
|
||||||
if _manager == nil {
|
|
||||||
return nil, NotInitError
|
|
||||||
}
|
|
||||||
|
|
||||||
return _manager.GetDatabase(KeyGlobal, string(database))
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetGlobalUserDatabase() (*Database, error) {
|
|
||||||
return GetGlobalDatabase(DatabaseUser)
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetGlobalLogDatabase() (*Database, error) {
|
|
||||||
return GetGlobalDatabase(DatabaseLog)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetGlobalCollection 获取全局库
|
|
||||||
// database: 数据库名称
|
|
||||||
// collection: 集合名称
|
|
||||||
func GetGlobalCollection(database DatabaseType, collection string) (*Collection, error) {
|
|
||||||
if _manager == nil {
|
|
||||||
return nil, NotInitError
|
|
||||||
}
|
|
||||||
|
|
||||||
return _manager.GetCollection(KeyGlobal, string(database), collection)
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetGlobalUserCollection(collection string) (*Collection, error) {
|
|
||||||
return GetGlobalCollection(DatabaseUser, collection)
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetGlobalLogCollection(collection string) (*Collection, error) {
|
|
||||||
return GetGlobalCollection(DatabaseLog, collection)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetCollection 获取平台库
|
|
||||||
// platform: 平台id
|
|
||||||
// database: 数据库名称
|
|
||||||
// collection: 集合名称
|
|
||||||
func GetCollection(platform string, database DatabaseType, collection string) (*Collection, error) {
|
|
||||||
if _manager == nil {
|
|
||||||
return nil, NotInitError
|
|
||||||
}
|
|
||||||
|
|
||||||
return _manager.GetCollection(platform, string(database), collection)
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetUserCollection(platform string, collection string) (*Collection, error) {
|
|
||||||
return GetCollection(platform, DatabaseUser, collection)
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetLogCollection(platform string, collection string) (*Collection, error) {
|
|
||||||
return GetCollection(platform, DatabaseLog, collection)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetClient 获取数据库连接
|
|
||||||
// 默认获取的是 Global, log 的数据库连接
|
|
||||||
func GetClient() (*mongo.Client, error) {
|
|
||||||
if _manager == nil {
|
|
||||||
return nil, NotInitError
|
|
||||||
}
|
|
||||||
|
|
||||||
c, err := _manager.GetCollection(KeyGlobal, string(DatabaseLog), "empty")
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return c.Database.Client, nil
|
|
||||||
}
|
|
||||||
|
|
@ -1,196 +0,0 @@
|
||||||
package internal
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"sync"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
|
||||||
"go.mongodb.org/mongo-driver/mongo/options"
|
|
||||||
"mongo.games.com/goserver/core/logger"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Config struct {
|
|
||||||
Global map[string]*DatabaseConfig
|
|
||||||
Platforms map[string]map[string]*DatabaseConfig
|
|
||||||
}
|
|
||||||
|
|
||||||
type DatabaseConfig struct {
|
|
||||||
HostName string // 主机地址
|
|
||||||
HostPort int32 // 端口
|
|
||||||
Database string // 数据库名
|
|
||||||
Username string // 用户名
|
|
||||||
Password string // 密码
|
|
||||||
Options string // 配置
|
|
||||||
}
|
|
||||||
|
|
||||||
type Collection struct {
|
|
||||||
Database *Database
|
|
||||||
*mongo.Collection
|
|
||||||
}
|
|
||||||
|
|
||||||
type Database struct {
|
|
||||||
*DatabaseConfig
|
|
||||||
Client *mongo.Client
|
|
||||||
Database *mongo.Database
|
|
||||||
Collection sync.Map
|
|
||||||
}
|
|
||||||
|
|
||||||
func (d *Database) Connect() error {
|
|
||||||
if d.DatabaseConfig == nil {
|
|
||||||
err := fmt.Errorf("mongo Connect error, DatabaseConifg not found")
|
|
||||||
logger.Logger.Error(err)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
login := ""
|
|
||||||
if d.DatabaseConfig.Username != "" {
|
|
||||||
login = d.DatabaseConfig.Username + ":" + d.DatabaseConfig.Password + "@"
|
|
||||||
}
|
|
||||||
host := d.DatabaseConfig.HostName
|
|
||||||
if d.DatabaseConfig.HostName == "" {
|
|
||||||
host = "127.0.0.1"
|
|
||||||
}
|
|
||||||
port := d.DatabaseConfig.HostPort
|
|
||||||
if d.DatabaseConfig.HostPort == 0 {
|
|
||||||
port = 27017
|
|
||||||
}
|
|
||||||
myOptions := d.DatabaseConfig.Options
|
|
||||||
if myOptions != "" {
|
|
||||||
myOptions = "?" + myOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
s := fmt.Sprintf("mongodb://%s%s:%d/admin%s", login, host, port, myOptions)
|
|
||||||
client, err := mongo.Connect(context.TODO(), options.Client().ApplyURI(s))
|
|
||||||
if err != nil {
|
|
||||||
logger.Logger.Errorf("mongo Connect %v error: %v config:%+v", s, err, *d.DatabaseConfig)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
logger.Logger.Tracef("mongo connect success %+v", *d.DatabaseConfig)
|
|
||||||
d.Client = client
|
|
||||||
d.Database = client.Database(d.DatabaseConfig.Database)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (d *Database) GetCollection(name string) (*Collection, error) {
|
|
||||||
if d.Database == nil {
|
|
||||||
err := fmt.Errorf("mongo GetCollection error, collection:%v, database is nil", name)
|
|
||||||
logger.Logger.Error(err)
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
v, ok := d.Collection.Load(name)
|
|
||||||
if !ok {
|
|
||||||
v = &Collection{
|
|
||||||
Database: d,
|
|
||||||
Collection: d.Database.Collection(name),
|
|
||||||
}
|
|
||||||
d.Collection.Store(name, v)
|
|
||||||
}
|
|
||||||
c, _ := v.(*Collection)
|
|
||||||
return c, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type Manager struct {
|
|
||||||
conf *Config
|
|
||||||
global *sync.Map // 内部库名称:Database
|
|
||||||
platforms *sync.Map // 平台id:内部库名称:Database
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Manager) GetCollection(key, database, collection string) (*Collection, error) {
|
|
||||||
d, err := m.GetDatabase(key, database)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return d.GetCollection(collection)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Manager) GetDatabase(key, database string) (*Database, error) {
|
|
||||||
switch key {
|
|
||||||
case "global":
|
|
||||||
v, ok := m.global.Load(database)
|
|
||||||
if !ok {
|
|
||||||
db := &Database{
|
|
||||||
DatabaseConfig: m.conf.Global[database],
|
|
||||||
Collection: sync.Map{},
|
|
||||||
}
|
|
||||||
if err := db.Connect(); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
v = db
|
|
||||||
m.global.Store(database, v)
|
|
||||||
}
|
|
||||||
d, _ := v.(*Database)
|
|
||||||
return d, nil
|
|
||||||
|
|
||||||
default:
|
|
||||||
var mp *sync.Map
|
|
||||||
v, ok := m.platforms.Load(key) // 平台id
|
|
||||||
if !ok {
|
|
||||||
mp = new(sync.Map)
|
|
||||||
m.platforms.Store(key, mp)
|
|
||||||
} else {
|
|
||||||
mp = v.(*sync.Map)
|
|
||||||
}
|
|
||||||
v, ok = mp.Load(database)
|
|
||||||
if !ok {
|
|
||||||
db := &Database{
|
|
||||||
DatabaseConfig: m.conf.Platforms[key][database],
|
|
||||||
Collection: sync.Map{},
|
|
||||||
}
|
|
||||||
if err := db.Connect(); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
v = db
|
|
||||||
mp.Store(database, v)
|
|
||||||
}
|
|
||||||
d, _ := v.(*Database)
|
|
||||||
return d, nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Manager) Restart(conf *Config) {
|
|
||||||
logger.Logger.Infof("mongo manager restart...")
|
|
||||||
old := *m
|
|
||||||
time.AfterFunc(time.Minute, func() {
|
|
||||||
Close(&old)
|
|
||||||
})
|
|
||||||
|
|
||||||
m.conf = conf
|
|
||||||
m.global = &sync.Map{}
|
|
||||||
m.platforms = &sync.Map{}
|
|
||||||
}
|
|
||||||
|
|
||||||
func Close(m *Manager) {
|
|
||||||
logger.Logger.Infof("mongo manager close")
|
|
||||||
m.global.Range(func(key, value any) bool {
|
|
||||||
if v, ok := value.(*Database); ok {
|
|
||||||
v.Client.Disconnect(nil)
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
})
|
|
||||||
|
|
||||||
m.platforms.Range(func(key, value any) bool {
|
|
||||||
if v, ok := value.(*sync.Map); ok {
|
|
||||||
v.Range(func(key, value any) bool {
|
|
||||||
if v, ok := value.(*Database); ok {
|
|
||||||
v.Client.Disconnect(nil)
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
})
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Manager) GetConfig() *Config {
|
|
||||||
return m.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewManager(conf *Config) *Manager {
|
|
||||||
return &Manager{
|
|
||||||
conf: conf,
|
|
||||||
global: &sync.Map{},
|
|
||||||
platforms: &sync.Map{},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,48 @@
|
||||||
|
package mysql
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
|
||||||
|
"mongo.games.com/game/mysql/internal"
|
||||||
|
)
|
||||||
|
|
||||||
|
var NotInitError = errors.New("mysql manager is nil, please call Init() first")
|
||||||
|
|
||||||
|
type Config = internal.Config
|
||||||
|
type DatabaseConfig = internal.DatabaseConfig
|
||||||
|
type Database = internal.Database
|
||||||
|
|
||||||
|
var manager *internal.Manager
|
||||||
|
|
||||||
|
func Init(conf *Config) error {
|
||||||
|
manager = internal.NewManager(conf)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetAutoMigrateTables(tables []interface{}) {
|
||||||
|
if manager == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
manager.SetAutoMigrateTables(tables)
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetConfig() *Config {
|
||||||
|
if manager == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return manager.GetConfig()
|
||||||
|
}
|
||||||
|
|
||||||
|
func Close() {
|
||||||
|
if manager == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
manager.Close()
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetDatabase(platform string) (*Database, error) {
|
||||||
|
if manager == nil {
|
||||||
|
return nil, NotInitError
|
||||||
|
}
|
||||||
|
return manager.GetDatabase(platform)
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,150 @@
|
||||||
|
package internal
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"sync"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/driver/mysql"
|
||||||
|
"gorm.io/gorm"
|
||||||
|
"mongo.games.com/goserver/core/logger"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Config struct {
|
||||||
|
Platforms map[string]*DatabaseConfig
|
||||||
|
MaxIdleConns int
|
||||||
|
MaxOpenConns int
|
||||||
|
ConnMaxLifetime int
|
||||||
|
ConnMaxIdletime int
|
||||||
|
}
|
||||||
|
|
||||||
|
type DatabaseConfig struct {
|
||||||
|
HostName string
|
||||||
|
HostPort int32
|
||||||
|
Database string
|
||||||
|
Username string
|
||||||
|
Password string
|
||||||
|
Options string
|
||||||
|
}
|
||||||
|
|
||||||
|
type Database struct {
|
||||||
|
*Manager
|
||||||
|
*Config
|
||||||
|
*DatabaseConfig
|
||||||
|
*gorm.DB
|
||||||
|
}
|
||||||
|
|
||||||
|
func (d *Database) Connect() error {
|
||||||
|
if d.DatabaseConfig == nil {
|
||||||
|
err := fmt.Errorf("mysql Connect error, DatabaseConifg not found")
|
||||||
|
logger.Logger.Error(err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
login := ""
|
||||||
|
if d.DatabaseConfig.Username != "" {
|
||||||
|
login = d.DatabaseConfig.Username + ":" + d.DatabaseConfig.Password + "@"
|
||||||
|
}
|
||||||
|
host := d.DatabaseConfig.HostName
|
||||||
|
if d.DatabaseConfig.HostName == "" {
|
||||||
|
host = "127.0.0.1"
|
||||||
|
}
|
||||||
|
port := d.DatabaseConfig.HostPort
|
||||||
|
if d.DatabaseConfig.HostPort == 0 {
|
||||||
|
port = 3306
|
||||||
|
}
|
||||||
|
database := d.DatabaseConfig.Database
|
||||||
|
if database == "" {
|
||||||
|
database = "mysql"
|
||||||
|
}
|
||||||
|
myOptions := d.DatabaseConfig.Options
|
||||||
|
if myOptions != "" {
|
||||||
|
myOptions = "?" + myOptions
|
||||||
|
}
|
||||||
|
|
||||||
|
// [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN]
|
||||||
|
s := fmt.Sprintf("%stcp(%s:%d)/%s%s", login, host, port, "mysql", myOptions)
|
||||||
|
db, err := gorm.Open(mysql.Open(s), &gorm.Config{})
|
||||||
|
if err != nil {
|
||||||
|
logger.Logger.Errorf("mysql Connect %v error: %v config:%+v", s, err, *d.DatabaseConfig)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
logger.Logger.Tracef("mysql connect success %+v", *d.DatabaseConfig)
|
||||||
|
|
||||||
|
err = db.Exec(fmt.Sprintf("CREATE DATABASE IF NOT EXISTS %s CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci", d.DatabaseConfig.Database)).Error
|
||||||
|
if err != nil {
|
||||||
|
logger.Logger.Errorf("mysql create database %s error: %v", d.DatabaseConfig.Database, err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
s = fmt.Sprintf("%stcp(%s:%d)/%s%s", login, host, port, d.DatabaseConfig.Database, myOptions)
|
||||||
|
db, err = gorm.Open(mysql.Open(s), &gorm.Config{SkipDefaultTransaction: true})
|
||||||
|
if err != nil {
|
||||||
|
logger.Logger.Errorf("mysql Connect %v error: %v config:%+v", s, err, *d.DatabaseConfig)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
sqlDB, err := db.DB()
|
||||||
|
if err != nil {
|
||||||
|
logger.Logger.Errorf("mysql get DB error: %v", err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(d.tables) > 0 {
|
||||||
|
if err := db.AutoMigrate(d.tables...); err != nil {
|
||||||
|
logger.Logger.Warnf("mysql migrate error: %v", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sqlDB.SetMaxIdleConns(d.MaxIdleConns)
|
||||||
|
sqlDB.SetMaxOpenConns(d.MaxOpenConns)
|
||||||
|
sqlDB.SetConnMaxLifetime(time.Duration(d.ConnMaxLifetime))
|
||||||
|
sqlDB.SetConnMaxIdleTime(time.Duration(d.ConnMaxIdletime))
|
||||||
|
|
||||||
|
d.DB = db.Session(&gorm.Session{SkipDefaultTransaction: true})
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type Manager struct {
|
||||||
|
conf *Config
|
||||||
|
platforms sync.Map // 平台id:Database
|
||||||
|
tables []interface{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Manager) GetConfig() *Config {
|
||||||
|
return m.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Manager) SetAutoMigrateTables(tables []interface{}) {
|
||||||
|
m.tables = tables
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Manager) GetDatabase(key string) (*Database, error) {
|
||||||
|
v, ok := m.platforms.Load(key) // 平台id
|
||||||
|
if !ok {
|
||||||
|
db := &Database{
|
||||||
|
Manager: m,
|
||||||
|
Config: m.conf,
|
||||||
|
DatabaseConfig: m.conf.Platforms[key],
|
||||||
|
}
|
||||||
|
if err := db.Connect(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
v = db
|
||||||
|
m.platforms.Store(key, v)
|
||||||
|
}
|
||||||
|
d, _ := v.(*Database)
|
||||||
|
return d, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Manager) Close() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewManager(conf *Config) *Manager {
|
||||||
|
return &Manager{
|
||||||
|
conf: conf,
|
||||||
|
platforms: sync.Map{},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -80,7 +80,7 @@ func (FortuneTigerPID) EnumDescriptor() ([]byte, []int) {
|
||||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{0}
|
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
type FortuneDragonPlayerData struct {
|
type FortuneTigerPlayerData struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
@ -98,8 +98,8 @@ type FortuneDragonPlayerData struct {
|
||||||
VIP int32 `protobuf:"varint,11,opt,name=VIP,proto3" json:"VIP,omitempty"`
|
VIP int32 `protobuf:"varint,11,opt,name=VIP,proto3" json:"VIP,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) Reset() {
|
func (x *FortuneTigerPlayerData) Reset() {
|
||||||
*x = FortuneDragonPlayerData{}
|
*x = FortuneTigerPlayerData{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[0]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -107,13 +107,13 @@ func (x *FortuneDragonPlayerData) Reset() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) String() string {
|
func (x *FortuneTigerPlayerData) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*FortuneDragonPlayerData) ProtoMessage() {}
|
func (*FortuneTigerPlayerData) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) ProtoReflect() protoreflect.Message {
|
func (x *FortuneTigerPlayerData) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[0]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[0]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -125,82 +125,82 @@ func (x *FortuneDragonPlayerData) ProtoReflect() protoreflect.Message {
|
||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use FortuneDragonPlayerData.ProtoReflect.Descriptor instead.
|
// Deprecated: Use FortuneTigerPlayerData.ProtoReflect.Descriptor instead.
|
||||||
func (*FortuneDragonPlayerData) Descriptor() ([]byte, []int) {
|
func (*FortuneTigerPlayerData) Descriptor() ([]byte, []int) {
|
||||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{0}
|
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetName() string {
|
func (x *FortuneTigerPlayerData) GetName() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Name
|
return x.Name
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetSnId() int32 {
|
func (x *FortuneTigerPlayerData) GetSnId() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.SnId
|
return x.SnId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetHead() int32 {
|
func (x *FortuneTigerPlayerData) GetHead() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Head
|
return x.Head
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetSex() int32 {
|
func (x *FortuneTigerPlayerData) GetSex() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Sex
|
return x.Sex
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetCoin() int64 {
|
func (x *FortuneTigerPlayerData) GetCoin() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Coin
|
return x.Coin
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetPos() int32 {
|
func (x *FortuneTigerPlayerData) GetPos() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Pos
|
return x.Pos
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetFlag() int32 {
|
func (x *FortuneTigerPlayerData) GetFlag() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Flag
|
return x.Flag
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetParams() []string {
|
func (x *FortuneTigerPlayerData) GetParams() []string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Params
|
return x.Params
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetCity() string {
|
func (x *FortuneTigerPlayerData) GetCity() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.City
|
return x.City
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetHeadOutLine() int32 {
|
func (x *FortuneTigerPlayerData) GetHeadOutLine() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeadOutLine
|
return x.HeadOutLine
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FortuneDragonPlayerData) GetVIP() int32 {
|
func (x *FortuneTigerPlayerData) GetVIP() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.VIP
|
return x.VIP
|
||||||
}
|
}
|
||||||
|
|
@ -209,26 +209,26 @@ func (x *FortuneDragonPlayerData) GetVIP() int32 {
|
||||||
|
|
||||||
//房间信息
|
//房间信息
|
||||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMINFO
|
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMINFO
|
||||||
type SCFortuneDragonRoomInfo struct {
|
type SCFortuneTigerRoomInfo struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
RoomId int32 `protobuf:"varint,1,opt,name=RoomId,proto3" json:"RoomId,omitempty"` //房间id
|
RoomId int32 `protobuf:"varint,1,opt,name=RoomId,proto3" json:"RoomId,omitempty"` //房间id
|
||||||
GameFreeId int32 `protobuf:"varint,2,opt,name=GameFreeId,proto3" json:"GameFreeId,omitempty"`
|
GameFreeId int32 `protobuf:"varint,2,opt,name=GameFreeId,proto3" json:"GameFreeId,omitempty"`
|
||||||
GameId int32 `protobuf:"varint,3,opt,name=GameId,proto3" json:"GameId,omitempty"` //游戏id
|
GameId int32 `protobuf:"varint,3,opt,name=GameId,proto3" json:"GameId,omitempty"` //游戏id
|
||||||
RoomMode int32 `protobuf:"varint,4,opt,name=RoomMode,proto3" json:"RoomMode,omitempty"` //游戏模式
|
RoomMode int32 `protobuf:"varint,4,opt,name=RoomMode,proto3" json:"RoomMode,omitempty"` //游戏模式
|
||||||
Params []int32 `protobuf:"varint,5,rep,packed,name=Params,proto3" json:"Params,omitempty"` //规则参数
|
Params []int32 `protobuf:"varint,5,rep,packed,name=Params,proto3" json:"Params,omitempty"` //规则参数
|
||||||
NumOfGames int32 `protobuf:"varint,6,opt,name=NumOfGames,proto3" json:"NumOfGames,omitempty"` //当前第几局
|
NumOfGames int32 `protobuf:"varint,6,opt,name=NumOfGames,proto3" json:"NumOfGames,omitempty"` //当前第几局
|
||||||
State int32 `protobuf:"varint,7,opt,name=State,proto3" json:"State,omitempty"` //房间当前状态
|
State int32 `protobuf:"varint,7,opt,name=State,proto3" json:"State,omitempty"` //房间当前状态
|
||||||
ParamsEx []int64 `protobuf:"varint,8,rep,packed,name=ParamsEx,proto3" json:"ParamsEx,omitempty"` //其他参数
|
ParamsEx []int64 `protobuf:"varint,8,rep,packed,name=ParamsEx,proto3" json:"ParamsEx,omitempty"` //其他参数
|
||||||
SceneType int32 `protobuf:"varint,9,opt,name=SceneType,proto3" json:"SceneType,omitempty"` //房间模式
|
SceneType int32 `protobuf:"varint,9,opt,name=SceneType,proto3" json:"SceneType,omitempty"` //房间模式
|
||||||
Player *FortuneDragonPlayerData `protobuf:"bytes,10,opt,name=Player,proto3" json:"Player,omitempty"` //房间内的玩家信息
|
Player *FortuneTigerPlayerData `protobuf:"bytes,10,opt,name=Player,proto3" json:"Player,omitempty"` //房间内的玩家信息
|
||||||
PlayerInfo string `protobuf:"bytes,11,opt,name=PlayerInfo,proto3" json:"PlayerInfo,omitempty"`
|
PlayerInfo string `protobuf:"bytes,11,opt,name=PlayerInfo,proto3" json:"PlayerInfo,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) Reset() {
|
func (x *SCFortuneTigerRoomInfo) Reset() {
|
||||||
*x = SCFortuneDragonRoomInfo{}
|
*x = SCFortuneTigerRoomInfo{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[1]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -236,13 +236,13 @@ func (x *SCFortuneDragonRoomInfo) Reset() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) String() string {
|
func (x *SCFortuneTigerRoomInfo) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*SCFortuneDragonRoomInfo) ProtoMessage() {}
|
func (*SCFortuneTigerRoomInfo) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) ProtoReflect() protoreflect.Message {
|
func (x *SCFortuneTigerRoomInfo) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[1]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[1]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -254,82 +254,82 @@ func (x *SCFortuneDragonRoomInfo) ProtoReflect() protoreflect.Message {
|
||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use SCFortuneDragonRoomInfo.ProtoReflect.Descriptor instead.
|
// Deprecated: Use SCFortuneTigerRoomInfo.ProtoReflect.Descriptor instead.
|
||||||
func (*SCFortuneDragonRoomInfo) Descriptor() ([]byte, []int) {
|
func (*SCFortuneTigerRoomInfo) Descriptor() ([]byte, []int) {
|
||||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{1}
|
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetRoomId() int32 {
|
func (x *SCFortuneTigerRoomInfo) GetRoomId() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.RoomId
|
return x.RoomId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetGameFreeId() int32 {
|
func (x *SCFortuneTigerRoomInfo) GetGameFreeId() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.GameFreeId
|
return x.GameFreeId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetGameId() int32 {
|
func (x *SCFortuneTigerRoomInfo) GetGameId() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.GameId
|
return x.GameId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetRoomMode() int32 {
|
func (x *SCFortuneTigerRoomInfo) GetRoomMode() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.RoomMode
|
return x.RoomMode
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetParams() []int32 {
|
func (x *SCFortuneTigerRoomInfo) GetParams() []int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Params
|
return x.Params
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetNumOfGames() int32 {
|
func (x *SCFortuneTigerRoomInfo) GetNumOfGames() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.NumOfGames
|
return x.NumOfGames
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetState() int32 {
|
func (x *SCFortuneTigerRoomInfo) GetState() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.State
|
return x.State
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetParamsEx() []int64 {
|
func (x *SCFortuneTigerRoomInfo) GetParamsEx() []int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.ParamsEx
|
return x.ParamsEx
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetSceneType() int32 {
|
func (x *SCFortuneTigerRoomInfo) GetSceneType() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.SceneType
|
return x.SceneType
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetPlayer() *FortuneDragonPlayerData {
|
func (x *SCFortuneTigerRoomInfo) GetPlayer() *FortuneTigerPlayerData {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Player
|
return x.Player
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomInfo) GetPlayerInfo() string {
|
func (x *SCFortuneTigerRoomInfo) GetPlayerInfo() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.PlayerInfo
|
return x.PlayerInfo
|
||||||
}
|
}
|
||||||
|
|
@ -338,7 +338,7 @@ func (x *SCFortuneDragonRoomInfo) GetPlayerInfo() string {
|
||||||
|
|
||||||
//玩家操作
|
//玩家操作
|
||||||
//PACKET_FORTUNETIGER_CSFORTUNETIGEROP
|
//PACKET_FORTUNETIGER_CSFORTUNETIGEROP
|
||||||
type CSFortuneDragonOp struct {
|
type CSFortuneTigerOp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
@ -347,8 +347,8 @@ type CSFortuneDragonOp struct {
|
||||||
Params []int64 `protobuf:"varint,2,rep,packed,name=Params,proto3" json:"Params,omitempty"` //操作参数 下注索引编号
|
Params []int64 `protobuf:"varint,2,rep,packed,name=Params,proto3" json:"Params,omitempty"` //操作参数 下注索引编号
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CSFortuneDragonOp) Reset() {
|
func (x *CSFortuneTigerOp) Reset() {
|
||||||
*x = CSFortuneDragonOp{}
|
*x = CSFortuneTigerOp{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[2]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -356,13 +356,13 @@ func (x *CSFortuneDragonOp) Reset() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CSFortuneDragonOp) String() string {
|
func (x *CSFortuneTigerOp) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*CSFortuneDragonOp) ProtoMessage() {}
|
func (*CSFortuneTigerOp) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CSFortuneDragonOp) ProtoReflect() protoreflect.Message {
|
func (x *CSFortuneTigerOp) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[2]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[2]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -374,19 +374,19 @@ func (x *CSFortuneDragonOp) ProtoReflect() protoreflect.Message {
|
||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use CSFortuneDragonOp.ProtoReflect.Descriptor instead.
|
// Deprecated: Use CSFortuneTigerOp.ProtoReflect.Descriptor instead.
|
||||||
func (*CSFortuneDragonOp) Descriptor() ([]byte, []int) {
|
func (*CSFortuneTigerOp) Descriptor() ([]byte, []int) {
|
||||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{2}
|
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CSFortuneDragonOp) GetOpCode() int32 {
|
func (x *CSFortuneTigerOp) GetOpCode() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.OpCode
|
return x.OpCode
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CSFortuneDragonOp) GetParams() []int64 {
|
func (x *CSFortuneTigerOp) GetParams() []int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Params
|
return x.Params
|
||||||
}
|
}
|
||||||
|
|
@ -395,7 +395,7 @@ func (x *CSFortuneDragonOp) GetParams() []int64 {
|
||||||
|
|
||||||
//玩家操作返回
|
//玩家操作返回
|
||||||
//PACKET_FORTUNETIGER_SCFORTUNETIGEROP
|
//PACKET_FORTUNETIGER_SCFORTUNETIGEROP
|
||||||
type SCFortuneDragonOp struct {
|
type SCFortuneTigerOp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
@ -405,8 +405,8 @@ type SCFortuneDragonOp struct {
|
||||||
Params []int64 `protobuf:"varint,3,rep,packed,name=Params,proto3" json:"Params,omitempty"` //操作参数
|
Params []int64 `protobuf:"varint,3,rep,packed,name=Params,proto3" json:"Params,omitempty"` //操作参数
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonOp) Reset() {
|
func (x *SCFortuneTigerOp) Reset() {
|
||||||
*x = SCFortuneDragonOp{}
|
*x = SCFortuneTigerOp{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[3]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -414,13 +414,13 @@ func (x *SCFortuneDragonOp) Reset() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonOp) String() string {
|
func (x *SCFortuneTigerOp) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*SCFortuneDragonOp) ProtoMessage() {}
|
func (*SCFortuneTigerOp) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *SCFortuneDragonOp) ProtoReflect() protoreflect.Message {
|
func (x *SCFortuneTigerOp) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[3]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[3]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -432,26 +432,26 @@ func (x *SCFortuneDragonOp) ProtoReflect() protoreflect.Message {
|
||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use SCFortuneDragonOp.ProtoReflect.Descriptor instead.
|
// Deprecated: Use SCFortuneTigerOp.ProtoReflect.Descriptor instead.
|
||||||
func (*SCFortuneDragonOp) Descriptor() ([]byte, []int) {
|
func (*SCFortuneTigerOp) Descriptor() ([]byte, []int) {
|
||||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{3}
|
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonOp) GetOpCode() int32 {
|
func (x *SCFortuneTigerOp) GetOpCode() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.OpCode
|
return x.OpCode
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonOp) GetOpRetCode() int32 {
|
func (x *SCFortuneTigerOp) GetOpRetCode() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.OpRetCode
|
return x.OpRetCode
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonOp) GetParams() []int64 {
|
func (x *SCFortuneTigerOp) GetParams() []int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Params
|
return x.Params
|
||||||
}
|
}
|
||||||
|
|
@ -460,7 +460,7 @@ func (x *SCFortuneDragonOp) GetParams() []int64 {
|
||||||
|
|
||||||
//房间状态
|
//房间状态
|
||||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMSTATE
|
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMSTATE
|
||||||
type SCFortuneDragonRoomState struct {
|
type SCFortuneTigerRoomState struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
@ -470,8 +470,8 @@ type SCFortuneDragonRoomState struct {
|
||||||
Params []int32 `protobuf:"varint,3,rep,packed,name=Params,proto3" json:"Params,omitempty"` //状态参数
|
Params []int32 `protobuf:"varint,3,rep,packed,name=Params,proto3" json:"Params,omitempty"` //状态参数
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomState) Reset() {
|
func (x *SCFortuneTigerRoomState) Reset() {
|
||||||
*x = SCFortuneDragonRoomState{}
|
*x = SCFortuneTigerRoomState{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[4]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -479,13 +479,13 @@ func (x *SCFortuneDragonRoomState) Reset() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomState) String() string {
|
func (x *SCFortuneTigerRoomState) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*SCFortuneDragonRoomState) ProtoMessage() {}
|
func (*SCFortuneTigerRoomState) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomState) ProtoReflect() protoreflect.Message {
|
func (x *SCFortuneTigerRoomState) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[4]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[4]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -497,26 +497,26 @@ func (x *SCFortuneDragonRoomState) ProtoReflect() protoreflect.Message {
|
||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use SCFortuneDragonRoomState.ProtoReflect.Descriptor instead.
|
// Deprecated: Use SCFortuneTigerRoomState.ProtoReflect.Descriptor instead.
|
||||||
func (*SCFortuneDragonRoomState) Descriptor() ([]byte, []int) {
|
func (*SCFortuneTigerRoomState) Descriptor() ([]byte, []int) {
|
||||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{4}
|
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomState) GetState() int32 {
|
func (x *SCFortuneTigerRoomState) GetState() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.State
|
return x.State
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomState) GetSubState() int32 {
|
func (x *SCFortuneTigerRoomState) GetSubState() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.SubState
|
return x.SubState
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonRoomState) GetParams() []int32 {
|
func (x *SCFortuneTigerRoomState) GetParams() []int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Params
|
return x.Params
|
||||||
}
|
}
|
||||||
|
|
@ -524,7 +524,7 @@ func (x *SCFortuneDragonRoomState) GetParams() []int32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED
|
//PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED
|
||||||
type SCFortuneDragonBilled struct {
|
type SCFortuneTigerBilled struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
@ -533,8 +533,8 @@ type SCFortuneDragonBilled struct {
|
||||||
GameEndStr string `protobuf:"bytes,2,opt,name=GameEndStr,proto3" json:"GameEndStr,omitempty"`
|
GameEndStr string `protobuf:"bytes,2,opt,name=GameEndStr,proto3" json:"GameEndStr,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonBilled) Reset() {
|
func (x *SCFortuneTigerBilled) Reset() {
|
||||||
*x = SCFortuneDragonBilled{}
|
*x = SCFortuneTigerBilled{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[5]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -542,13 +542,13 @@ func (x *SCFortuneDragonBilled) Reset() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonBilled) String() string {
|
func (x *SCFortuneTigerBilled) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*SCFortuneDragonBilled) ProtoMessage() {}
|
func (*SCFortuneTigerBilled) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *SCFortuneDragonBilled) ProtoReflect() protoreflect.Message {
|
func (x *SCFortuneTigerBilled) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[5]
|
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[5]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -560,19 +560,19 @@ func (x *SCFortuneDragonBilled) ProtoReflect() protoreflect.Message {
|
||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use SCFortuneDragonBilled.ProtoReflect.Descriptor instead.
|
// Deprecated: Use SCFortuneTigerBilled.ProtoReflect.Descriptor instead.
|
||||||
func (*SCFortuneDragonBilled) Descriptor() ([]byte, []int) {
|
func (*SCFortuneTigerBilled) Descriptor() ([]byte, []int) {
|
||||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{5}
|
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonBilled) GetOpRetCode() int32 {
|
func (x *SCFortuneTigerBilled) GetOpRetCode() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.OpRetCode
|
return x.OpRetCode
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SCFortuneDragonBilled) GetGameEndStr() string {
|
func (x *SCFortuneTigerBilled) GetGameEndStr() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.GameEndStr
|
return x.GameEndStr
|
||||||
}
|
}
|
||||||
|
|
@ -585,89 +585,89 @@ var file_protocol_fortunetiger_fortunetiger_proto_rawDesc = []byte{
|
||||||
0x0a, 0x28, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x66, 0x6f, 0x72, 0x74, 0x75,
|
0x0a, 0x28, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x66, 0x6f, 0x72, 0x74, 0x75,
|
||||||
0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x2f, 0x66, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x74,
|
0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x2f, 0x66, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x74,
|
||||||
0x69, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x66, 0x6f, 0x72, 0x74,
|
0x69, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x66, 0x6f, 0x72, 0x74,
|
||||||
0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x22, 0x81, 0x02, 0x0a, 0x17, 0x46, 0x6f, 0x72,
|
0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x22, 0x80, 0x02, 0x0a, 0x16, 0x46, 0x6f, 0x72,
|
||||||
0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72,
|
0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x44,
|
||||||
0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
|
0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x49, 0x64,
|
0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x49, 0x64, 0x18,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04,
|
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x48,
|
||||||
0x48, 0x65, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x48, 0x65, 0x61, 0x64,
|
0x65, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x48, 0x65, 0x61, 0x64, 0x12,
|
||||||
0x12, 0x10, 0x0a, 0x03, 0x53, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x53,
|
0x10, 0x0a, 0x03, 0x53, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x53, 0x65,
|
||||||
0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x6f, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
|
0x78, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x6f, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||||
0x52, 0x04, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x50, 0x6f, 0x73, 0x18, 0x06, 0x20,
|
0x04, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x50, 0x6f, 0x73, 0x18, 0x06, 0x20, 0x01,
|
||||||
0x01, 0x28, 0x05, 0x52, 0x03, 0x50, 0x6f, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x6c, 0x61, 0x67,
|
0x28, 0x05, 0x52, 0x03, 0x50, 0x6f, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x18,
|
||||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06,
|
0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x50,
|
||||||
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x50, 0x61,
|
0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x50, 0x61, 0x72,
|
||||||
0x72, 0x61, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01,
|
0x61, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28,
|
||||||
0x28, 0x09, 0x52, 0x04, 0x43, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64,
|
0x09, 0x52, 0x04, 0x43, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x4f,
|
||||||
0x4f, 0x75, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x48,
|
0x75, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x48, 0x65,
|
||||||
0x65, 0x61, 0x64, 0x4f, 0x75, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x49,
|
0x61, 0x64, 0x4f, 0x75, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x49, 0x50,
|
||||||
0x50, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x56, 0x49, 0x50, 0x22, 0xec, 0x02, 0x0a,
|
0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x56, 0x49, 0x50, 0x22, 0xea, 0x02, 0x0a, 0x16,
|
||||||
0x17, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e,
|
0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x52, 0x6f,
|
||||||
0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x6f, 0x6f, 0x6d,
|
0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x64,
|
||||||
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x64,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x1e,
|
||||||
0x12, 0x1e, 0x0a, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x72, 0x65, 0x65, 0x49, 0x64, 0x18, 0x02,
|
0x0a, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x72, 0x65, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x72, 0x65, 0x65, 0x49, 0x64,
|
0x28, 0x05, 0x52, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x72, 0x65, 0x65, 0x49, 0x64, 0x12, 0x16,
|
||||||
0x12, 0x16, 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
|
0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
|
||||||
0x52, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x6f, 0x6f, 0x6d,
|
0x47, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x6f, 0x6f, 0x6d, 0x4d, 0x6f,
|
||||||
0x4d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x52, 0x6f, 0x6f, 0x6d,
|
0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x52, 0x6f, 0x6f, 0x6d, 0x4d, 0x6f,
|
||||||
0x4d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05,
|
0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03,
|
||||||
0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x0a, 0x0a,
|
0x28, 0x05, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x4e, 0x75,
|
||||||
0x4e, 0x75, 0x6d, 0x4f, 0x66, 0x47, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
|
0x6d, 0x4f, 0x66, 0x47, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a,
|
||||||
0x52, 0x0a, 0x4e, 0x75, 0x6d, 0x4f, 0x66, 0x47, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05,
|
0x4e, 0x75, 0x6d, 0x4f, 0x66, 0x47, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74,
|
||||||
0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x61,
|
0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65,
|
||||||
0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x78, 0x18, 0x08,
|
0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x78, 0x18, 0x08, 0x20, 0x03,
|
||||||
0x20, 0x03, 0x28, 0x03, 0x52, 0x08, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x78, 0x12, 0x1c,
|
0x28, 0x03, 0x52, 0x08, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x78, 0x12, 0x1c, 0x0a, 0x09,
|
||||||
0x0a, 0x09, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
|
0x53, 0x63, 0x65, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||||
0x05, 0x52, 0x09, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x06,
|
0x09, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x50, 0x6c,
|
||||||
0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66,
|
0x61, 0x79, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6f, 0x72,
|
||||||
0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x2e, 0x46, 0x6f, 0x72, 0x74,
|
0x74, 0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x2e, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e,
|
||||||
0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x44,
|
0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61,
|
||||||
0x61, 0x74, 0x61, 0x52, 0x06, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x50,
|
0x52, 0x06, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x50, 0x6c, 0x61, 0x79,
|
||||||
0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x50, 0x6c,
|
||||||
0x0a, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x43, 0x0a, 0x11, 0x43,
|
0x61, 0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x42, 0x0a, 0x10, 0x43, 0x53, 0x46, 0x6f,
|
||||||
0x53, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x4f, 0x70,
|
0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x4f, 0x70, 0x12, 0x16, 0x0a, 0x06,
|
||||||
|
0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x4f, 0x70,
|
||||||
|
0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02,
|
||||||
|
0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x60, 0x0a, 0x10,
|
||||||
|
0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x4f, 0x70,
|
||||||
0x12, 0x16, 0x0a, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
0x12, 0x16, 0x0a, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
||||||
0x52, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61,
|
0x52, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x4f, 0x70, 0x52, 0x65,
|
||||||
0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x4f, 0x70, 0x52,
|
||||||
0x22, 0x61, 0x0a, 0x11, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61,
|
0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||||
0x67, 0x6f, 0x6e, 0x4f, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18,
|
0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x63,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a,
|
0x0a, 0x17, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72,
|
||||||
0x09, 0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
0x52, 0x6f, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x61,
|
||||||
0x52, 0x09, 0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50,
|
0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
|
||||||
0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x50, 0x61, 0x72,
|
0x1a, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
0x61, 0x6d, 0x73, 0x22, 0x64, 0x0a, 0x18, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65,
|
0x05, 0x52, 0x08, 0x53, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50,
|
||||||
0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x52, 0x6f, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
|
0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x50, 0x61, 0x72,
|
||||||
0x14, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
|
0x61, 0x6d, 0x73, 0x22, 0x54, 0x0a, 0x14, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65,
|
||||||
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74,
|
0x54, 0x69, 0x67, 0x65, 0x72, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x4f,
|
||||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x53, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74,
|
0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,
|
||||||
0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
|
0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x47, 0x61, 0x6d,
|
||||||
0x05, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x55, 0x0a, 0x15, 0x53, 0x43, 0x46,
|
0x65, 0x45, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x47,
|
||||||
0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x42, 0x69, 0x6c, 0x6c,
|
0x61, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x2a, 0x97, 0x02, 0x0a, 0x0f, 0x46, 0x6f,
|
||||||
0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18,
|
0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x50, 0x49, 0x44, 0x12, 0x1c, 0x0a,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65,
|
0x18, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54,
|
||||||
0x12, 0x1e, 0x0a, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x18, 0x02,
|
0x49, 0x47, 0x45, 0x52, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x2f, 0x0a, 0x2a, 0x50,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x53, 0x74, 0x72,
|
|
||||||
0x2a, 0x97, 0x02, 0x0a, 0x0f, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65,
|
|
||||||
0x72, 0x50, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46,
|
|
||||||
0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x5a, 0x45, 0x52, 0x4f,
|
|
||||||
0x10, 0x00, 0x12, 0x2f, 0x0a, 0x2a, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52,
|
|
||||||
0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54,
|
|
||||||
0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x52, 0x4f, 0x4f, 0x4d, 0x49, 0x4e, 0x46, 0x4f,
|
|
||||||
0x10, 0xfe, 0x2b, 0x12, 0x29, 0x0a, 0x24, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f,
|
|
||||||
0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x43, 0x53, 0x46, 0x4f, 0x52,
|
|
||||||
0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x4f, 0x50, 0x10, 0xff, 0x2b, 0x12, 0x29,
|
|
||||||
0x0a, 0x24, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45,
|
|
||||||
0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54,
|
|
||||||
0x49, 0x47, 0x45, 0x52, 0x4f, 0x50, 0x10, 0x80, 0x2c, 0x12, 0x30, 0x0a, 0x2b, 0x50, 0x41, 0x43,
|
|
||||||
0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52,
|
|
||||||
0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x52,
|
|
||||||
0x4f, 0x4f, 0x4d, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 0x81, 0x2c, 0x12, 0x2d, 0x0a, 0x28, 0x50,
|
|
||||||
0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47,
|
0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47,
|
||||||
0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45,
|
0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45,
|
||||||
0x52, 0x42, 0x49, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x82, 0x2c, 0x42, 0x2c, 0x5a, 0x2a, 0x6d, 0x6f,
|
0x52, 0x52, 0x4f, 0x4f, 0x4d, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0xfe, 0x2b, 0x12, 0x29, 0x0a, 0x24,
|
||||||
0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61,
|
0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49,
|
||||||
0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x66, 0x6f, 0x72, 0x74,
|
0x47, 0x45, 0x52, 0x5f, 0x43, 0x53, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47,
|
||||||
0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x45, 0x52, 0x4f, 0x50, 0x10, 0xff, 0x2b, 0x12, 0x29, 0x0a, 0x24, 0x50, 0x41, 0x43, 0x4b, 0x45,
|
||||||
|
0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53,
|
||||||
|
0x43, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x4f, 0x50, 0x10,
|
||||||
|
0x80, 0x2c, 0x12, 0x30, 0x0a, 0x2b, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52,
|
||||||
|
0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54,
|
||||||
|
0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x52, 0x4f, 0x4f, 0x4d, 0x53, 0x54, 0x41, 0x54,
|
||||||
|
0x45, 0x10, 0x81, 0x2c, 0x12, 0x2d, 0x0a, 0x28, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46,
|
||||||
|
0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f,
|
||||||
|
0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x42, 0x49, 0x4c, 0x4c, 0x45, 0x44,
|
||||||
|
0x10, 0x82, 0x2c, 0x42, 0x2c, 0x5a, 0x2a, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d,
|
||||||
|
0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
|
||||||
|
0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x66, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65,
|
||||||
|
0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
@ -685,16 +685,16 @@ func file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP() []byte {
|
||||||
var file_protocol_fortunetiger_fortunetiger_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
var file_protocol_fortunetiger_fortunetiger_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
var file_protocol_fortunetiger_fortunetiger_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
var file_protocol_fortunetiger_fortunetiger_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||||
var file_protocol_fortunetiger_fortunetiger_proto_goTypes = []interface{}{
|
var file_protocol_fortunetiger_fortunetiger_proto_goTypes = []interface{}{
|
||||||
(FortuneTigerPID)(0), // 0: fortunetiger.FortuneTigerPID
|
(FortuneTigerPID)(0), // 0: fortunetiger.FortuneTigerPID
|
||||||
(*FortuneDragonPlayerData)(nil), // 1: fortunetiger.FortuneDragonPlayerData
|
(*FortuneTigerPlayerData)(nil), // 1: fortunetiger.FortuneTigerPlayerData
|
||||||
(*SCFortuneDragonRoomInfo)(nil), // 2: fortunetiger.SCFortuneDragonRoomInfo
|
(*SCFortuneTigerRoomInfo)(nil), // 2: fortunetiger.SCFortuneTigerRoomInfo
|
||||||
(*CSFortuneDragonOp)(nil), // 3: fortunetiger.CSFortuneDragonOp
|
(*CSFortuneTigerOp)(nil), // 3: fortunetiger.CSFortuneTigerOp
|
||||||
(*SCFortuneDragonOp)(nil), // 4: fortunetiger.SCFortuneDragonOp
|
(*SCFortuneTigerOp)(nil), // 4: fortunetiger.SCFortuneTigerOp
|
||||||
(*SCFortuneDragonRoomState)(nil), // 5: fortunetiger.SCFortuneDragonRoomState
|
(*SCFortuneTigerRoomState)(nil), // 5: fortunetiger.SCFortuneTigerRoomState
|
||||||
(*SCFortuneDragonBilled)(nil), // 6: fortunetiger.SCFortuneDragonBilled
|
(*SCFortuneTigerBilled)(nil), // 6: fortunetiger.SCFortuneTigerBilled
|
||||||
}
|
}
|
||||||
var file_protocol_fortunetiger_fortunetiger_proto_depIdxs = []int32{
|
var file_protocol_fortunetiger_fortunetiger_proto_depIdxs = []int32{
|
||||||
1, // 0: fortunetiger.SCFortuneDragonRoomInfo.Player:type_name -> fortunetiger.FortuneDragonPlayerData
|
1, // 0: fortunetiger.SCFortuneTigerRoomInfo.Player:type_name -> fortunetiger.FortuneTigerPlayerData
|
||||||
1, // [1:1] is the sub-list for method output_type
|
1, // [1:1] is the sub-list for method output_type
|
||||||
1, // [1:1] is the sub-list for method input_type
|
1, // [1:1] is the sub-list for method input_type
|
||||||
1, // [1:1] is the sub-list for extension type_name
|
1, // [1:1] is the sub-list for extension type_name
|
||||||
|
|
@ -709,7 +709,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
||||||
}
|
}
|
||||||
if !protoimpl.UnsafeEnabled {
|
if !protoimpl.UnsafeEnabled {
|
||||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*FortuneDragonPlayerData); i {
|
switch v := v.(*FortuneTigerPlayerData); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
|
@ -721,7 +721,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*SCFortuneDragonRoomInfo); i {
|
switch v := v.(*SCFortuneTigerRoomInfo); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
|
@ -733,7 +733,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*CSFortuneDragonOp); i {
|
switch v := v.(*CSFortuneTigerOp); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
|
@ -745,7 +745,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*SCFortuneDragonOp); i {
|
switch v := v.(*SCFortuneTigerOp); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
|
@ -757,7 +757,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*SCFortuneDragonRoomState); i {
|
switch v := v.(*SCFortuneTigerRoomState); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
|
@ -769,7 +769,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*SCFortuneDragonBilled); i {
|
switch v := v.(*SCFortuneTigerBilled); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ enum FortuneTigerPID {
|
||||||
PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED = 5634;
|
PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED = 5634;
|
||||||
}
|
}
|
||||||
|
|
||||||
message FortuneDragonPlayerData {
|
message FortuneTigerPlayerData {
|
||||||
string Name = 1; //名字
|
string Name = 1; //名字
|
||||||
int32 SnId = 2; //账号
|
int32 SnId = 2; //账号
|
||||||
int32 Head = 3; //头像
|
int32 Head = 3; //头像
|
||||||
|
|
@ -28,7 +28,7 @@ message FortuneDragonPlayerData {
|
||||||
}
|
}
|
||||||
//房间信息
|
//房间信息
|
||||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMINFO
|
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMINFO
|
||||||
message SCFortuneDragonRoomInfo {
|
message SCFortuneTigerRoomInfo {
|
||||||
int32 RoomId = 1; //房间id
|
int32 RoomId = 1; //房间id
|
||||||
int32 GameFreeId = 2;
|
int32 GameFreeId = 2;
|
||||||
int32 GameId = 3; //游戏id
|
int32 GameId = 3; //游戏id
|
||||||
|
|
@ -38,31 +38,31 @@ message SCFortuneDragonRoomInfo {
|
||||||
int32 State = 7; //房间当前状态
|
int32 State = 7; //房间当前状态
|
||||||
repeated int64 ParamsEx = 8; //其他参数
|
repeated int64 ParamsEx = 8; //其他参数
|
||||||
int32 SceneType = 9; //房间模式
|
int32 SceneType = 9; //房间模式
|
||||||
FortuneDragonPlayerData Player = 10; //房间内的玩家信息
|
FortuneTigerPlayerData Player = 10; //房间内的玩家信息
|
||||||
string PlayerInfo = 11;
|
string PlayerInfo = 11;
|
||||||
}
|
}
|
||||||
//玩家操作
|
//玩家操作
|
||||||
//PACKET_FORTUNETIGER_CSFORTUNETIGEROP
|
//PACKET_FORTUNETIGER_CSFORTUNETIGEROP
|
||||||
message CSFortuneDragonOp {
|
message CSFortuneTigerOp {
|
||||||
int32 OpCode = 1; //操作码 0.spin
|
int32 OpCode = 1; //操作码 0.spin
|
||||||
repeated int64 Params = 2; //操作参数 下注索引编号
|
repeated int64 Params = 2; //操作参数 下注索引编号
|
||||||
}
|
}
|
||||||
//玩家操作返回
|
//玩家操作返回
|
||||||
//PACKET_FORTUNETIGER_SCFORTUNETIGEROP
|
//PACKET_FORTUNETIGER_SCFORTUNETIGEROP
|
||||||
message SCFortuneDragonOp {
|
message SCFortuneTigerOp {
|
||||||
int32 OpCode = 1; //操作码
|
int32 OpCode = 1; //操作码
|
||||||
int32 OpRetCode = 2; //操作结果 1.金币不足 2.低于该值不能押注
|
int32 OpRetCode = 2; //操作结果 1.金币不足 2.低于该值不能押注
|
||||||
repeated int64 Params = 3; //操作参数
|
repeated int64 Params = 3; //操作参数
|
||||||
}
|
}
|
||||||
//房间状态
|
//房间状态
|
||||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMSTATE
|
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMSTATE
|
||||||
message SCFortuneDragonRoomState {
|
message SCFortuneTigerRoomState {
|
||||||
int32 State = 1; //房间当前状态
|
int32 State = 1; //房间当前状态
|
||||||
int32 SubState = 2; //房间当前子状态
|
int32 SubState = 2; //房间当前子状态
|
||||||
repeated int32 Params = 3; //状态参数
|
repeated int32 Params = 3; //状态参数
|
||||||
}
|
}
|
||||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED
|
//PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED
|
||||||
message SCFortuneDragonBilled{
|
message SCFortuneTigerBilled{
|
||||||
int32 OpRetCode = 1;//0.spin成功 1.spin失败
|
int32 OpRetCode = 1;//0.spin成功 1.spin失败
|
||||||
string GameEndStr = 2;
|
string GameEndStr = 2;
|
||||||
}
|
}
|
||||||
|
|
@ -3681,10 +3681,10 @@ type ShopWeight struct {
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
ShopType int32 `protobuf:"varint,1,opt,name=ShopType,proto3" json:"ShopType,omitempty"`
|
ShopType int32 `protobuf:"varint,1,opt,name=ShopType,proto3" json:"ShopType,omitempty"` // 商品类型 对应 ExchangeShop.ShopType
|
||||||
Weight int32 `protobuf:"varint,2,opt,name=Weight,proto3" json:"Weight,omitempty"`
|
Weight int32 `protobuf:"varint,2,opt,name=Weight,proto3" json:"Weight,omitempty"` // 排序,从大到小
|
||||||
Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
|
Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` // 分类名称, 多语言 {\"zh\":\"电子\",\"en\":\"electronic engineering\",\"vi\":\"Điện tử\",\"kh\":\"អេឡិចត្រូន\"}
|
||||||
IsShow int32 `protobuf:"varint,4,opt,name=IsShow,proto3" json:"IsShow,omitempty"`
|
IsShow int32 `protobuf:"varint,4,opt,name=IsShow,proto3" json:"IsShow,omitempty"` // 是否显示 1显示
|
||||||
Location []int32 `protobuf:"varint,5,rep,packed,name=Location,proto3" json:"Location,omitempty"` // 显示位置
|
Location []int32 `protobuf:"varint,5,rep,packed,name=Location,proto3" json:"Location,omitempty"` // 显示位置
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -419,10 +419,10 @@ message ExchangeShopList{
|
||||||
}
|
}
|
||||||
|
|
||||||
message ShopWeight{
|
message ShopWeight{
|
||||||
int32 ShopType = 1;
|
int32 ShopType = 1; // 商品类型 对应 ExchangeShop.ShopType
|
||||||
int32 Weight = 2;
|
int32 Weight = 2; // 排序,从大到小
|
||||||
string Name = 3;
|
string Name = 3; // 分类名称, 多语言 {\"zh\":\"电子\",\"en\":\"electronic engineering\",\"vi\":\"Điện tử\",\"kh\":\"អេឡិចត្រូន\"}
|
||||||
int32 IsShow = 4;
|
int32 IsShow = 4; // 是否显示 1显示
|
||||||
repeated int32 Location = 5; // 显示位置
|
repeated int32 Location = 5; // 显示位置
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,136 +0,0 @@
|
||||||
package balancequeue
|
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
"strings"
|
|
||||||
)
|
|
||||||
|
|
||||||
// 平衡队列
|
|
||||||
|
|
||||||
type Element interface {
|
|
||||||
BalanceQueueHandler()
|
|
||||||
}
|
|
||||||
|
|
||||||
type elementWrapper struct {
|
|
||||||
F func()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (e *elementWrapper) BalanceQueueHandler() {
|
|
||||||
e.F()
|
|
||||||
}
|
|
||||||
|
|
||||||
func ElementWrapper(f func()) Element {
|
|
||||||
return &elementWrapper{F: f}
|
|
||||||
}
|
|
||||||
|
|
||||||
type group struct {
|
|
||||||
Array []Element
|
|
||||||
queuePos int
|
|
||||||
}
|
|
||||||
|
|
||||||
type groupArray struct {
|
|
||||||
queue []*group
|
|
||||||
}
|
|
||||||
|
|
||||||
type BalanceQueue struct {
|
|
||||||
index int // 循环索引
|
|
||||||
groups []*group // 固定的分组,长度不变,每次Update触发一个分组
|
|
||||||
tables []*groupArray
|
|
||||||
pool map[Element]*group
|
|
||||||
}
|
|
||||||
|
|
||||||
// New 创建一个平衡队列
|
|
||||||
// groupNumber 分组数量
|
|
||||||
func New(groupNumber int) *BalanceQueue {
|
|
||||||
ret := &BalanceQueue{
|
|
||||||
groups: make([]*group, groupNumber),
|
|
||||||
tables: make([]*groupArray, 10), // 本身会自动扩容,初始值不是很重要
|
|
||||||
pool: make(map[Element]*group),
|
|
||||||
}
|
|
||||||
|
|
||||||
for i := 0; i < len(ret.tables); i++ {
|
|
||||||
ret.tables[i] = &groupArray{}
|
|
||||||
}
|
|
||||||
// 初始化平衡数组,所有平衡队列容量为0
|
|
||||||
for i := 0; i < len(ret.groups); i++ {
|
|
||||||
ret.groups[i] = &group{queuePos: i}
|
|
||||||
ret.tables[0].queue = append(ret.tables[0].queue, ret.groups[i])
|
|
||||||
}
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
|
|
||||||
func (q *BalanceQueue) String() string {
|
|
||||||
buf := strings.Builder{}
|
|
||||||
buf.WriteString("BalanceQueue:\n")
|
|
||||||
buf.WriteString(fmt.Sprintf("分组数量: %v\n", len(q.groups)))
|
|
||||||
for k, v := range q.tables {
|
|
||||||
buf.WriteString(fmt.Sprintf("元素数量%v: 组数量%v ==>", k, len(v.queue)))
|
|
||||||
for _, vv := range v.queue {
|
|
||||||
buf.WriteString(fmt.Sprintf("%v ", len(vv.Array)))
|
|
||||||
}
|
|
||||||
buf.WriteString("\n")
|
|
||||||
}
|
|
||||||
return buf.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (q *BalanceQueue) Update() {
|
|
||||||
if q.index == len(q.groups) {
|
|
||||||
q.index = 0
|
|
||||||
}
|
|
||||||
for _, v := range q.groups[q.index].Array {
|
|
||||||
v.BalanceQueueHandler()
|
|
||||||
}
|
|
||||||
q.index++
|
|
||||||
}
|
|
||||||
|
|
||||||
func (q *BalanceQueue) Push(e Element) {
|
|
||||||
if e == nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if _, ok := q.pool[e]; ok {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
for k, v := range q.tables {
|
|
||||||
size := len(v.queue)
|
|
||||||
if size == 0 {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
arr := v.queue[size-1]
|
|
||||||
if k+1 >= len(q.tables) {
|
|
||||||
q.tables = append(q.tables, &groupArray{})
|
|
||||||
}
|
|
||||||
q.tables[k+1].queue = append(q.tables[k+1].queue, arr)
|
|
||||||
q.tables[k].queue = v.queue[:size-1]
|
|
||||||
arr.queuePos = len(q.tables[k+1].queue) - 1
|
|
||||||
arr.Array = append(arr.Array, e)
|
|
||||||
q.pool[e] = arr
|
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func (q *BalanceQueue) Pop(e Element) {
|
|
||||||
group, ok := q.pool[e]
|
|
||||||
if !ok {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
delete(q.pool, e)
|
|
||||||
count := len(group.Array)
|
|
||||||
for i := 0; i < count; i++ {
|
|
||||||
if group.Array[i] == e {
|
|
||||||
group.Array[i] = group.Array[count-1]
|
|
||||||
group.Array = group.Array[:count-1]
|
|
||||||
bqPos := group.queuePos
|
|
||||||
queCount := len(q.tables[count].queue)
|
|
||||||
q.tables[count].queue[bqPos] = q.tables[count].queue[queCount-1]
|
|
||||||
q.tables[count].queue[bqPos].queuePos = bqPos
|
|
||||||
q.tables[count].queue = q.tables[count].queue[:queCount-1]
|
|
||||||
q.tables[count-1].queue = append(q.tables[count-1].queue, group)
|
|
||||||
group.queuePos = len(q.tables[count-1].queue) - 1
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
package balancequeue
|
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
"math/rand"
|
|
||||||
"testing"
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
type A struct {
|
|
||||||
Name string
|
|
||||||
}
|
|
||||||
|
|
||||||
func (a *A) BalanceQueueHandler() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestOne(t *testing.T) {
|
|
||||||
q := New(5)
|
|
||||||
|
|
||||||
var es []Element
|
|
||||||
go func() {
|
|
||||||
for {
|
|
||||||
q.Update()
|
|
||||||
fmt.Println(q)
|
|
||||||
time.Sleep(time.Second)
|
|
||||||
e := &A{Name: fmt.Sprint(time.Now().Unix())}
|
|
||||||
es = append(es, e)
|
|
||||||
q.Push(e)
|
|
||||||
if rand.Intn(10) > 5 && len(es) >= 2 {
|
|
||||||
for _, v := range es[:2] {
|
|
||||||
q.Pop(v)
|
|
||||||
}
|
|
||||||
es = es[2:]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
|
|
||||||
time.Sleep(time.Minute)
|
|
||||||
}
|
|
||||||
|
|
@ -131,7 +131,7 @@ func API_CreateOrder(appId, orderId string, configid, SnId, shopId int32, platfo
|
||||||
ExchangeOrderId: exchangeOrderId,
|
ExchangeOrderId: exchangeOrderId,
|
||||||
Channel: channel,
|
Channel: channel,
|
||||||
ChannelID: channelId,
|
ChannelID: channelId,
|
||||||
BuyType: buyType,
|
BuyType: buyType,
|
||||||
}
|
}
|
||||||
ret := &webapi.ASCreateOrder{}
|
ret := &webapi.ASCreateOrder{}
|
||||||
buff, err := postRequest(appId, "/create_order", nil, body, "http", DEFAULT_TIMEOUT)
|
buff, err := postRequest(appId, "/create_order", nil, body, "http", DEFAULT_TIMEOUT)
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import (
|
||||||
"mongo.games.com/goserver/core/logger"
|
"mongo.games.com/goserver/core/logger"
|
||||||
"mongo.games.com/goserver/core/netlib"
|
"mongo.games.com/goserver/core/netlib"
|
||||||
"mongo.games.com/goserver/core/task"
|
"mongo.games.com/goserver/core/task"
|
||||||
|
"time"
|
||||||
|
|
||||||
"mongo.games.com/game/common"
|
"mongo.games.com/game/common"
|
||||||
"mongo.games.com/game/model"
|
"mongo.games.com/game/model"
|
||||||
|
|
@ -29,6 +30,7 @@ func CSLotteryInfoHandler(s *netlib.Session, packetid int, data interface{}, sid
|
||||||
|
|
||||||
pack := &welfare.SCLotteryInfo{}
|
pack := &welfare.SCLotteryInfo{}
|
||||||
|
|
||||||
|
now := time.Now()
|
||||||
var list []*welfare.LotteryInfo
|
var list []*welfare.LotteryInfo
|
||||||
cfg := PlatformMgrSingleton.GetConfig(p.Platform).LotteryConfig
|
cfg := PlatformMgrSingleton.GetConfig(p.Platform).LotteryConfig
|
||||||
if cfg != nil {
|
if cfg != nil {
|
||||||
|
|
@ -42,8 +44,11 @@ func CSLotteryInfoHandler(s *netlib.Session, packetid int, data interface{}, sid
|
||||||
for _, v := range list {
|
for _, v := range list {
|
||||||
playerLottery := info.Lottery[v.GetId()]
|
playerLottery := info.Lottery[v.GetId()]
|
||||||
if playerLottery != nil && playerLottery.StartTs == v.GetStartTs() {
|
if playerLottery != nil && playerLottery.StartTs == v.GetStartTs() {
|
||||||
v.CostRoomCard = playerLottery.CostCard
|
// 活动开始和发奖期间显示
|
||||||
v.Codes = playerLottery.Code
|
if now.Unix() >= v.GetStartTs() && now.Unix() < v.GetWinTs() {
|
||||||
|
v.CostRoomCard = playerLottery.CostCard
|
||||||
|
v.Codes = playerLottery.Code
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3173,20 +3173,14 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if msg.GuideId == common.GuideIdNewPlayer {
|
if msg.GuideId == common.GuideIdNewPlayer {
|
||||||
if p.GuideStep >= 0 && p.GuideStep < model.GameParamData.GuideStepMaxNum {
|
p.GuideStep = -1 // 跳过引导为 -1
|
||||||
p.GuideStep = -1 // 跳过引导为 -1
|
|
||||||
pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess
|
|
||||||
send()
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess
|
|
||||||
if len(msg.Param) > 0 {
|
|
||||||
p.GuideData[msg.GuideId] = int32(msg.Param[0])
|
|
||||||
}
|
|
||||||
send()
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess
|
||||||
|
if len(msg.Param) > 0 {
|
||||||
|
p.GuideData[msg.GuideId] = int32(msg.Param[0])
|
||||||
|
}
|
||||||
|
send()
|
||||||
|
return nil
|
||||||
case common.AttributeGuideTest:
|
case common.AttributeGuideTest:
|
||||||
if !common.Config.IsDevMode {
|
if !common.Config.IsDevMode {
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
|
|
@ -300,6 +300,8 @@ func (c *CustomRoomMgr) UpdateCreate(plt string, configId int32, mustCreate bool
|
||||||
RoomConfigId: roomConfig.GetId(),
|
RoomConfigId: roomConfig.GetId(),
|
||||||
CostType: 1,
|
CostType: 1,
|
||||||
Voice: cfg.GetVoice(),
|
Voice: cfg.GetVoice(),
|
||||||
|
Price: roomConfig.GetPrice(),
|
||||||
|
ImageURL: roomConfig.GetImageURI(),
|
||||||
},
|
},
|
||||||
RoomConfigSystem: cfg,
|
RoomConfigSystem: cfg,
|
||||||
IsRecruit: true,
|
IsRecruit: true,
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,8 @@ package main
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"mongo.games.com/goserver/core/container/balancequeue"
|
||||||
"mongo.games.com/goserver/core/module"
|
"mongo.games.com/goserver/core/module"
|
||||||
|
|
||||||
"mongo.games.com/game/util/balancequeue"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var DbSaveInst = &DbSaver{
|
var DbSaveInst = &DbSaver{
|
||||||
|
|
|
||||||
|
|
@ -1367,12 +1367,7 @@ func (this *Player) Time2Save() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
isForce := false
|
PlayerMgrSington.SavePlayer(this, true, false)
|
||||||
if common.Config.IsDevMode {
|
|
||||||
isForce = true // 开发模式下强制保存
|
|
||||||
}
|
|
||||||
|
|
||||||
PlayerMgrSington.SavePlayer(this, true, isForce)
|
|
||||||
|
|
||||||
if this.isDelete || (!this.IsOnLine() && !this.dirty && time.Now().Sub(this.lastSaved) > time.Minute*5 && this.scene == nil) {
|
if this.isDelete || (!this.IsOnLine() && !this.dirty && time.Now().Sub(this.lastSaved) > time.Minute*5 && this.scene == nil) {
|
||||||
PlayerMgrSington.DelPlayer(this.SnId)
|
PlayerMgrSington.DelPlayer(this.SnId)
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
"mongo.games.com/goserver/core"
|
"mongo.games.com/goserver/core"
|
||||||
"mongo.games.com/goserver/core/basic"
|
"mongo.games.com/goserver/core/basic"
|
||||||
|
"mongo.games.com/goserver/core/container/balancequeue"
|
||||||
"mongo.games.com/goserver/core/module"
|
"mongo.games.com/goserver/core/module"
|
||||||
"mongo.games.com/goserver/core/task"
|
"mongo.games.com/goserver/core/task"
|
||||||
|
|
||||||
"mongo.games.com/game/model"
|
"mongo.games.com/game/model"
|
||||||
"mongo.games.com/game/util/balancequeue"
|
|
||||||
"mongo.games.com/game/worldsrv/internal"
|
"mongo.games.com/game/worldsrv/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,6 @@ func (this *PlayerMgr) SavePlayer(p *Player, isCopy, force bool) {
|
||||||
|
|
||||||
t1 := time.Now()
|
t1 := time.Now()
|
||||||
|
|
||||||
p.dirty = true
|
|
||||||
// 跨天任务依赖LastLogoutTime的准确性,跨天任务是定时器common.ClockMgrSington触发的,所以这里要用定时器的触发时间
|
// 跨天任务依赖LastLogoutTime的准确性,跨天任务是定时器common.ClockMgrSington触发的,所以这里要用定时器的触发时间
|
||||||
p.LastLogoutTime = common.ClockMgrSingleton.LastTickTime
|
p.LastLogoutTime = common.ClockMgrSingleton.LastTickTime
|
||||||
pd.LastLogoutTime = common.ClockMgrSingleton.LastTickTime
|
pd.LastLogoutTime = common.ClockMgrSingleton.LastTickTime
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue