ConfigServer::get('customer_service', 'type', 1), 'wechat' => ConfigServer::get('customer_service', 'wechat', ''), 'phone' => ConfigServer::get('customer_service', 'phone', ''), 'business_time' => ConfigServer::get('customer_service', 'business_time', ''), 'image' => $image, ]; return view('', [ 'config' => $config ]); } public function set() { $post = $this->request->post(); ConfigServer::set('customer_service', 'type', $post['type']); ConfigServer::set('customer_service', 'wechat', $post['wechat']); ConfigServer::set('customer_service', 'phone', $post['phone']); ConfigServer::set('customer_service', 'business_time', $post['business_time']); if(isset($post['image'])){ ConfigServer::set('customer_service', 'image', clearDomain($post['image'])); } return JsonServer::success('设置成功'); } }