ankye sheng

Results 5 comments of ankye sheng

use v2.4 for test, the same problem like this image 18187.png.png

hash规则是按 uid % 8 user := &model.User{ UID: utils.GenUID(), AppID: "aaaa", Account: "", Email: "", OpenID: fmt.Sprintf("%d", utils.GenUID()), UUID: fmt.Sprintf("%d", utils.GenUID()), Name: "name", Channel: "test", Avatar: "avatar", Password: fmt.Sprintf("%d", utils.GenUID()),...

可以了,但是这样上线后就不能动态修改长度了,只能换另外的hash算法了

最近在用kingshard,hash规则不能定义,用id就有问题了