Skip to content

Commit 424a49b

Browse files
committed
up
1 parent 75fe9e3 commit 424a49b

File tree

8 files changed

+557
-94
lines changed

8 files changed

+557
-94
lines changed

lib/config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class Config {
2-
static const String APP_VERISON = "1.0.40+41";
2+
static const String APP_VERISON = "1.0.42+43";
33
static DateTime dummyTime = DateTime(
44
1,
55
1,

lib/models/RegularInspectionRow.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class RegularInspectionRow {
1818
this.seepageCheck,
1919
this.generalCleanliness,
2020
this.otherIssue,
21+
this.photo,
2122
this.issub,
2223
this.roomsubroomId,
2324
this.roomsubroomName,
@@ -29,6 +30,7 @@ class RegularInspectionRow {
2930
String seepageCheck;
3031
String generalCleanliness;
3132
String otherIssue;
33+
List<String> photo;
3234
int issub;
3335
int roomsubroomId;
3436
String roomsubroomName;
@@ -45,6 +47,7 @@ class RegularInspectionRow {
4547
? null
4648
: json["general_cleanliness"],
4749
otherIssue: json["other_issue"] == null ? null : json["other_issue"],
50+
photo: json["photo"] == "" ? [] : json["photo"].split(","),
4851
issub: json["issub"] == null ? null : json["issub"],
4952
roomsubroomId:
5053
json["roomsubroom_id"] == null ? null : json["roomsubroom_id"],
@@ -62,6 +65,7 @@ class RegularInspectionRow {
6265
"general_cleanliness":
6366
generalCleanliness == null ? null : generalCleanliness,
6467
"other_issue": otherIssue == null ? null : otherIssue,
68+
"photo": photo == null ? null : photo,
6569
"issub": issub == null ? null : issub,
6670
"roomsubroom_id": roomsubroomId == null ? null : roomsubroomId,
6771
"roomsubroom_name": roomsubroomName == null ? null : roomsubroomName,

lib/services/regulationInspectionRowService.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ class RegularInspectionRowService extends AuthService {
1313
if (response.statusCode == 200) {
1414
var responseMap = json.decode(response.body);
1515
return responseMap['insertId'].toString();
16-
} else
16+
} else {
17+
print(response.body);
1718
print("Not working!");
19+
}
1820
}
1921

2022
// ignore: missing_return

0 commit comments

Comments
 (0)