$qrCode, 'wechat' => ConfigService::get('customer_service', 'wechat', ''), 'phone' => ConfigService::get('customer_service', 'phone', ''), 'service_time' => ConfigService::get('customer_service', 'service_time', ''), ]; return $config; } /** * @notes 设置客服设置 * @param $params * @author ljj * @date 2022/2/15 12:11 下午 */ public static function setConfig($params) { $allowField = ['qr_code','wechat','phone','service_time']; foreach($params as $key => $value) { if(in_array($key, $allowField)) { if ($key == 'qr_code') { $value = FileService::setFileUrl($value); } ConfigService::set('customer_service', $key, $value); } } } }