diff --git a/module/datatable/test/model/getsetting.php b/module/datatable/test/model/getsetting.php index d3e29bd81e..68ec5c02f3 100755 --- a/module/datatable/test/model/getsetting.php +++ b/module/datatable/test/model/getsetting.php @@ -40,9 +40,17 @@ cid=1 */ -global $lang; -$lang->SRCommon = '研发需求'; -$lang->URCommon = '用户需求'; +global $lang, $app, $config; +$lang->SRCommon = '研发需求'; +$lang->URCommon = '用户需求'; +$config->edition = 'open'; +$app::$loadedLangs = array(); + +include($app->getModuleRoot() . '/story/control.php'); +$app->control = new story(); +$app->loadLang('custom'); +$app->control->loadModel('task'); +$app->control->loadModel('story'); $datatable = new datatableTest(); r($datatable->getSettingTest('product', 'browse')) && p('id:title;id:width;title:title;title:width') && e('ID,80,研发需求名称,0.44'); //获取产品模块browse方法自定义列