wangchuanjin 9 vuotta sitten
vanhempi
commit
1c58e2b10a
3 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 1 1
      core/src/config.json
  2. 1 1
      core/src/qfw/coreconfig/SysConfig.go
  3. 3 3
      core/src/qfw/mobile/wxmenu.go

+ 1 - 1
core/src/config.json

@@ -28,5 +28,5 @@
     "mailFailureTime": 3,
     "chatServer": "127.0.0.1:83",
     "chatRpc": "127.0.0.1:88",
-	"wxshareurl":"test.qimingxing.info/swordfish/share"
+	"domainName":"test.qimingxing.info"
 }

+ 1 - 1
core/src/qfw/coreconfig/SysConfig.go

@@ -23,7 +23,7 @@ type config struct {
 	ChatServer      string      `json:"chatServer"`
 	ChatRpc         string      `json:"chatRpc"`
 	ElasticPoolSize int         `json:"elasticPoolSize"`
-	Wxshareurl      string      `json:"wxshareurl"`
+	DomainName      string      `json:"domainName"`
 }
 type smtp struct {
 	Addr     string `json:"addr"`

+ 3 - 3
core/src/qfw/mobile/wxmenu.go

@@ -21,7 +21,7 @@ func init() {
 }
 
 func (m *Mobile) Guide() error {
-	m.T["shareData"] = coreutil.GetJSInterfaceParam(coreconfig.SysConfig.Wxshareurl)
+	m.T["shareData"] = coreutil.GetJSInterfaceParam(coreconfig.SysConfig.DomainName + m.Url())
 	return m.Render("/swordfish/wxindex.html")
 }
 func (m *Mobile) Share() error {
@@ -70,7 +70,7 @@ func (m *Mobile) Wxrssset() error {
 			}
 		}
 		//m.T["mid"] = openid
-		m.T["shareData"] = coreutil.GetJSInterfaceParam(coreconfig.SysConfig.Wxshareurl)
+		m.T["shareData"] = coreutil.GetJSInterfaceParam(coreconfig.SysConfig.DomainName)
 		return m.Render("/swordfish/wxrssset.html", &m.T)
 	} else {
 		return m.Render("_err.html")
@@ -242,7 +242,7 @@ func (m *Mobile) WxpushList(s_m_openid string, _id string, msgid string) error {
 	**/
 	m.T["data"] = *mongodb.FindById("wxpush", _id, `{"s_content":1,"s_words":1,"a_visitedindex":1,"a_publishtime":1,"s_type":1}`)
 	m.T["_id"] = _id
-	m.T["shareData"] = coreutil.GetJSInterfaceParam(coreconfig.SysConfig.Wxshareurl)
+	m.T["shareData"] = coreutil.GetJSInterfaceParam(coreconfig.SysConfig.DomainName)
 	return m.Render("/swordfish/wxpush.html", &m.T)
 }