|
@@ -5,6 +5,7 @@ import (
|
|
|
"fmt"
|
|
|
"log"
|
|
|
"math/rand"
|
|
|
+ "qfw/coreconfig"
|
|
|
"qfw/coreutil"
|
|
|
"qfw/util"
|
|
|
"qfw/util/consts"
|
|
@@ -15,14 +16,12 @@ import (
|
|
|
|
|
|
var se util.SimpleEncrypt
|
|
|
|
|
|
-const ShareUrl string = "http://www.qimingxing.info/swordfish/share"
|
|
|
-
|
|
|
func init() {
|
|
|
se = util.SimpleEncrypt{Key: "topnet"}
|
|
|
}
|
|
|
|
|
|
func (m *Mobile) Guide() error {
|
|
|
- m.T["shareData"] = coreutil.GetJSInterfaceParam(ShareUrl)
|
|
|
+ m.T["shareData"] = coreutil.GetJSInterfaceParam(coreconfig.SysConfig.Wxshareurl)
|
|
|
return m.Render("/swordfish/wxindex.html")
|
|
|
}
|
|
|
func (m *Mobile) Share() error {
|
|
@@ -71,7 +70,7 @@ func (m *Mobile) Wxrssset() error {
|
|
|
}
|
|
|
}
|
|
|
//m.T["mid"] = openid
|
|
|
- m.T["shareData"] = coreutil.GetJSInterfaceParam(ShareUrl)
|
|
|
+ m.T["shareData"] = coreutil.GetJSInterfaceParam(coreconfig.SysConfig.Wxshareurl)
|
|
|
return m.Render("/swordfish/wxrssset.html", &m.T)
|
|
|
} else {
|
|
|
return m.Render("_err.html")
|
|
@@ -243,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(ShareUrl)
|
|
|
+ m.T["shareData"] = coreutil.GetJSInterfaceParam(coreconfig.SysConfig.Wxshareurl)
|
|
|
return m.Render("/swordfish/wxpush.html", &m.T)
|
|
|
}
|
|
|
|