|
@@ -57,7 +57,7 @@ func (s *Short) Article(stype, id string) error {
|
|
|
if strings.Contains(source, "wx_infocontentshare") {
|
|
|
decodeArr := util.DecodeArticleId2ByCheck(id)
|
|
|
if len(decodeArr) > 1 {
|
|
|
- from_userid = se.EncodeStringByCheck(GetUserId(decodeArr[1])) //加密用户userid
|
|
|
+ from_userid = se.Encode2Hex(GetUserId(decodeArr[1])) //加密用户userid
|
|
|
}
|
|
|
} else if strings.Contains(source, "app_infocontentshare") {
|
|
|
if from := s.GetString("from"); from != "" {
|
|
@@ -122,7 +122,7 @@ func (s *Short) Article(stype, id string) error {
|
|
|
}
|
|
|
insert_1 := public.Mysql.InsertByTx(tx, "dis_word", insert) //口号使用表
|
|
|
log.Println("插入口号使用表", insert_1)
|
|
|
- from_userid = se.EncodeStringByCheck(belongUserId)
|
|
|
+ from_userid = se.Encode2Hex(belongUserId)
|
|
|
}
|
|
|
return true
|
|
|
}) {
|
|
@@ -257,9 +257,9 @@ func (s *Short) Article(stype, id string) error {
|
|
|
key := fmt.Sprintf("integral_article_%s_%s_%s", article_id, from_userid, userId)
|
|
|
if redis.Incr("other", key) == 1 {
|
|
|
redis.SetExpire("other", key, 60*60*24)
|
|
|
- err := jy.Publish(public.Mgo_Log, config.Sysconfig["nsq"].(string), jy.Jyweb_article_open, se.DecodeStringByCheck(from_userid), jy.Jywx_node1)
|
|
|
+ err := jy.Publish(public.Mgo_Log, config.Sysconfig["nsq"].(string), jy.Jyweb_article_open, se.Decode4Hex(from_userid), jy.Jywx_node1)
|
|
|
if err != nil {
|
|
|
- log.Println("nsq队列写入失败-->", jy.Jyweb_article_open, se.DecodeStringByCheck(from_userid))
|
|
|
+ log.Println("nsq队列写入失败-->", jy.Jyweb_article_open, se.Decode4Hex(from_userid))
|
|
|
} /* else {
|
|
|
//integral_article_ +userId+ 三级页id
|
|
|
redis.Put("other", fmt.Sprintf("integral_article_%s_%s_%s", article_id, from_userid, userId), 1, 60*60*24)
|