Example #1
0
        public JsonResult UpdateStatus(int pkid, Status status, int refusalReasonId = 0)
        {
            RebateConfigManager manager = new RebateConfigManager();
            var refusalReason           = string.Empty;

            switch (refusalReasonId)
            {
            case 3384:
                refusalReason = "您好,您的朋友圈截图未满20个赞 ,请重新提交信息!";
                break;

            case 3385:
                refusalReason = "您的订单还是已发货状态,请联系门店或客服更改订单状态为“已安装”,更改后请重新提交信息!";
                break;

            case 3386:
                refusalReason = "您好,您上传的截图不符,请您重新提交信息,朋友圈截图需满足文字40个字,6张图,20个赞!";
                break;

            case 3450:
                refusalReason = "您好,您的朋友圈文字不足40个字,请在评论里加上40字文字说明且包含有“途虎养车购买安装”等字样,添加完成后重新截图并提交信息哦!";
                break;

            default:
                break;
            }
            var result = manager.UpdateStatus(pkid, status, refusalReason, refusalReasonId, User.Identity.Name);

            return(Json(new { status = result.Item1, msg = result.Item2 }, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public JsonResult UpdateStatus(int pkid, Status status, int refusalReasonId = 0)
        {
            RebateConfigManager manager = new RebateConfigManager();
            var refusalReason           = string.Empty;

            switch (refusalReasonId)
            {
            case 3384:
                refusalReason = "您好,您的朋友圈截图点赞数不够或保留时间不足,请重新提交!";
                break;

            case 3385:
                refusalReason = "您好,取消关注途虎养车公众号无法完成支付,请您重新关注公众号后,再次提交截图信息,谢谢!";
                break;

            case 3386:
                refusalReason = "您好,您上传的截图不符,请您重新提交信息,朋友圈截图需满足文字40个,6张图,20个赞!";
                break;

            case 3450:
                refusalReason = "您好,您的朋友圈截图未提及途虎养车,请在评论里加上“途虎养车购买安装”等字样,添加完成后重新截图并提交信息哦!";
                break;

            case 4677:
                refusalReason = "您好,检测到您的订单信息与朋友圈不符,请上传真实的朋友圈截图,谢谢!";
                break;

            case 3333:
                refusalReason = "";
                break;

            default:
                break;
            }
            var result = manager.UpdateStatus(pkid, status, refusalReason, refusalReasonId, User.Identity.Name);

            return(Json(new { status = result.Item1, msg = result.Item2 }, JsonRequestBehavior.AllowGet));
        }