上架時報錯的程式修正
This commit is contained in:
@@ -42,4 +42,6 @@
|
|||||||
<data android:mimeType="text/plain"/>
|
<data android:mimeType="text/plain"/>
|
||||||
</intent>
|
</intent>
|
||||||
</queries>
|
</queries>
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
+3
-1
@@ -43,7 +43,9 @@ class AuthApiService {
|
|||||||
return {'code': -1, 'msg': '伺服器響應錯誤: ${response.statusCode}'};
|
return {'code': -1, 'msg': '伺服器響應錯誤: ${response.statusCode}'};
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return {'code': -1, 'msg': '網路連線異常'};
|
// return {'code': -1, 'msg': '網路連線異常'};
|
||||||
|
print("DEBUG: API Error -> $e"); // 在 Console 看真正的錯誤類型
|
||||||
|
return {'code': -1, 'msg': '網路連線異常: $e'};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,7 @@ import '../main.dart';
|
|||||||
import '../auth_manager.dart'; // 確保路徑正確
|
import '../auth_manager.dart'; // 確保路徑正確
|
||||||
|
|
||||||
// API 相關常數
|
// API 相關常數
|
||||||
const String BASE_IP = "https://api.gex.com.tw:8033";
|
const String BASE_IP = "https://api.gex.com.tw";
|
||||||
//const String API_ENDPOINT = "xapi/v1/eis_demo/checklogin/2/";
|
//const String API_ENDPOINT = "xapi/v1/eis_demo/checklogin/2/";
|
||||||
//const String API_URL = "$BASE_IP/$API_ENDPOINT";
|
//const String API_URL = "$BASE_IP/$API_ENDPOINT";
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.0.0+4
|
version: 1.0.0+7
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.10.0
|
sdk: ^3.10.0
|
||||||
|
|||||||
Reference in New Issue
Block a user