|
@@ -69,15 +69,24 @@ class MobileServer extends BaseServer
|
|
|
|
|
|
protected function is_exclude($file)
|
|
|
{
|
|
|
- $ret = parent::is_exclude($file);
|
|
|
- if ($ret) {
|
|
|
- return true;
|
|
|
- } else {
|
|
|
- $path = BASE_ROOT_PATH . "/" . $this->mSubPath . "/callback";
|
|
|
+ $exister = function ($file,$subex)
|
|
|
+ {
|
|
|
+ $path = BASE_ROOT_PATH . "/" . $this->mSubPath . "/{$subex}";
|
|
|
$basename = basename($file);
|
|
|
$tmp = "{$path}/{$basename}";
|
|
|
|
|
|
return file_exists($tmp);
|
|
|
+ };
|
|
|
+
|
|
|
+ $ret = parent::is_exclude($file);
|
|
|
+ if ($ret) {
|
|
|
+ return true;
|
|
|
+ } elseif ($exister($file,'callback')) {
|
|
|
+ return true;
|
|
|
+ } elseif ($exister($file,'bridge')) {
|
|
|
+ return true;
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
|