修复db服,login业务逻辑bug,修复反序列化bug
This commit is contained in:
parent
11cc557518
commit
62abce7bca
@ -1,9 +1,8 @@
|
|||||||
package model
|
package serialization
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"game/common/model/user"
|
"game/common/model/user"
|
||||||
"game/common/serialization"
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -13,7 +12,7 @@ func Test_zz(t *testing.T) {
|
|||||||
_ = json.Unmarshal([]byte(zz), us)
|
_ = json.Unmarshal([]byte(zz), us)
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
us, err = serialization.MapStringToStruct[user.UserAccount](map[string]string{
|
us, err = MapStringToStruct[user.UserAccount](map[string]string{
|
||||||
"id": "17",
|
"id": "17",
|
||||||
})
|
})
|
||||||
t.Log(err)
|
t.Log(err)
|
Loading…
x
Reference in New Issue
Block a user