コード例 #1
0
ファイル: TradeController.cs プロジェクト: yxandam/BabyPlan
        public JsonResult AjaxReplay(int pid)
        {
            string content = Request["comment_input"];
            int    ref_id  = 0;

            int.TryParse(Request["ref_id"], out ref_id);
            RespResult response = new RespResult();

            if (string.IsNullOrEmpty(content) || content.Length < 2 || content.Length > 300)
            {
                response.Error     = AppError.ERROR_FAILED;
                response.ExMessage = "回复内容长度不合法!";
                return(Json(response));
            }

            ReplyServiceClient client = new ReplyServiceClient();

            response = client.ReplyBBPost(pid, ref_id, content, CurrentToken);
            return(Json(response));
        }