1
This commit is contained in:
parent
a1345b6af1
commit
10b8d9fc9d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user