重构
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class HttpClient {
|
||||
static const String _baseUrl = 'https://yy.vogov.cn/api/';
|
||||
@@ -89,7 +88,7 @@ class HttpClient {
|
||||
final options = Options(
|
||||
method: method,
|
||||
headers: headers != null
|
||||
? {..._options.headers!, ...headers}
|
||||
? {..._options.headers, ...headers}
|
||||
: _options.headers,
|
||||
);
|
||||
|
||||
@@ -165,7 +164,7 @@ class HttpClient {
|
||||
final options = Options(
|
||||
method: method,
|
||||
headers: headers != null
|
||||
? {..._options.headers!, ...headers}
|
||||
? {..._options.headers, ...headers}
|
||||
: _options.headers,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user