登录逻辑的完善
This commit is contained in:
@@ -31,7 +31,7 @@ class HUDTool: NSObject {
|
||||
- Parameter afterDelay: 延迟消失时间
|
||||
- Parameter enabled: 是否可以拦截事件 no:不拦截 yes:拦截
|
||||
*/
|
||||
class func showSuccess(with message: String, in view: UIView? = YMRequestX.topViewController()?.view, delay afterDelay: TimeInterval = kDelayTime, enabled: Bool = true, icon:String = "") {
|
||||
class func show(with message: String, in view: UIView? = YMRequestX.topViewController()?.view, delay afterDelay: TimeInterval = kDelayTime, enabled: Bool = true, icon:String = "") {
|
||||
if message.isEmpty { return }
|
||||
|
||||
DispatchQueue.main.async {
|
||||
|
17
yinmeng-ios/Base/Request/YMNetworkFun.swift
Normal file
17
yinmeng-ios/Base/Request/YMNetworkFun.swift
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// YMNetworkFun.swift
|
||||
// yinmeng-ios
|
||||
//
|
||||
// Created by MaiMang on 2024/2/25.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
func RequestGet(path:String,parma:Dictionary<String, Any>, succeed: SessionCallSucceed?,fail:SessionCallFail?) -> Void {
|
||||
YMNetworkHelper.share.requestSend(type: .get, path: path, params: parma, succeed: succeed, fail: fail)
|
||||
}
|
||||
|
||||
func RequestPost(path:String,parma:Dictionary<String, Any>, succeed: SessionCallSucceed? ,fail:SessionCallFail?) -> Void {
|
||||
YMNetworkHelper.share.requestSend(type: .post, path: path, params: parma, succeed: succeed, fail: fail)
|
||||
}
|
Reference in New Issue
Block a user