|
|
@@ -4,6 +4,7 @@ import (
|
|
|
"fmt"
|
|
|
"fohow.com/libs/lib_redis"
|
|
|
"github.com/astaxie/beego"
|
|
|
+ "github.com/go-redis/redis"
|
|
|
|
|
|
// "crypto/md5"
|
|
|
// "encoding/hex"
|
|
|
@@ -163,7 +164,8 @@ func (self *CentController) SignEveryday() {
|
|
|
preKey := cent_model.PRE_KEY_DAILY
|
|
|
key := fmt.Sprintf("%s_%d_%d%02d%02d", preKey, wxUser.Id, now.Year(), now.Month(), now.Day())
|
|
|
errToday := lib_redis.GetFromJSON(result, key) //判断今天签了没签
|
|
|
- if errToday != nil {
|
|
|
+
|
|
|
+ if errToday != redis.Nil && errToday != nil {
|
|
|
beego.BeeLogger.Warn("SignEveryday() in redisClient.Get(key).Result() err, err:%s", errToday)
|
|
|
self.ReturnError(403, apps.RedisGetError, "", nil)
|
|
|
}
|