forked from male110/GoMvc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion.txt
40 lines (35 loc) · 2.01 KB
/
version.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
当前版本:1.08
最后更新日期:2014-07-25
更新日志
2016-05-07
1,对原来的this.QueryString,this.Form获取表单参数的方做了一些改进
this.QueryString.Int("id"),this.this.QueryString.String("UserName")来获取数据,省去了类型转换,使代码更简练。
2,增加了一些属性,和函数。
this.IsAjax 判断当前请求是否Ajax
this.IsPost 当前请求类型是否Post
this.IsInWeiXin() 是否在微信浏览器下
this.IsCrawler() 当前请求是否来自搜索引擎的抓取
3,RouteTable.AddRote(&RouteItem{
Name: "article_details",
Url: "details/{id}",
Defaults: map[string]interface{}{"controller": "home", "action": "Details", "id": 0},
Constraints: map[string]string{"id": `^(\d+)$`}})
原来对id参数的获取是通过this.RouteData["id"]获取,现在可以直接通过this.QueryString.Int("id")来获取
2014-07-25 修复RenderAction模板函数Cookies传递的BUG
2014-06-13 修改日志记录System/Log/Logger.go,AddError自动记录堆栈信息,增加AddErrMsg函数,自动记录堆栈信息,Add不记堆栈信息。
2014-06-04 Controller增加ClearSession函数,RenderView增加错误日志
2014-05-23 修改Session相关处理部分,在配置文件中,<SessionType>0</SessionType>配成零或空,表示程序不使用Session,
比如做WEBAPI时,可以配置成0,程序不使用Session可以降低资源占用,提高性能。
2014-05-22 修改Http请求处理过程,支持这样的Action
func (this *Controller) IsExist() string {
}
action可以直接返回一个string类型,如果是其它的非ViewResult类型,会转换成string并输出。
2014-05-20 修改Controller的IsPost属性,修改Binder的错误。
2014-05-12 Controller加入Redirect函数,修改RederAction。修改RederAction。
2014-05-08 加入模板函数RenderView,更新文档;将System\TemplateFunc包跟System\ViewEngine合并成一个包。<br>
2014-05-07 修改RanderAction模板函数的一处错误。<br>
2014-05-05 修改RanderAction模板函数的Bug,所有错误日志记录堆栈信息,以便调试,处理错误。<br>
增加编译的批处理文件Windows下运行build.bat,Linux下运行build.sh<br/>
2014-01-24 程序意外退出时,记录错误日志。<br/>
2013-10-14 增加域的功能。<br/>
2013-10-12 修复路由和FieSession的Bug。