This commit is contained in:
2017-01-23 04:59:10 +08:00
parent f5dfeaa123
commit 8ed5794348
11 changed files with 140 additions and 39 deletions

View File

@ -34,8 +34,8 @@ export let OptionFormat = (GetOptions) => {
// 替换SQL字符串中的前缀
export let SqlFormat = (str) => {
if (SystemConfig.mysql_prefix !== 'bm_') {
str = str.replace(/bm_/g, SystemConfig.mysql_prefix)
if (SystemConfig.mysql_prefix !== 'api_') {
str = str.replace(/api_/g, SystemConfig.mysql_prefix)
}
return str
}