Parcourir la source

암호변경 로직 오류 수정

강성희 il y a 6 ans
Parent
commit
1eaca41700

+ 2 - 2
MCPlus/CustomFiles/kunkuk/Info.plist

@@ -15,7 +15,7 @@
 	<key>CFBundlePackageType</key>
 	<string>APPL</string>
 	<key>CFBundleShortVersionString</key>
-	<string>101</string>
+	<string>102</string>
 	<key>CFBundleURLTypes</key>
 	<array>
 		<dict>
@@ -30,7 +30,7 @@
 		</dict>
 	</array>
 	<key>CFBundleVersion</key>
-	<string>101</string>
+	<string>102</string>
 	<key>DomainName</key>
 	<string>https://app.hyumc.com/</string>
 	<key>Fabric</key>

+ 4 - 3
MCPlus/ViewControllers/LockScreen/LockOptionViewViewController.swift

@@ -115,8 +115,9 @@ extension LockOptionViewViewController:UITableViewDelegate, UITableViewDataSourc
     
         cell.selectionStyle = .none
         
-        let key = itemsInfo.map({$0.key})[indexPath.section]
-        cell.label.text = itemsInfo[key]?[indexPath.row] ?? ""
+        let key:Int = indexPath.section + 1
+        
+        cell.label.text = itemsInfo[String(key)]?[indexPath.row] ?? ""
         cell.switchButton.tag = indexPath.row
         
         cell.switchButton.addTarget(self, action: #selector(switchChanged(sender:)), for: .valueChanged)
@@ -124,7 +125,7 @@ extension LockOptionViewViewController:UITableViewDelegate, UITableViewDataSourc
         
         switch indexPath.section {
         case 1:
-            cell.switchButton.isEnabled = true
+//            cell.switchButton.isEnabled = true
             if let temp = userDefaults.object(forKey: "fingerprint") as? String{
                 cell.switchButton.isOn = temp == "ON"
             }else{