if value,ok := tmp1.(string);!ok{
ERROR.Println("Failed read bytes from redis")
erro = errors.New("Failed read bytes from redis")
return "", "", erro
}else{
sid = value
}
cannot use tmp1 (type interface {}) as type string in assignment: need type assertion
知道那里错了,正确的已经修改了。
有疑问加站长微信联系(非本文作者)