feat: add channel code integral reward

This commit is contained in:
danaisuiyuan
2026-05-21 06:46:18 +08:00
parent ab65147b82
commit 673a19b3f7
8 changed files with 95 additions and 10 deletions

View File

@@ -20,7 +20,10 @@ class ClearServices extends BaseServices
*/
protected function delDirAndFile($dirName)
{
$list = glob($dirName . '*');
if (!is_dir($dirName)) {
return;
}
$list = glob($dirName . '*') ?: [];
foreach ($list as $file) {
if (is_dir($file))
$this->delDirAndFile($file . DS);