浏览代码

注释打开处理

WH01243 2 年之前
父节点
当前提交
fb35883139
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      jyBXSubscribe/rpc/init/pushMapping.go

+ 7 - 2
jyBXSubscribe/rpc/init/pushMapping.go

@@ -1,5 +1,10 @@
 package init
 
+import (
+	"app.yhyue.com/moapp/jybase/common"
+	"log"
+)
+
 var PushMapping = &pushMapping{}
 
 type pushMapping struct {
@@ -13,7 +18,7 @@ type pushMapping struct {
 
 //推送数据 在mysql中 信息类型和地区等存的对应id;查询的时候需进行转化;
 func (p *pushMapping) Init() {
-	/*infotype := pushServiceMysql.SelectBySql("select id,type,name from infotype")
+	infotype := pushServiceMysql.SelectBySql("select id,type,name from infotype")
 	p.Toptype = map[string]int{}
 	p.Subtype = map[string]int{}
 	p.Buyerclass = map[string]int{}
@@ -67,5 +72,5 @@ func (p *pushMapping) Init() {
 		if len(p.City) == 0 {
 			log.Fatalln("PushMapping City Init Error")
 		}
-	}*/
+	}
 }