Merge branch 'main' into design
This commit is contained in:
@ -212,7 +212,8 @@ class Request {
|
|||||||
if (extra != null) {
|
if (extra != null) {
|
||||||
if (extra['ua'] != null) {
|
if (extra['ua'] != null) {
|
||||||
options ??= Options();
|
options ??= Options();
|
||||||
options.headers!['user-agent'] = headerUa(type: extra['ua']);
|
options.headers ??= <String, dynamic>{};
|
||||||
|
options.headers?['user-agent'] = headerUa(type: extra['ua']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -47,7 +47,7 @@ class _DynamicForwardPageState extends State<DynamicForwardPage> {
|
|||||||
widget.cb?.call();
|
widget.cb?.call();
|
||||||
_onClose();
|
_onClose();
|
||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast(res['message']);
|
SmartDialog.showToast(res['msg']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -117,7 +117,7 @@ class _MemberArchivePageState extends State<MemberArchivePage> {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return HttpError(
|
return HttpError(
|
||||||
errMsg: snapshot.data['msg'],
|
errMsg: snapshot.data?['msg'] ?? '请求异常',
|
||||||
fn: () {},
|
fn: () {},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user