xuzhiheng 5 năm trước cách đây
mục cha
commit
c9b0adba67
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 1
      customerdata/src/task.go
  2. 0 1
      customerdata/src/util.go

+ 2 - 1
customerdata/src/task.go

@@ -9,6 +9,7 @@ import (
 	. "sqlmodel"
 	"strings"
 	"sync"
+	"time"
 	mgoutil "util/mgodb"
 
 	"gopkg.in/mgo.v2/bson"
@@ -74,7 +75,7 @@ func GetCustomerData() {
 			end := time.Now().Unix()
 			log.Println("加载projectId---结束,耗时", end-start, "秒")
 		} else {
-			projectIdMap = *sync.Map{}
+			projectIdMap = &sync.Map{}
 		}
 		//
 		cus.GetTagRules()      //获取客户打标签规则

+ 0 - 1
customerdata/src/util.go

@@ -6,7 +6,6 @@ import (
 	qu "qfw/util"
 	"regexp"
 	"strings"
-	"sync"
 	"time"
 
 	"github.com/donnie4w/go-logger/logger"