多个提示页面增加请求ID、增加变量支持

This commit is contained in:
刘祥超
2021-12-02 14:46:40 +08:00
parent 424f3ae29d
commit 7ae9180bf9
5 changed files with 11 additions and 10 deletions
+6
View File
@@ -88,6 +88,12 @@ func (this *HTTPRequest) doPage(status int) (shouldStop bool) {
return true
} else if page.BodyType == shared.BodyTypeHTML {
// 这里需要实现设置Status,因为在Format()中可以获取${status}等变量
if page.NewStatus > 0 {
this.writer.statusCode = page.NewStatus
} else {
this.writer.statusCode = status
}
var content = this.Format(page.Body)
// 修改状态码