This commit is contained in:
@@ -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].DeviceNo = tool.DeviceIdToHash(d.Id)
|
||||
userRespList[i].DeviceID = 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].DeviceNo = tool.DeviceIdToHash(d.Id)
|
||||
resp.UserDevices[i].DeviceID = tool.DeviceIdToHash(d.Id)
|
||||
}
|
||||
}
|
||||
// refer_code 为空时自动生成
|
||||
|
||||
Reference in New Issue
Block a user