Skip to content

Commit

Permalink
change some names
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas7788 committed Oct 20, 2017
1 parent df488ed commit 84eefd7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
Binary file added ad_server
Binary file not shown.
6 changes: 6 additions & 0 deletions log/click/click.log.201710201700
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
time="2017-10-20T17:20:44+08:00" level=info msg="test click" adNum=1 appId=1 clickUrl=baidu.com creativeId=456 deviceId=0x22q53 iP=127.0.0.1 oS=1 osVersion=1.0.0 searchId=123 slotId=2 unitId=123
time="2017-10-20T17:20:53+08:00" level=info msg="test click" adNum=1 appId=1 clickUrl=baidu.com creativeId=456 deviceId=0x22q53 iP=127.0.0.1 oS=1 osVersion=1.0.0 searchId=123 slotId=2 unitId=123
time="2017-10-20T17:20:53+08:00" level=info msg="test click" adNum=1 appId=1 clickUrl=baidu.com creativeId=456 deviceId=0x22q53 iP=127.0.0.1 oS=1 osVersion=1.0.0 searchId=123 slotId=2 unitId=123
time="2017-10-20T17:21:21+08:00" level=info msg="test click" adNum=1 appId=1 clickUrl=baidu.com creativeId=456 deviceId=0x22q53 iP=127.0.0.1 oS=1 osVersion=1.0.0 searchId=123 slotId=2 unitId=123
time="2017-10-20T17:21:21+08:00" level=info msg="test click" adNum=1 appId=1 clickUrl=baidu.com creativeId=456 deviceId=0x22q53 iP=127.0.0.1 oS=1 osVersion=1.0.0 searchId=123 slotId=2 unitId=123
time="2017-10-20T17:21:21+08:00" level=info msg="test click" adNum=1 appId=1 clickUrl=baidu.com creativeId=456 deviceId=0x22q53 iP=127.0.0.1 oS=1 osVersion=1.0.0 searchId=123 slotId=2 unitId=123
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

//展示handler
func DisplayHandler(w http.ResponseWriter, r *http.Request) {
func ImpressionHandler(w http.ResponseWriter, r *http.Request) {
ConfigLocalFilesystemLogger("./log/impression","impression.log",time.Hour*24,time.Hour)
//获得编码后的查询字符串
queryStringEncoded := r.URL.RawQuery
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func main() {
adserver.ReadAdDict()
http.HandleFunc("/ad/search", adhandler.SearchHandler)
http.HandleFunc("/ad/impression",adhandler.DisplayHandler)
http.HandleFunc("/ad/impression",adhandler.ImpressionHandler)
http.HandleFunc("/ad/click",adhandler.ClickHandler)
http.ListenAndServe(":8001", nil)
}

0 comments on commit 84eefd7

Please sign in to comment.