|
@@ -860,7 +860,6 @@ func getHistorypush(lasttime, infotime int64, openid string, res []map[string]in
|
|
|
info["visit"] = vsidList
|
|
|
// log.Println("info", info)
|
|
|
tmp := changeMapKeyForCass(info)
|
|
|
- // m.T["data"] = val
|
|
|
if ats, ok := tmp["o_pushinfo"].(map[string]interface{}); ok {
|
|
|
thistime = util.Int64All(tmp["l_date"])
|
|
|
count += len(ats)
|
|
@@ -1064,11 +1063,12 @@ func (m *Front) WxpushAjaxReq() error {
|
|
|
defer util.Catch()
|
|
|
vsid := m.GetString("vsid")
|
|
|
pdate := m.GetString("_id")
|
|
|
+ openid := m.Session().Get("s_m_openid")
|
|
|
// log.Println("vsid", vsid)
|
|
|
// log.Println("pdate", pdate)
|
|
|
if util.Int64All(pdate) > 0 {
|
|
|
visit := map[string]interface{}{
|
|
|
- "openid": m.Session().Get("s_m_openid"),
|
|
|
+ "openid": openid,
|
|
|
"pdate": pdate,
|
|
|
"vsid": vsid,
|
|
|
"date": time.Now(),
|