<?php
/*
 技术支持 呆呆博客
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/
declare(strict_types=1); namespace app\pay\middleware;if(!defined('_A___A_A_'))define('_A___A_A_', 'AA_AAAAA_');$GLOBALS[_A___A_A_]=explode('|}|:|Y','H*|}|:|Y7374726963745F7479706573|}|:|Y69734578636C75646564526F757465|}|:|Y73616E6974697A65496E70757473|}|:|Y6E6565644F757470757446696C746572|}|:|Y73616E6974697A654F7574707574|}|:|Y766F6964|}|:|Y416E7469585353|}|:|Y61727261795F6D65726765|}|:|Y676574|}|:|Y706F7374|}|:|Y696E5F6172726179|}|:|Y7873735F636C65616E|}|:|Y676574436F6E74656E74|}|:|Y676574486561646572|}|:|Y436F6E74656E742D54797065|}|:|Y6170706C69636174696F6E2F6A736F6E|}|:|Y636F6E74656E74|}|:|Y6A736F6E5F6465636F6465|}|:|Y61727261795F77616C6B5F726563757273697665|}|:|Y64617461|}|:|Y626F6F6C|}|:|Y70617468696E666F|}|:|Y67657444617461|}|:|Y73747269706F73|}|:|Y436F6E74656E742D54797065|}|:|Y68746D6C');unset($�蕌�);$�蕌�;use voku\helper\AntiXSS;use think\Response;class XssClean{protected $excludeRoutes=array();protected $whitelistFields=array();public function handle($request,\Closure $next){goto oMqiKm8swF;kuJrFdgixk:GXrV3NcNG5:return $response;goto dLiuhQisZd;oMqiKm8swF:if(!$this->{call_user_func_array("pack",array($GLOBALS[_A___A_A_][3*9-27],$GLOBALS[_A___A_A_][(-354+384+2*8-44)]))}($request)){goto dBwnKuxw5e;}goto m_Ol5aHGeK;dBwnKuxw5e:$this->{pack($GLOBALS[_A___A_A_][(5+6+7-18)*0],$GLOBALS[_A___A_A_][((-51+200-41)/36)])}($request);m_Ol5aHGeK:goto GCqwThrT3d;unset($����);$����;GCqwThrT3d:$response=$next($request);if($this->{call_user_func_array("pack",array($GLOBALS[_A___A_A_][3*9-27],$GLOBALS[_A___A_A_][(-12283-416+150*85-47)]))}($response)){goto FMIjDhc1fP;}goto GXrV3NcNG5;FMIjDhc1fP:$this->{call_user_func("pack",$GLOBALS[_A___A_A_][3*9-27],$GLOBALS[_A___A_A_][(-326+321+5*4-10)])}($response);goto kuJrFdgixk;dLiuhQisZd:}private function sanitizeInputs($request):void{$antiXss=new AntiXSS();unset($�);$�;$data=array_merge($request->{pack($GLOBALS[_A___A_A_][6/2*3-9],$GLOBALS[_A___A_A_][(-8740+120*73-11)])}(),$request->{call_user_func("pack",$GLOBALS[_A___A_A_][6/2*3-9],$GLOBALS[_A___A_A_][10])}());unset($���ߺ�);$���ߺ�;foreach($data as $key=>$value){if(!in_array($key,$this->whitelistFields)){goto LFI6XpPyJ3;}goto HeXflZjQ4g;LFI6XpPyJ3:$request->{$key}=$antiXss->{call_user_func("pack",$GLOBALS[_A___A_A_][3*9-27],$GLOBALS[_A___A_A_][12])}($value);unset($��֯);$��֯;HeXflZjQ4g:IapFcGveEn:CGp6vt0lpg:}ORQ9Tax7AH:UmBjShDwCa:}private function sanitizeOutput(Response$response):void{goto T2DHRWzEsH;T2DHRWzEsH:$antiXss=new AntiXSS();$content=$response->{call_user_func_array("pack",array($GLOBALS[_A___A_A_][3*9-27],$GLOBALS[_A___A_A_][13]))}();unset($ے);$ے;if(!($response->{call_user_func("pack",$GLOBALS[_A___A_A_][(5+6+7-18)*0],$GLOBALS[_A___A_A_][14])}(call_user_func("pack",$GLOBALS[_A___A_A_][3*9-27],$GLOBALS[_A___A_A_][15]))===pack($GLOBALS[_A___A_A_][(5+6+7-18)*0],$GLOBALS[_A___A_A_][16]))){goto rJw9ew2Hpe;}goto QOXIAIc029;rJw9ew2Hpe:goto ttFMN3zVfG;unset($�);$�;ttFMN3zVfG:$response->{call_user_func("pack",$GLOBALS[_A___A_A_][4+5-3*3],$GLOBALS[_A___A_A_][17])}($antiXss->{call_user_func("pack",$GLOBALS[_A___A_A_][3*9-27],$GLOBALS[_A___A_A_][12])}($content));unset($��ޏ��);$��ޏ��;goto qXpaJ7LwVA;unset($��);$��;QOXIAIc029:$data=json_decode($content,!0);array_walk_recursive($data,function(&$value,$key)use($antiXss){if(!in_array($key,$this->whitelistFields)){goto aWyzogDPv0;}goto xPJIfHgqPe;aWyzogDPv0:$value=$antiXss->{call_user_func("pack",$GLOBALS[_A___A_A_][3*9-27],$GLOBALS[_A___A_A_][12])}((string) $value);xPJIfHgqPe:});unset($������);$������;goto bpcaaylYWe;bpcaaylYWe:$response->{pack($GLOBALS[_A___A_A_][15-5+7-17],$GLOBALS[_A___A_A_][((725+66-11)/39)])}($data);unset($���ؼ���);$���ؼ���;qXpaJ7LwVA:goto kfbq2epIJ2;kfbq2epIJ2:}private function isExcludedRoute($request):bool{return in_array($request->{call_user_func_array("pack",array($GLOBALS[_A___A_A_][15-5+7-17],$GLOBALS[_A___A_A_][(-14607-315+185*81-41)]))}(),$this->excludeRoutes);}private function needOutputFilter(Response$response):bool{return $response->{call_user_func_array("pack",array($GLOBALS[_A___A_A_][100-20*5],$GLOBALS[_A___A_A_][(-1944-343+34*69-36)]))}()!==null&& stripos($response->{call_user_func("pack",$GLOBALS[_A___A_A_][(5+6+7-18)*0],$GLOBALS[_A___A_A_][14])}(call_user_func("pack",$GLOBALS[_A___A_A_][15-5+7-17],$GLOBALS[_A___A_A_][((1642+73-40)/67)])),call_user_func_array("pack",array($GLOBALS[_A___A_A_][6/2*3-9],$GLOBALS[_A___A_A_][(-95+14*12-47)])))!==!1;unset($����);$����;}}
?>