Commit bbe38b2eb7a9f869ececa4c69d2be1cb7e0cadf9

Authored by wdn127929
1 parent 213320f4

di odio

@@ -417,7 +417,7 @@ class DioUtil { @@ -417,7 +417,7 @@ class DioUtil {
417 /// get Def Options. 417 /// get Def Options.
418 static BaseOptions getDefOptions() { 418 static BaseOptions getDefOptions() {
419 BaseOptions options = new BaseOptions(); 419 BaseOptions options = new BaseOptions();
420 - options.contentType = 'application/json; charset=utf-8'; 420 + options.contentType = Headers.formUrlEncodedContentType;
421 options.connectTimeout = 1000 * 10; //默认10s 421 options.connectTimeout = 1000 * 10; //默认10s
422 options.receiveTimeout = 1000 * 10; //默认10s 422 options.receiveTimeout = 1000 * 10; //默认10s
423 return options; 423 return options;
@@ -63,7 +63,7 @@ class ContactModel { @@ -63,7 +63,7 @@ class ContactModel {
63 data: params, 63 data: params,
64 options: Options( 64 options: Options(
65 method: Method.post, 65 method: Method.post,
66 - // contentType: "application/x-www-form-urlencoded" 66 + contentType: "application/x-www-form-urlencoded"
67 )) 67 ))
68 .catchError((error) { 68 .catchError((error) {
69 print(error.toString()); 69 print(error.toString());