Skip to content

Commit

Permalink
支持自定义公共文件function.php
Browse files Browse the repository at this point in the history
  • Loading branch information
caiweiming committed Feb 25, 2019
1 parent 021dbd7 commit d74d901
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@

use think\Db;
use think\Container;
use think\facade\Env;
use app\user\model\User;

// 应用公共文件

// 加载自定义公共文件
if (is_file(Env::get('app_path') . 'function.php')) {
include_once Env::get('app_path') . 'function.php';
}

if (!function_exists('is_signin')) {
/**
* 判断是否登录
Expand Down

0 comments on commit d74d901

Please sign in to comment.