setConfig($data, '商家分账开关', 1, [['site_id', '=', $site_id], ['app_module', '=', $app_module], ['config_key', '=', 'DIVIDEMONEY']]); return $res; } /** * 获取配置 */ public function getConfig($site_id, $app_module = 'shop') { $config = new ConfigModel(); $res = $config->getConfig([['site_id', '=', $site_id], ['app_module', '=', $app_module], ['config_key', '=', 'DIVIDEMONEY']]); if (empty($res['data']['value'])) { $res['data']['value'] = [ 'is_divide' => 0 ]; } return $res; } }