Explorar el Código

feat: 用户已经下单时,不再展示下单技能列表

陈文艺 hace 1 mes
padre
commit
adcade06be
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      Lanu/Views/IM/Chat/LNIMChatViewController.swift

+ 2 - 3
Lanu/Views/IM/Chat/LNIMChatViewController.swift

@@ -395,13 +395,12 @@ extension LNIMChatViewController {
                 } else if let userInfo = viewModel.userInfo {
                     if !userInfo.playmate {
                         showToast(.init(key: "A00292"))
+                    } else if viewModel.myOrders.first(where: { $0.status == .accepted || $0.status == .waitingForAccept }) != nil {
+                        showToast(.init(key: "A00293"))
                     } else {
                         let panel = LNCreateOrderFromSkillListPanel()
                         panel.update(userInfo.skills, selected: skillView.curSkill)
                         panel.popup()
-                        if viewModel.myOrders.first(where: { $0.status == .accepted || $0.status == .waitingForAccept }) != nil {
-                            showToast(.init(key: "A00293"))
-                        }
                     }
                 }
             }), for: .touchUpInside)