Skip to content

Commit

Permalink
update import path
Browse files Browse the repository at this point in the history
  • Loading branch information
wenweihu86 committed Oct 19, 2017
1 parent 21d61d6 commit 32b4ae7
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
2 changes: 0 additions & 2 deletions data/logfile/20171019log.log

This file was deleted.

16 changes: 8 additions & 8 deletions src/adhandler/clickhandler.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package adhandler
import (
"net/http"
"strconv"

"encoding/json"
"os"
"time"
//"math/rand"
"ad-server/src/adserver"
"fmt"
"strconv"
"net/http"
"encoding/json"
"encoding/base64"

"github.com/sirupsen/logrus"
"ad-server/src/utils"
"os"

"adserver"
"utils"
)
var adlog = logrus.New()
var logpath="./data/logfile/"
Expand Down
13 changes: 7 additions & 6 deletions src/adhandler/displayhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ package adhandler
import (
"net/http"
"strconv"
"encoding/json"
"time"
//"math/rand"
"ad-server/src/adserver"
"encoding/base64"
"os"
"fmt"
"encoding/json"
"encoding/base64"

"github.com/sirupsen/logrus"
"os"
"ad-server/src/utils"

"adserver"
"utils"
)
//展示handler
func DisplayHandler(w http.ResponseWriter, r *http.Request) {
Expand Down
4 changes: 2 additions & 2 deletions src/adserver/ad_dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ type AdCreative struct {
ClickUrl string
}

var AdUnits []AdUnit = make([]AdUnit, 0, 10000)
var AdCreativeMap map[uint]AdCreative = make(map[uint]AdCreative, 10000)
var AdUnits = make([]AdUnit, 0, 10000)
var AdCreativeMap = make(map[uint]AdCreative, 10000)

func ReadAdDict() {
dictFileName := "./data/ad_info.txt"
Expand Down
5 changes: 3 additions & 2 deletions src/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
"encoding/json"
"time"
"math/rand"
"ad-server/src/adserver"
"ad-server/src/adhandler"

"adserver"
"adhandler"
)

func SearchHandler(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 32b4ae7

Please sign in to comment.