ConfigService::get('app', 'ios_download_url', ''), 'android_download_url' => ConfigService::get('app', 'android_download_url', ''), 'download_title' => ConfigService::get('app', 'download_title', ''), 'app_id' => ConfigService::get('open_platform', 'app_id', ''), 'app_secret' => ConfigService::get('open_platform', 'app_secret', ''), 'pop_agreement' => ConfigService::get('app','pop_agreement',1), // 'wechat_login' => ConfigService::get('app','wechat_login',1), ]; return $config; } /** * @notes App设置 * @author Tab * @date 2021/7/30 14:46 */ public static function setConfig($params) { ConfigService::set('app', 'ios_download_url', $params['ios_download_url'] ?? ''); ConfigService::set('app', 'android_download_url', $params['android_download_url'] ?? ''); ConfigService::set('app', 'download_title', $params['download_title'] ?? ''); ConfigService::set('open_platform', 'app_id', $params['app_id'] ?? ''); ConfigService::set('open_platform', 'app_secret', $params['app_secret'] ?? ''); ConfigService::set('app', 'pop_agreement', $params['pop_agreement'] ?? 1); // ConfigService::set('app', 'wechat_login', $params['wechat_login'] ?? 1); } }