Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbiao committed Oct 11, 2019
1 parent 419578a commit 9bb3cf4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Change Log 更新说明
------------------------------
## 2019-10-10 v0.1.1
## 2019-10-11 v0.1.1
1. 接口调用改为走缓存,加入缓存封装支撑集群使用redis
2. 加入版本回退功能
3. 接口性能:1000并发10秒测试,每秒处理500/sec;由于本地服务器,可能性能有所偏差;

## 2019-10-08 v0.1.0
1. 完善发布对比功能,优化发布字段;
Expand Down
8 changes: 6 additions & 2 deletions module/api/configApiAction.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ type ConfigApiAction struct {
// path: /version
func (action *ConfigApiAction) Version(r *ghttp.Request) {
form := base.NewForm(r.GetMap())
model := config.TbConfigPublic{}.GetCacheModel(&form)

model := config.TbConfigPublic{}
model = model.GetCacheModel(&form)
if model.Id <= 0 {
base.Fail(r, " get version fail")
}
Expand All @@ -40,7 +42,9 @@ func (action *ConfigApiAction) Version(r *ghttp.Request) {
// path: /data
func (action *ConfigApiAction) Data(r *ghttp.Request) {
form := base.NewForm(r.GetMap())
model := config.TbConfigPublic{}.GetCacheModel(&form)

model := config.TbConfigPublic{}
model = model.GetCacheModel(&form)
if model.Id <= 0 {
base.Fail(r, " get version fail")
}
Expand Down

0 comments on commit 9bb3cf4

Please sign in to comment.