wangshan 1 рік тому
батько
коміт
216de8c79e
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/jfw/front/shorturl.go

+ 1 - 1
src/jfw/front/shorturl.go

@@ -233,7 +233,7 @@ func (s *Short) LoginCommon(sess map[string]interface{}, stype, id string, bm bo
 					_id := encrypt.CommonDecodeArticle(stype, id)[0]
 					_, _, _, obj := pcVRT(_id, "", stype, true, true)
 					if obj != nil && len(obj) > 0 {
-						retMap["_id"] = id
+						retMap["_id"] = url.QueryEscape(id)
 						retMap["title"], _ = obj["title"].(string)
 						retMap["area"], _ = obj["area"].(string)
 						retMap["subtype"], _ = obj["subtype"].(string)