Exemple #1
0
        public void Post([FromBody] CommonRequestModel model)
        {
            try
            {
                // validate sign

                // same appid&timestamp must occur once only
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "Failed to log");
            }
        }
Exemple #2
0
        private static void sendMess(int messType, CommonRequestModel requestModel)
        {
            if (SystemHelper.currentUser != null)
            {
                requestModel.id = currentUser.id;
            }
            createConnection();
            CommonMess commonMess = new CommonMess();

            commonMess.messType = messType;
            commonMess.content  = JsonHelper.SerializeObject(requestModel);
            RequestQueue.Add(commonMess);
        }
Exemple #3
0
 public static void register(CommonRequestModel requestModel, RegisterForm registerForm)
 {
     SystemHelper.registerForm = registerForm;
     sendMess(MessType.Register, requestModel);
 }
Exemple #4
0
 public static void Login(CommonRequestModel requestModel, LoginForm loginForm)
 {
     SystemHelper.loginForm = loginForm;
     sendMess(MessType.Login, requestModel);
 }