diff --git a/src/custom/think/AdapteeInfo.php b/src/custom/think/AdapteeInfo.php index 4ba07c910433a946f337c73ffbf96486e72a421c..125c915d3c4fcb1ca4a9e7a53426ff7829e2db06 100644 --- a/src/custom/think/AdapteeInfo.php +++ b/src/custom/think/AdapteeInfo.php @@ -26,7 +26,11 @@ class AdapteeInfo function get_wftype() { if (unit::gconfig('wf_type_mode') == 0) { - return Db::query("select replace(TABLE_NAME,'" . unit::gconfig('prefix') . "','')as name,TABLE_COMMENT as title from information_schema.tables where table_schema='" . unit::gconfig('database') . "' and TABLE_COMMENT like '" . unit::gconfig('work_table') . "%' and TABLE_NAME not like '%_bak';"); + $wftypes=Db::query("select TABLE_NAME as name,TABLE_COMMENT as title from information_schema.tables where table_schema='" . unit::gconfig('database') . "' and TABLE_COMMENT like '" . unit::gconfig('work_table') . "%' and TABLE_NAME not like '%_bak';"); + foreach ($wftypes as &$wftype){ + $wftype['name']=ltrim($wftype['name'],unit::gconfig('prefix')); + } + return $wftypes; } else { return unit::gconfig('wf_type_data'); }