* [refac bug #66424] Fix load config from db for system module.
This commit is contained in:
@@ -10,18 +10,23 @@ title=测试 commonModel::loadConfigFromDB();
|
||||
timeout=0
|
||||
cid=15686
|
||||
|
||||
- 查看设置后的配置项数量 @5
|
||||
- 查看设置后的配置项详情
|
||||
- 第0条的owner属性 @system
|
||||
- 第0条的module属性 @common
|
||||
- 第0条的section属性 @global
|
||||
- 第0条的key属性 @hourPoint
|
||||
- 第0条的value属性 @0
|
||||
- 查看设置后的第一条配置项详情
|
||||
- 属性owner @system
|
||||
- 属性module @common
|
||||
- 属性section @global
|
||||
- 属性key @hourPoint
|
||||
- 属性value @0
|
||||
- 查看设置后的第二条配置项详情
|
||||
- 属性owner @system
|
||||
- 属性module @common
|
||||
- 属性section @global
|
||||
- 属性key @CRProduct
|
||||
- 属性value @1
|
||||
|
||||
*/
|
||||
|
||||
su('admin');
|
||||
$tester->loadModel('common')->loadConfigFromDB();
|
||||
|
||||
r(count($config->systemDB->common)) && p() && e(5); // 查看设置后的配置项数量
|
||||
r($config->systemDB->common) && p('0:owner,module,section,key,value') && e('system,common,global,hourPoint,0'); // 查看设置后的配置项详情
|
||||
r($config->systemDB->common[0]) && p('owner,module,section,key,value') && e('system,common,global,hourPoint,0'); // 查看设置后的第一条配置项详情
|
||||
r($config->systemDB->common[1]) && p('owner,module,section,key,value') && e('system,common,global,CRProduct,1'); // 查看设置后的第二条配置项详情
|
||||
Reference in New Issue
Block a user