ziwen 2 years ago
parent
commit
82252c13ba
1 changed files with 3 additions and 0 deletions
  1. 3 0
      services/page_history_record.go

+ 3 - 0
services/page_history_record.go

@@ -23,6 +23,9 @@ func AddCygxPageHistoryRecord(user *models.WxUserItem, Ctx *context.Context)  {
 	if index != -1 {
 		item.Parameter = item.Router[index+1:]
 	}
+	if Ctx.Input.Method() == "POST" {
+		item.Parameter = string(Ctx.Input.RequestBody)
+	}
 	_, err := models.AddCygxPageHistoryRecord(item)
 	if err != nil {
 		fmt.Println(err)