1
This commit is contained in:
parent
8804f1680e
commit
6a8599cdb3
@ -63,8 +63,8 @@ func (this* RiskMgr) UnInit() {
|
||||
}
|
||||
|
||||
func (this* RiskMgr) OutputLog() {
|
||||
f5.SysLog().Info("passobj %s", this.GetPassObj().ToJsonStr())
|
||||
f5.SysLog().Info("blockobj %s", this.GetBlockObj().ToJsonStr())
|
||||
//f5.SysLog().Info("passobj %s", this.GetPassObj().ToJsonStr())
|
||||
//f5.SysLog().Info("blockobj %s", this.GetBlockObj().ToJsonStr())
|
||||
atomic.StoreInt64(&this.passTimes, 0)
|
||||
atomic.StoreInt64(&this.blockTimes, 0)
|
||||
atomic.StoreInt64(&this.passTimes, 0)
|
||||
@ -79,36 +79,6 @@ func (this* RiskMgr) GetSdkInfo(accessKeyId* string, accessSecret* string) {
|
||||
*accessSecret = "" + this.accessSecret
|
||||
}
|
||||
|
||||
func (this* RiskMgr) GetPassObj() *q5.XObject {
|
||||
passObj := q5.NewMxoObject()
|
||||
passObj.SetXValue("total_times", q5.NewXInt64(this.totalPassTimes))
|
||||
passObj.SetXValue("curr_times", q5.NewXInt64(this.passTimes))
|
||||
/*passObj.SetXValue("total_white_ip_times", q5.NewXInt64(this.totalIpWhiteListPassTimes))
|
||||
passObj.SetXValue("curr_white_ip_times", q5.NewXInt64(this.ipWhiteListPassTimes))
|
||||
passObj.SetXValue("total_white_launch_times", q5.NewXInt64(this.totalLaunchWhiteListPassTimes))
|
||||
passObj.SetXValue("curr_white_launch_times", q5.NewXInt64(this.launchWhiteListPassTimes))
|
||||
passObj.SetXValue("total_safezone_times", q5.NewXInt64(this.totalSafeZonePassTimes))
|
||||
passObj.SetXValue("curr_safezone_times", q5.NewXInt64(this.safeZonePassTimes))*/
|
||||
return passObj.AsXObject()
|
||||
}
|
||||
|
||||
func (this* RiskMgr) GetBlockObj() *q5.XObject {
|
||||
blockObj := q5.NewMxoObject()
|
||||
blockObj.SetXValue("total_times", q5.NewXInt64(this.totalBlockTimes))
|
||||
blockObj.SetXValue("curr_times", q5.NewXInt64(this.blockTimes))
|
||||
/*blockObj.SetXValue("total_method_err_times", q5.NewXInt64(this.totalHttpMethodBlockTimes))
|
||||
blockObj.SetXValue("curr_method_err_times", q5.NewXInt64(this.httpMethodBlockTimes))
|
||||
blockObj.SetXValue("total_session_err_times", q5.NewXInt64(this.totalSessionErrBlockTimes))
|
||||
blockObj.SetXValue("curr_session_err_times", q5.NewXInt64(this.sessionErrBlockTimes))
|
||||
blockObj.SetXValue("total_black_ip_times", q5.NewXInt64(this.totalIpBlackListBlockTimes))
|
||||
blockObj.SetXValue("curr_black_ip_times", q5.NewXInt64(this.ipBlackListBlockTimes))
|
||||
blockObj.SetXValue("total_black_launch_times", q5.NewXInt64(this.totalLaunchBlackListBlockTimes))
|
||||
blockObj.SetXValue("curr_black_launch_times", q5.NewXInt64(this.launchBlackListBlockTimes))
|
||||
blockObj.SetXValue("total_unsafezone_times", q5.NewXInt64(this.totalUnSafeZoneBlockTimes))
|
||||
blockObj.SetXValue("curr_unsafezone_times", q5.NewXInt64(this.unSafeZoneBlockTimes))*/
|
||||
return blockObj.AsXObject()
|
||||
}
|
||||
|
||||
func (this *RiskMgr) GetGameConf(gameId int32, channel int32) *GameConf {
|
||||
return nil
|
||||
}
|
||||
|
@ -231,10 +231,26 @@ func (this* GameConf) Dump() *q5.MutableXObject {
|
||||
|
||||
func (this* GameConf) GetPassObj() *q5.XObject {
|
||||
passObj := q5.NewMxoObject()
|
||||
/*passObj.SetXValue("total_white_ip_times", q5.NewXInt64(this.totalIpWhiteListPassTimes))
|
||||
passObj.SetXValue("curr_white_ip_times", q5.NewXInt64(this.ipWhiteListPassTimes))
|
||||
passObj.SetXValue("total_white_launch_times", q5.NewXInt64(this.totalLaunchWhiteListPassTimes))
|
||||
passObj.SetXValue("curr_white_launch_times", q5.NewXInt64(this.launchWhiteListPassTimes))
|
||||
passObj.SetXValue("total_safezone_times", q5.NewXInt64(this.totalSafeZonePassTimes))
|
||||
passObj.SetXValue("curr_safezone_times", q5.NewXInt64(this.safeZonePassTimes))*/
|
||||
return passObj.AsXObject()
|
||||
}
|
||||
|
||||
func (this* GameConf) GetBlockObj() *q5.XObject {
|
||||
blockObj := q5.NewMxoObject()
|
||||
/*blockObj.SetXValue("total_method_err_times", q5.NewXInt64(this.totalHttpMethodBlockTimes))
|
||||
blockObj.SetXValue("curr_method_err_times", q5.NewXInt64(this.httpMethodBlockTimes))
|
||||
blockObj.SetXValue("total_session_err_times", q5.NewXInt64(this.totalSessionErrBlockTimes))
|
||||
blockObj.SetXValue("curr_session_err_times", q5.NewXInt64(this.sessionErrBlockTimes))
|
||||
blockObj.SetXValue("total_black_ip_times", q5.NewXInt64(this.totalIpBlackListBlockTimes))
|
||||
blockObj.SetXValue("curr_black_ip_times", q5.NewXInt64(this.ipBlackListBlockTimes))
|
||||
blockObj.SetXValue("total_black_launch_times", q5.NewXInt64(this.totalLaunchBlackListBlockTimes))
|
||||
blockObj.SetXValue("curr_black_launch_times", q5.NewXInt64(this.launchBlackListBlockTimes))
|
||||
blockObj.SetXValue("total_unsafezone_times", q5.NewXInt64(this.totalUnSafeZoneBlockTimes))
|
||||
blockObj.SetXValue("curr_unsafezone_times", q5.NewXInt64(this.unSafeZoneBlockTimes))*/
|
||||
return blockObj.AsXObject()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user