|
@@ -8,6 +8,7 @@ import (
|
|
|
"github.com/mhaya/game/game_cluster/internal/guid"
|
|
|
"github.com/mhaya/game/game_cluster/internal/mdb"
|
|
|
"github.com/mhaya/game/game_cluster/internal/param"
|
|
|
+ clog "github.com/mhaya/logger"
|
|
|
"go.mongodb.org/mongo-driver/bson"
|
|
|
)
|
|
|
|
|
@@ -37,6 +38,7 @@ func (ac *Account) AccountRegisterOrLogin(req *param.LoginReq) (*Account, int32)
|
|
|
}
|
|
|
_, err := mdb.MDB.Collection(constant.CNameAccount).InsertOne(context.Background(), devAccountTable)
|
|
|
if err != nil {
|
|
|
+ clog.Error("Failed to AccountRegisterOrLogin request: %v err = %v", devAccountTable, err.Error())
|
|
|
return nil, code.LoginError
|
|
|
}
|
|
|
|