admin
2025-02-11 8cc47cfe4c6d6b48e62cf00f6cbd0951ec57c264
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.everyday.word.controller.user;
 
import com.everyday.word.utils.AliyunOneKeyLoginUtil;
import com.everyday.word.vo.AcceptData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.yeshi.utils.JsonUtil;
import org.yeshi.utils.StringUtil;
 
import javax.servlet.http.HttpSession;
 
/**
 * @author hxh
 * @title: UserController
 * @description:
 * @date 2025/2/7 15:59
 */
@Controller
@RequestMapping("user/login")
public class LoginController {
 
    /**
     * @return java.lang.String
     * @author hxh
     * @description 电话号码登录
     * @date 16:08 2025/2/7
     * @param: acceptData
     * @param: session
     **/
    @ResponseBody
    @RequestMapping("phone")
    public String phoneLogin(AcceptData acceptData, HttpSession session) {
 
 
        return JsonUtil.loadTrueResult("");
    }
 
    /**
     * @return java.lang.String
     * @author hxh
     * @description 一键登录
     * @date 16:09 2025/2/7
     * @param: acceptData
     * @param: token
     * @param: session
     **/
    @ResponseBody
    @RequestMapping("one_key")
    public String oneKeyLogin(AcceptData acceptData, String token, HttpSession session) {
        String phone = AliyunOneKeyLoginUtil.getMobile(token, "");
        if (StringUtil.isNullOrEmpty(phone)) {
            return JsonUtil.loadFalseResult("手机号获取失败");
        }
        return JsonUtil.loadTrueResult("");
    }
 
    @ResponseBody
    @RequestMapping("wx")
    public String wxLogin(AcceptData acceptData, String token, HttpSession session) {
        return JsonUtil.loadTrueResult("");
    }
 
    @ResponseBody
    @RequestMapping("qq")
    public String qqLogin(AcceptData acceptData, String token, HttpSession session) {
        return JsonUtil.loadTrueResult("");
    }
 
 
}