|
@@ -32,7 +32,7 @@ type Short struct {
|
|
|
*xweb.Action
|
|
|
//article xweb.Mapper `xweb:"/jyapp/article/(\\w+)/(.*).html"` //([pm])
|
|
|
article xweb.Mapper `xweb:"/jyapp/(article|nologin)/(\\w+)/(.*).html"` //([pm])
|
|
|
- replication xweb.Mapper `xweb:"/jyapp/shorturl/replication"` //用户复制操作记录入库
|
|
|
+ replication xweb.Mapper `xweb:"/jyapp/shorturl/replication"` //用户复制操作记录入库
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
@@ -65,7 +65,7 @@ var TypeCodeMap = map[string]string{
|
|
|
"违规": "违规信息",
|
|
|
}
|
|
|
|
|
|
-func (s *Short) Article( stype, id string) error {
|
|
|
+func (s *Short) Article(contentType, stype, id string) error {
|
|
|
//先判断是否有session
|
|
|
userId, _ := s.GetSession("userId").(string)
|
|
|
log.Printf("三级页userid:%s", userId)
|