|
@@ -130,13 +130,17 @@ class BaseTabbarViewController: NSObject {
|
|
|
|
|
|
esTabBarController.didHijackHandler = {
|
|
|
tabbarController, viewController, index in
|
|
|
- let isUploadFinish: Bool = PublishUploadManager.shared().isPublishFinished
|
|
|
- if isUploadFinish {
|
|
|
- let pickVc = PublishViewController()
|
|
|
- let nav = BaseNavigationViewController.init(rootViewController: pickVc)
|
|
|
- tabbarController.present(nav, animated: true, completion: nil)
|
|
|
- } else {
|
|
|
- SwiftProgressHUD.shared().showText("内容上传中,请稍等", textAlignment: .center)
|
|
|
+ if UserModel.isTokenNil() {
|
|
|
+ kAppDelegate.setLogin()
|
|
|
+ }else {
|
|
|
+ let isUploadFinish: Bool = PublishUploadManager.shared().isPublishFinished
|
|
|
+ if isUploadFinish {
|
|
|
+ let pickVc = PublishViewController()
|
|
|
+ let nav = BaseNavigationViewController.init(rootViewController: pickVc)
|
|
|
+ tabbarController.present(nav, animated: true, completion: nil)
|
|
|
+ } else {
|
|
|
+ SwiftProgressHUD.shared().showText("内容上传中,请稍等", textAlignment: .center)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|