shop_id); //$image = $image ? UrlServer::getFileUrl($image) : ''; $config = [ //'type' => ConfigServer::get('shop_app_service', 'type', 1,$this->shop_id), 'dingding_url' => ConfigServer::get('shop_app_service', 'dingding_url', '', $this->shop_id), 'dingding_pass' => ConfigServer::get('shop_app_service', 'dingding_pass', '', $this->shop_id), 'dingding_user' => ConfigServer::get('shop_app_service', 'dingding_user', '', $this->shop_id), //'image' => $image, ]; return view('', [ 'config' => $config ]); } public function set() { $post = $this->request->post(); //ConfigServer::set('shop_app_service', 'type', $post['type'], $this->shop_id); ConfigServer::set('shop_app_service', 'dingding_url', $post['dingding_url'], $this->shop_id); ConfigServer::set('shop_app_service', 'dingding_pass', $post['dingding_pass'], $this->shop_id); ConfigServer::set('shop_app_service', 'dingding_user', $post['dingding_user'], $this->shop_id); /*if(isset($post['image'])){ ConfigServer::set('shop_customer_service', 'image', clearDomain($post['image']), $this->shop_id); }*/ return JsonServer::success('设置成功'); } }