This commit is contained in:
mmc
2026-03-05 09:10:05 +08:00
parent 0c6d582821
commit ac9ee670ec

View File

@@ -27,6 +27,9 @@ class MyRepositoryImpl implements MyRepository {
// 补充:从 UserStorage 获取 token(接口通常需要认证)
final token = await _getToken();
if(token!.isEmpty){
}
final headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer $token', // 按需添加认证头