deviceno
Build docker and publish / build (20.15.1) (push) Successful in 7m26s

This commit is contained in:
2026-03-17 09:12:56 -07:00
parent 4b528184ea
commit 282e1e4087
7 changed files with 8 additions and 8 deletions
@@ -38,7 +38,7 @@ func (l *GetDeviceListLogic) GetDeviceList() (resp *types.GetDeviceListResponse,
tool.DeepCopy(&userRespList, list)
for i, d := range list {
if i < len(userRespList) {
userRespList[i].DeviceID = tool.DeviceIdToHash(d.Id)
userRespList[i].DeviceNo = tool.DeviceIdToHash(d.Id)
}
}
resp = &types.GetDeviceListResponse{
@@ -47,7 +47,7 @@ func (l *QueryUserInfoLogic) QueryUserInfo() (resp *types.User, err error) {
tool.DeepCopy(resp, u)
for i, d := range u.UserDevices {
if i < len(resp.UserDevices) {
resp.UserDevices[i].DeviceID = tool.DeviceIdToHash(d.Id)
resp.UserDevices[i].DeviceNo = tool.DeviceIdToHash(d.Id)
}
}
// refer_code 为空时自动生成