コード例 #1
0
        public IActionResult MerchatLogin(Merchant m)
        {
            int h = 0;

            try
            {
                h = bll.MerchatLogin(m);
            }
            catch (Exception ex)
            {
                log.Error(ex.Message);
            }
            return(Ok(new { state = h > 0 ? true : false, msg = h > 0 ? "登录成功" : "登录失败" }));
        }