修复多封邮件问题
This commit is contained in:
parent
0d0ca89b46
commit
f71dfdaf4b
@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"game/base/log"
|
"game/base/log"
|
||||||
"game/base/redis"
|
//"game/base/redis"
|
||||||
"game/config"
|
"game/config"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -158,6 +158,7 @@ func (srv *PayServer) forwardKsGame(sid int, urlPath string, msg interface{}, na
|
|||||||
}
|
}
|
||||||
resp.Body.Close()
|
resp.Body.Close()
|
||||||
|
|
||||||
|
log.Info("response", string(respData))
|
||||||
return respData, nil;
|
return respData, nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -185,8 +186,9 @@ func (srv *PayServer) TestGameProxy(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (srv *PayServer) SendMsgToGame(sid int, urlPath string, msg interface{}, name string) (respData []byte, e error) {
|
func (srv *PayServer) SendMsgToGame(sid int, urlPath string, msg interface{}, name string) (respData []byte, e error) {
|
||||||
srv.forwardKsGame(sid, urlPath, msg, name)
|
respData, e = srv.forwardKsGame(sid, urlPath, msg, name)
|
||||||
info := redis.HGet("game_info", sid)
|
return respData, e
|
||||||
|
/*info := redis.HGet("game_info", sid)
|
||||||
if info == "" {
|
if info == "" {
|
||||||
log.Debug("SendMsgToGame info=nil")
|
log.Debug("SendMsgToGame info=nil")
|
||||||
return
|
return
|
||||||
@ -230,5 +232,5 @@ func (srv *PayServer) SendMsgToGame(sid int, urlPath string, msg interface{}, na
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Info("SendMail Fail msg:", msg, " sid:", sid, " name:", name, " rr:", rr)
|
log.Info("SendMail Fail msg:", msg, " sid:", sid, " name:", name, " rr:", rr)
|
||||||
return
|
return*/
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user