王子贤 4 months ago
parent
commit
9785ee83f1
8 changed files with 11 additions and 1 deletions
  1. 2
      android/app/src/main/AndroidManifest.xml
  2. BIN
      android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  3. BIN
      android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  4. BIN
      android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  5. BIN
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  6. BIN
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  7. 6
      lib/controller/mine/user_controller.dart
  8. 4
      lib/model/mine/user_base_data.dart

2
android/app/src/main/AndroidManifest.xml

@ -6,7 +6,7 @@
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<application
android:label="动我"
android:label="趣恋恋"
android:name="${applicationName}"
android:networkSecurityConfig="@xml/network_security_config"
android:icon="@mipmap/ic_launcher">

BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher.png

Before After
Width: 72  |  Height: 72  |  Size: 4.7 KiB Width: 72  |  Height: 71  |  Size: 7.7 KiB

BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher.png

Before After
Width: 48  |  Height: 48  |  Size: 3.6 KiB Width: 48  |  Height: 48  |  Size: 4.3 KiB

BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png

Before After
Width: 96  |  Height: 96  |  Size: 7.2 KiB Width: 96  |  Height: 95  |  Size: 12 KiB

BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png

Before After
Width: 144  |  Height: 144  |  Size: 12 KiB Width: 144  |  Height: 143  |  Size: 23 KiB

BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png

Before After
Width: 192  |  Height: 192  |  Size: 19 KiB Width: 192  |  Height: 192  |  Size: 32 KiB

6
lib/controller/mine/user_controller.dart

@ -93,6 +93,9 @@ class UserController extends GetxController {
if(result.data.data == null){
var information = UserData();
information.matchmakerFlag = baseInfo.matchmakerFlag;
if(information.matchmakerFlag!){
information.matchmakerType = baseInfo.matchmakerType;
}
information.realName = baseInfo.realName;
information.phone = baseInfo.phone;
GlobalData().userData = information;
@ -107,6 +110,9 @@ class UserController extends GetxController {
}
final information = result.data.data!;
information.matchmakerFlag = baseInfo.matchmakerFlag;
if(information.matchmakerFlag!){
information.matchmakerType = baseInfo.matchmakerType;
}
information.realName = baseInfo.realName;
information.phone = baseInfo.phone;
GlobalData().userData = information;

4
lib/model/mine/user_base_data.dart

@ -6,6 +6,7 @@ class UserBaseData {
final String phone;
final String realName;
final String userId;
final int matchmakerType;
UserBaseData({
required this.matchmakerFlag,
@ -14,12 +15,14 @@ class UserBaseData {
required this.phone,
required this.realName,
required this.userId,
required this.matchmakerType,
});
// JSON映射创建实例
factory UserBaseData.fromJson(Map<String, dynamic> json) {
return UserBaseData(
matchmakerFlag: json['matchmakerFlag'] ?? false,
matchmakerType: json['matchmakerType'] ?? 0,
matchmakingCornerFlag: json['matchmakingCornerFlag'] ?? false,
nickName: json['nickName'] ?? '',
phone: json['phone'] ?? '',
@ -32,6 +35,7 @@ class UserBaseData {
Map<String, dynamic> toJson() {
return {
'matchmakerFlag': matchmakerFlag,
'matchmakerType': matchmakerType,
'matchmakingCornerFlag': matchmakingCornerFlag,
'nickName': nickName,
'phone': phone,

Loading…
Cancel
Save