Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -186,7 +186,7 @@ class DioUtil { | @@ -186,7 +186,7 @@ class DioUtil { | ||
| 186 | try { | 186 | try { |
| 187 | print('--------' + path + '---------'); | 187 | print('--------' + path + '---------'); |
| 188 | Response response = await _dio.request(path, | 188 | Response response = await _dio.request(path, |
| 189 | - data: data, | 189 | + queryParameters: data, |
| 190 | options: _checkOptions(method, options), | 190 | options: _checkOptions(method, options), |
| 191 | cancelToken: cancelToken); | 191 | cancelToken: cancelToken); |
| 192 | _printHttpLog(response); | 192 | _printHttpLog(response); |
| @@ -260,7 +260,7 @@ class DioUtil { | @@ -260,7 +260,7 @@ class DioUtil { | ||
| 260 | Future<BaseRespR<T>> requestR<T>(String method, String path, | 260 | Future<BaseRespR<T>> requestR<T>(String method, String path, |
| 261 | {data, Options options, CancelToken cancelToken}) async { | 261 | {data, Options options, CancelToken cancelToken}) async { |
| 262 | Response response = await _dio.request(path, | 262 | Response response = await _dio.request(path, |
| 263 | - data: data, | 263 | + queryParameters: data, |
| 264 | options: _checkOptions(method, options), | 264 | options: _checkOptions(method, options), |
| 265 | cancelToken: cancelToken); | 265 | cancelToken: cancelToken); |
| 266 | _printHttpLog(response); | 266 | _printHttpLog(response); |
-
Please register or login to post a comment