Browse Source

update

tags/2.4.1
flucout 6 months ago
parent
commit
5642ea3038
  1. 14
      app/command/CleanViteJs.php

14
app/command/CleanViteJs.php

@ -178,19 +178,27 @@ class CleanViteJs extends Command
} }
if(strpos($file, '"recom-view"')!==false){ //soft if(strpos($file, '"recom-view"')!==false){ //soft
$code = getExtendFunction($file, '"recom-view"');
$code = $this->getExtendFunction($file, '"recom-view"');
$file = str_replace($code, 'void(0)', $file); $file = str_replace($code, 'void(0)', $file);
$flag = true; $flag = true;
} }
if(strpos($file, '"打开插件文件目录"')!==false){ //soft.table if(strpos($file, '"打开插件文件目录"')!==false){ //soft.table
$code = getExtendFunction($file, '"(续费)"');
$code = $this->getExtendFunction($file, '"(续费)"');
$file = str_replace($code, '""', $file); $file = str_replace($code, '""', $file);
$code = getExtendFunction($file, '"(续费)"');
$code = $this->getExtendFunction($file, '"(续费)"');
$file = str_replace($code, '""', $file); $file = str_replace($code, '""', $file);
$flag = true; $flag = true;
} }
if(strpos($file, '检测到同名文件')!==false){ //file.
$code = $this->getExtendCode($file, '计算结果:', 3, '[', ']');
$code = $this->getExtendFunction($file, $code);
$file = str_replace($code, '', $file);
$file = preg_replace('!\w+\.sum===\w+\.addend1\+\w+\.addend2!', '!0', $file);
$flag = true;
}
for($i=0;$i<5;$i++){ for($i=0;$i<5;$i++){
$code = $this->getExtendCode($file, 'content:"需求反馈"', 2); $code = $this->getExtendCode($file, 'content:"需求反馈"', 2);
if($code){ if($code){

Loading…
Cancel
Save