fix: 处理order_status异步

This commit is contained in:
2025-12-24 17:08:59 -08:00
parent 7740b46fa6
commit 18e932e738
9 changed files with 187 additions and 136 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class BaseResponse<T> {
final dataMap = json['data'] ?? Map<String, dynamic>();
final cipherText = dataMap['data'] ?? "";
final nonce = dataMap['time'] ?? "";
print('明文${cipherText}');
// 判断是否需要解密:根据站点配置的 enable_security 字段
if (cipherText.isNotEmpty && nonce.isNotEmpty) {
try {
+1
View File
@@ -329,6 +329,7 @@ class HttpUtil {
}
}
}
print('err.type ${err.type}');
if (err.type == DioExceptionType.unknown) {
final _pathOnly = (err.requestOptions.path.isNotEmpty)
? err.requestOptions.path