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