Showing
2 changed files
with
6 additions
and
6 deletions
No preview for this file type
... | @@ -2847,10 +2847,10 @@ public class swiftApi { | ... | @@ -2847,10 +2847,10 @@ public class swiftApi { |
2847 | } | 2847 | } |
2848 | 2848 | ||
2849 | } else if (sharingData?._status_outer == 4) { | 2849 | } else if (sharingData?._status_outer == 4) { |
2850 | - self.errorExpiredDialog(controller) | 2850 | + self.errorExpiredDialog(controller, sharingData?._msg ?? "") |
2851 | 2851 | ||
2852 | } else if (sharingData?._status_outer == 5) { | 2852 | } else if (sharingData?._status_outer == 5) { |
2853 | - self.errorUsedDialog(controller) | 2853 | + self.errorUsedDialog(controller, sharingData?._msg ?? "") |
2854 | } | 2854 | } |
2855 | } | 2855 | } |
2856 | } else { // status != 1 | 2856 | } else { // status != 1 |
... | @@ -3033,9 +3033,9 @@ public class swiftApi { | ... | @@ -3033,9 +3033,9 @@ public class swiftApi { |
3033 | controller.present(alert, animated: true, completion: nil) | 3033 | controller.present(alert, animated: true, completion: nil) |
3034 | } | 3034 | } |
3035 | 3035 | ||
3036 | - func errorExpiredDialog(_ controller: UIViewController) -> Void { | 3036 | + func errorExpiredDialog(_ controller: UIViewController, _ alertTitle: String) -> Void { |
3037 | 3037 | ||
3038 | - let alert = UIAlertController(title: "Αποτυχία", message: "Το δώρο έχει λήξει", preferredStyle: .alert) | 3038 | + let alert = UIAlertController(title: "Αποτυχία", message: alertTitle, preferredStyle: .alert) |
3039 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in | 3039 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in |
3040 | switch action.style{ | 3040 | switch action.style{ |
3041 | case .default: | 3041 | case .default: |
... | @@ -3052,9 +3052,9 @@ public class swiftApi { | ... | @@ -3052,9 +3052,9 @@ public class swiftApi { |
3052 | controller.present(alert, animated: true, completion: nil) | 3052 | controller.present(alert, animated: true, completion: nil) |
3053 | } | 3053 | } |
3054 | 3054 | ||
3055 | - func errorUsedDialog(_ controller: UIViewController) -> Void { | 3055 | + func errorUsedDialog(_ controller: UIViewController, _ alertTitle: String) -> Void { |
3056 | 3056 | ||
3057 | - let alert = UIAlertController(title: "Αποτυχία", message: "Το δώρο έχει ήδη χρησιμοποιηθεί", preferredStyle: .alert) | 3057 | + let alert = UIAlertController(title: "Αποτυχία", message: alertTitle, preferredStyle: .alert) |
3058 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in | 3058 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in |
3059 | switch action.style{ | 3059 | switch action.style{ |
3060 | case .default: | 3060 | case .default: | ... | ... |
-
Please register or login to post a comment