应用中心开发
parent
85dab636bd
commit
9c18966ebb
|
|
@ -961,6 +961,19 @@ php;
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// sql运行
|
||||
$install_sql = APP_PATH.'plugins'.DS.$plugins_name.DS.'install.sql';
|
||||
if(!empty($plugins_name) && file_exists($install_sql))
|
||||
{
|
||||
// 开始处理
|
||||
$ret = SqlconsoleService::Implement(['sql'=>file_get_contents($install_sql)]);
|
||||
if($ret['code'] != 0)
|
||||
{
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
return DataReturn('安装成功');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
return [
|
||||
// 开发模式
|
||||
'is_develop' => false,
|
||||
'is_develop' => true,
|
||||
|
||||
// 默认编码
|
||||
'default_charset' => 'utf-8',
|
||||
|
|
|
|||
Loading…
Reference in New Issue