소스 검색

Merge branch 'develop' of 192.168.3.17:zhanghongbo/qfw into develop

wangshan 9 년 전
부모
커밋
77a72719c3
2개의 변경된 파일35개의 추가작업 그리고 9개의 파일을 삭제
  1. 35 0
      common/src/config.json
  2. 0 9
      weixin/src/qfw/weixin/msgtxtchandler.go

+ 35 - 0
common/src/config.json

@@ -0,0 +1,35 @@
+{
+    "webServerPort": "80",
+    "redisServers": "enterprise=192.168.3.14:1379,service=192.168.3.14:2379,other=192.168.3.14:3379,sso=192.168.3.14:1379,credit=192.168.3.14:3379",
+    "useRedis": false,
+    "mongodbServers": "192.168.3.18:27080",
+    "elasticsearch": "http://192.168.3.18:9800",
+    "elasticPoolSize": 30,
+    "mongodbPoolSize": 5,
+    "mongodbName": "qfw",
+    "smtp": {
+        "addr": "smtp.exmail.qq.com",
+        "port": 465,
+        "user": "qyfw@topnet.net.cn",
+        "pwd": "qy123456",
+        "fromuser": "企明星"
+    },
+    "sms": {
+        "company": "企明星"
+    },
+    "entrelation": {
+        "level": 2,
+        "limit": 10
+    },
+    "allownfiletype": "gif,jpg,jpeg,png,doc,docx,xls,xlsx,zip,rar,pdf,txt",
+    "filesize": 15120,
+    "templateCache": false,
+    "httpCache": false,
+    "mailFailureTime": 3,
+    "chatServer": "127.0.0.1:83",
+    "chatRpc": "127.0.0.1:88",
+	"creditRpc":"127.0.0.1:8765",
+	"pushRpc":"127.0.0.1:8766",
+	"domainName":"http://www.qimingxing.info"
+
+}

+ 0 - 9
weixin/src/qfw/weixin/msgtxtchandler.go

@@ -74,15 +74,6 @@ func MsgTxtHandler(w ResponseWriter, r *Request) {
 		//查改用户是否已经抽过奖
 		if dao.FindWinningRecord(r.FromUserName, wf.SysConfig.Activity["activitycode"]) {
 			w.ReplyText("小主莫贪心,每人只有一次抽奖机会呦")
-<<<<<<< HEAD
-=======
-		}*/
-		//TODO 改为查我的抽奖卷
-		if dao.GetMyCouponAmount(r.FromUserName) <= 0 {
-			w.ReplyText("对不起,你的奖劵不足。您可以查看<a href='http://www.qimingxing.info/p/'>企明星的最新活动</a>赚取积分。")
-		} else if dao.GetMyTodayDrawTimes(openid) > 0 { //检查今日抽奖次数
-			w.ReplyText("对不起,你今天的抽奖次数已经用完,请您明天再来。")
->>>>>>> 456c5e620092155af63ebe9691a745396ed266d2
 		} else {
 			targeturl := fmt.Sprintf("http://%s/activity/%s/%s", wf.SysConfig.Domain, wf.SysConfig.Activity["activitycode"], se.EncodeString(r.FromUserName))
 			log.Println("choujiang url:", targeturl)