Commit 17660a59 by 王召彬

修改bug

parent 0c33b547
......@@ -201,8 +201,8 @@ class CfgCenter
$result = $dbConn->select("config", ['value'], ['oemId' => $oemId, 'name' => $keyName]);
if (!isset($result[0]['value'])) {
if($oemId > 0) {
// 如果指定的oemId查找不到,则使用活动啦啦(oemId==0)的配置
$result = $dbConn->select("config", ['value'], ['oemId' => 0, 'name' => $keyName]);
// 如果指定的oemId查找不到,则使用活动啦啦(oemId==0且common==1)的配置
$result = $dbConn->select("config", ['value'], ['oemId' => 0, 'common' => 1, 'name' => $keyName]);
if (!isset($result[0]['value'])) {
return;
}
......
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