Esempio n. 1
0
        public async Task <MiniprogramRegisterResult> Register([FromBody] RegisterDTO register)
        {
            jscode2session data = await GetOpenIdAsync(register.Code);

            var res = await _userService.RegisterAsync(data, register.RawData);

            return(res);
        }
Esempio n. 2
0
        public async Task <MiniprogramRegisterResult> Register([FromBody] RegisterDTO register)
        {
            jscode2session data = await GetOpenIdAsync(register.Code);

            if (data == null)
            {
                return(new MiniprogramRegisterResult
                {
                    StatusCode = MiniProgramResultCode.error
                });
            }
            var res = await _userService.RegisterAsync(data, register.RawData);

            return(res);
        }