rabin 5 years ago
parent
commit
5f19b05bcc
1 changed files with 4 additions and 1 deletions
  1. 4 1
      database/data.php

+ 4 - 1
database/data.php

@@ -58,7 +58,10 @@ $ad_type = array
     4 => '切屏广告',
 );
 
-$link_type = Dever::config('base', 'project')->type;
+if (Dever::config('base', 'project')->type) {
+    $link_type = Dever::config('base', 'project')->type;
+}
+
 $link_type[100] = '链接';
 
 return array