Commit f80b7032 by 王召彬

根据oemId读取指定的配置项

parent 488fa7f0
...@@ -25,7 +25,7 @@ class CfgCenter ...@@ -25,7 +25,7 @@ class CfgCenter
/** /**
* 根据oemId读取指定的配置项 - 返回数组格式 * 根据oemId读取指定的配置项 - 返回数组格式
* (所有配置项,需预先添加到数据库中) * (所有配置项,需预先添加到数据库中)
* $cfgdata = CfgCenter::getArray(CfgCenter::COS); * $cfgdata = CfgCenter::getByOemId(CfgCenter::COS, $oemId);
* var_dump($cfgdata['Weapp']['Region']); // 输出:ap-shanghai * var_dump($cfgdata['Weapp']['Region']); // 输出:ap-shanghai
* *
* @param string $keyName * @param string $keyName
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment