update
This commit is contained in:
@ -6,7 +6,8 @@ class PerfectureService{
|
||||
|
||||
static Future<List<dynamic>?> loadPerfectures() async {
|
||||
List<dynamic> perfs = [];
|
||||
String url = 'http://container.intranet.sumasen.net:8100/api/perf_main/';
|
||||
//String url = 'http://container.intranet.sumasen.net:8100/api/perf_main/';
|
||||
String url = 'http://localhost:8100/api/perf_main/';
|
||||
final response = await http.get(Uri.parse(url),
|
||||
headers: <String, String>{
|
||||
'Content-Type': 'application/json; charset=UTF-8',
|
||||
@ -20,10 +21,10 @@ class PerfectureService{
|
||||
return perfs;
|
||||
}
|
||||
|
||||
static Future<List<dynamic>?> loadSubPerfectures(String sub) async {
|
||||
static Future<List<dynamic>?> loadSubPerfectures(String area) async {
|
||||
List<dynamic> perfs = [];
|
||||
String url = 'http://container.intranet.sumasen.net:8100/api/subperfinmain/?perf=' + sub;
|
||||
//String url = 'http://container.intranet.sumasen.net:8100/api/insubperf/?perf=' + sub;
|
||||
//String url = 'http://container.intranet.sumasen.net:8100/api/subperfinmain/?perf=' + sub;
|
||||
String url = 'http://localhost:8100/api/subperfinmain/?area=' + area;
|
||||
final response = await http.get(Uri.parse(url),
|
||||
headers: <String, String>{
|
||||
'Content-Type': 'application/json; charset=UTF-8',
|
||||
@ -40,7 +41,25 @@ class PerfectureService{
|
||||
|
||||
static Future<List<dynamic>?> getMainPerfExt(String id) async {
|
||||
List<dynamic> perfs = [];
|
||||
String url = 'http://container.intranet.sumasen.net:8100/api/mainperfext/?perf=' + id;
|
||||
//String url = 'http://container.intranet.sumasen.net:8100/api/mainperfext/?perf=' + id;
|
||||
String url = 'http://localhost:8100/api/mainperfext/?perf=' + id;
|
||||
final response = await http.get(Uri.parse(url),
|
||||
headers: <String, String>{
|
||||
'Content-Type': 'application/json; charset=UTF-8',
|
||||
},
|
||||
);
|
||||
|
||||
if (response.statusCode == 200) {
|
||||
|
||||
perfs = json.decode(utf8.decode(response.bodyBytes));
|
||||
}
|
||||
return perfs;
|
||||
}
|
||||
|
||||
static Future<List<dynamic>?> loadGifuAreas(String perf) async {
|
||||
List<dynamic> perfs = [];
|
||||
//String url = 'http://container.intranet.sumasen.net:8100/api/allgifuareas/?perf' + perf;
|
||||
String url = 'http://localhost:8100/api/allgifuareas/?perf=' + perf;
|
||||
final response = await http.get(Uri.parse(url),
|
||||
headers: <String, String>{
|
||||
'Content-Type': 'application/json; charset=UTF-8',
|
||||
@ -57,7 +76,8 @@ class PerfectureService{
|
||||
|
||||
static Future<List<dynamic>?> getSubExt(String id) async {
|
||||
List<dynamic> perfs = [];
|
||||
String url = 'http://container.intranet.sumasen.net:8100/api/perfext/?sub_perf=' + id;
|
||||
//String url = 'http://container.intranet.sumasen.net:8100/api/perfext/?sub_perf=' + id;
|
||||
String url = 'http://localhost:8100/api/perfext/?sub_perf=' + id;
|
||||
final response = await http.get(Uri.parse(url),
|
||||
headers: <String, String>{
|
||||
'Content-Type': 'application/json; charset=UTF-8',
|
||||
|
||||
Reference in New Issue
Block a user