zhanghongbo há 9 anos atrás
pai
commit
7f83236b7d
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      weixin/src/qfw/weixin/wxadmin.go

+ 3 - 2
weixin/src/qfw/weixin/wxadmin.go

@@ -4,6 +4,7 @@ import (
 	"fmt"
 	. "gopkg.in/mgo.v2/bson"
 	"io/ioutil"
+	"log"
 	"os/exec"
 	"qfw/util"
 	"qfw/util/mongodb"
@@ -13,14 +14,13 @@ import (
 	"time"
 )
 
-
 func processWxAdmin(openid, content string, w ResponseWriter, r *Request) {
 	util.Try(func() {
 
 		if openid != "" {
 			b, cmd, qleng, unit, var1, var2 := checkContent(content)
 			if b {
-				resStr := ""
+				resStr := "无结果"
 				switch cmd {
 				case "f":
 					//查看抽奖模式
@@ -144,6 +144,7 @@ func processWxAdmin(openid, content string, w ResponseWriter, r *Request) {
 						resStr = "关闭微信程认证序完成"
 					}
 				}
+				log.Println("res str", resStr)
 				w.ReplyText(resStr)
 			} else {
 				w.ReplyText("指令不存在,请重新输入。")