|
@@ -58,7 +58,19 @@ class SelfMentionContactsListViewController: BaseViewController {
|
|
|
selfMentionContactsListView.didSelectRowClosure = {
|
|
|
[weak self] indexPath in
|
|
|
let selfMentionContactsModel = self?.selfMentionContactsModels?[indexPath.row]
|
|
|
- self?.userSetExpreesContactsDefaultApi(id: selfMentionContactsModel?.id ?? 0)
|
|
|
+
|
|
|
+ // 当前选中的为默认,不进行请求
|
|
|
+ if selfMentionContactsModel?.isDefault == 1 {
|
|
|
+ if self!.isFromOrderPay {
|
|
|
+ self?.navigationController?.popViewController(animated: true)
|
|
|
+ } else {
|
|
|
+ self?.userExpreesContactsListApi()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if selfMentionContactsModel?.isDefault == 0 {
|
|
|
+ self?.userSetExpreesContactsDefaultApi(id: selfMentionContactsModel?.id ?? 0)
|
|
|
+ }
|
|
|
}
|
|
|
return selfMentionContactsListView
|
|
|
}()
|