应用配置>功能配置->新增 * Tag_Profile_Custom_Hname:医院名称 * Tag_Profile_Custom_Title:医生职称 * @return array * @throws GuzzleException */ public function setProfile(string $user_id,array $arg): array { try { $profileItem = []; foreach ($arg as $key => $value){ $profileItem[] = [ 'Tag' => $key, 'Value' => $value ]; } $options = [ "json"=> [ "From_Account" => $user_id, "ProfileItem" => $profileItem, ] ]; $path = $this->config['base_url'] . $this->version . "/profile/portrait_set?" . $this->buildRequestParams(); return $this->postRequest($path,$options); }catch (\Exception $e) { throw new BusinessException($e->getMessage(), HttpEnumCode::SERVER_ERROR); } } }