Commit 6b0661cb authored by pete谢兆麟's avatar pete谢兆麟

无网络逻辑修改

parent 8a2d5aa5
...@@ -125,6 +125,10 @@ class YHHomeWebBottomView: UIView { ...@@ -125,6 +125,10 @@ class YHHomeWebBottomView: UIView {
} }
@objc private func likeBtnClick() { @objc private func likeBtnClick() {
if YHNetworkStatusManager.shared.isNetWorkOK == false {
YHHUD.flash(message: "网络不可用,请检查网络设置")
return
}
if YHLoginManager.shared.isLogin() == false { if YHLoginManager.shared.isLogin() == false {
if let block = likeBlock { if let block = likeBlock {
block(isLike) block(isLike)
...@@ -148,6 +152,10 @@ class YHHomeWebBottomView: UIView { ...@@ -148,6 +152,10 @@ class YHHomeWebBottomView: UIView {
} }
@objc private func starBtnClick() { @objc private func starBtnClick() {
if YHNetworkStatusManager.shared.isNetWorkOK == false {
YHHUD.flash(message: "网络不可用,请检查网络设置")
return
}
if YHLoginManager.shared.isLogin() == false { if YHLoginManager.shared.isLogin() == false {
if let block = starBlock { if let block = starBlock {
block(isStar) block(isStar)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment