Commit d526fc42 authored by Steven杜宇's avatar Steven杜宇

// web添加阿里云日志

parent c3e7ca4e
......@@ -82,6 +82,8 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
}
checkHomeAlertView()
getCurrentUserInfo()
}
......@@ -368,7 +370,7 @@ extension YHHomeHoldViewPageViewController {
if !YHLoginManager.shared.isLogin() {
return
}
guard let mobile = YHLoginManager.shared.userModel?.mobile else {
if let mobile = YHLoginManager.shared.userModel?.mobile, !mobile.isEmpty {
return
}
self.loginViewModel.getUserInfo { success, error in
......
......@@ -211,8 +211,8 @@ extension YHLoginViewModel {
func getUserInfo(callBackBlock: @escaping (_ success: Bool,_ error:YHErrorModel?)->()) {
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.User.verifyCode
let _ = YHNetRequest.postRequest(url: strUrl) {[weak self] json, code in
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.User.userInfo
let _ = YHNetRequest.getRequest(url: strUrl) {[weak self] json, code in
guard self != nil else { return }
//1. json字符串 转 对象
......
......@@ -268,6 +268,7 @@ class YHAllApiName {
//获取验证
struct User {
static let verifyCode = "cuser/user/verify-code"
static let userInfo = "super-app/user/current-info"
}
//预览相关接口
......
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