This commit is contained in:
aozhiwei 2020-11-03 19:58:46 +08:00
parent a1345b6af1
commit 10b8d9fc9d

View File

@ -298,6 +298,9 @@ func (this *RiskMgr) __analyseIsOpen(w* http.ResponseWriter, r *http.Request) {
atomic.AddInt64(&this.totalPassTimes, 1)
atomic.AddInt64(&this.passTimes, 1)
if this.clusterConf.GetTesting() == 1 {
if response_str == "" {
response_str = `""`
}
data := fmt.Sprintf(`{"errcode":0, "errmsg":"", "is_open":%d, "data":%s}`,
1,
response_str)
@ -309,6 +312,9 @@ func (this *RiskMgr) __analyseIsOpen(w* http.ResponseWriter, r *http.Request) {
atomic.AddInt64(&this.totalBlockTimes, 1)
atomic.AddInt64(&this.blockTimes, 1)
if this.clusterConf.GetTesting() == 1 {
if response_str == "" {
response_str = `""`
}
data := fmt.Sprintf(`{"errcode":0, "errmsg":"", "is_open":%d, "data":%s}`,
0,
response_str)