正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -286,15 +286,15 @@ func CheckToken(request *protocol.CheckTokenRequest) (rsp *protocol.CheckTokenRe | @@ -286,15 +286,15 @@ func CheckToken(request *protocol.CheckTokenRequest) (rsp *protocol.CheckTokenRe | ||
286 | func CheckUuid(request *protocol.CheckUuidRequest) (rsp *protocol.CheckUuidResponse, err error) { | 286 | func CheckUuid(request *protocol.CheckUuidRequest) (rsp *protocol.CheckUuidResponse, err error) { |
287 | var () | 287 | var () |
288 | rsp = &protocol.CheckUuidResponse{} | 288 | rsp = &protocol.CheckUuidResponse{} |
289 | - if len(request.Uuid) == 0 || (request.Uuid == "123456" && beego.BConfig.RunMode != "prod") { | ||
290 | - return | ||
291 | - } | 289 | + //if len(request.Uuid) == 0 || (request.Uuid == "123456" && beego.BConfig.RunMode != "prod") { |
290 | + // return | ||
291 | + //} | ||
292 | if redis.Hexists(protocol.RedisKey(protocol.HashUuid), request.Uuid) { | 292 | if redis.Hexists(protocol.RedisKey(protocol.HashUuid), request.Uuid) { |
293 | err = protocol.NewErrWithMessage(4142) | 293 | err = protocol.NewErrWithMessage(4142) |
294 | log.Error("[CheckUuid] 存在:", request.Uuid, err) | 294 | log.Error("[CheckUuid] 存在:", request.Uuid, err) |
295 | return | 295 | return |
296 | } | 296 | } |
297 | - if e := redis.Hset(protocol.RedisKey(protocol.HashUuid), request.Uuid, request.Uuid, 3600*2); e == nil { | 297 | + if e := redis.Hset(protocol.RedisKey(protocol.HashUuid), request.Uuid, request.Uuid, 3600*2); e != nil { |
298 | err = protocol.NewErrWithMessage(4142) | 298 | err = protocol.NewErrWithMessage(4142) |
299 | log.Error("[CheckUuid] 设置:", request.Uuid, e) | 299 | log.Error("[CheckUuid] 设置:", request.Uuid, e) |
300 | return | 300 | return |
-
请 注册 或 登录 后发表评论