登录逻辑的完善

This commit is contained in:
fengshuo
2024-02-25 12:53:56 +08:00
parent d0f0f68e2b
commit 9010bb66fc
10 changed files with 133 additions and 9 deletions

View File

@@ -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 {

View 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)
}