public JsonResult DaiFuFailed(string orderId, string refreso) { if (string.IsNullOrEmpty(orderId)) { return(Json(new { IsOk = false, Msg = "参数错误!" })); } string a = DaiFu.Query_youmifu(orderId); if (a == "SUCCESS") { return(Json(new { IsOk = false, Msg = "该订单交易成功或者已受理,无法拒绝" })); } byte b = 3; string value = ""; if (b == 3) { if (refreso == "") { return(Json(new { IsOk = false, Msg = "请输入代付失败理由!" })); } value = refreso; } Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary["id"] = 0; dictionary["orderid"] = orderId; dictionary["type"] = b; dictionary["msg"] = value; dictionary["strOperator"] = user.Username; dictionary["strClientIP"] = GameRequest.GetUserIP(); dictionary["strErr"] = ""; Message message = FacadeManage.aideAccountsFacade.ExcuteByProce("P_Acc_PlayerDrawRefused", dictionary); if (message.Success) { return(Json(new { IsOk = true, Msg = "" })); } return(Json(new { IsOk = false, Msg = message.Content })); }
public JsonResult DaifuTixian(PlatformDraw model) { int @int = GameRequest.GetInt("platId", 0); if (@int <= 0) { return(Json(new { IsOk = false, Msg = "请选择代付平台" })); } if (model.RealName == "" || model.BankCode == "" || model.BankNo == "" || model.DrawAmt <= 0m || model.BankAddr == "" || model.Code == "") { return(Json(new { IsOk = false, Msg = "请输入完整信息" })); } string @string = GameRequest.GetString("Province"); string string2 = GameRequest.GetString("City"); string flowid = ""; string text = ""; switch (@int) { case 1: model.OrderID = PayHelper.GetOrderIDByPrefix("txf"); text = DaiFu.GateWayPement(model.OrderID, model.DrawAmt, model.RealName, model.BankNo, model.BankCode, model.BankAddr, out flowid); break; case 2: if (@string == "" || string2 == "") { return(Json(new { IsOk = false, Msg = "请输入银行所在省市" })); } model.OrderID = PayHelper.GetOrderIDByPrefix("45"); text = DaiFu.Daifu_45(model.OrderID, model.DrawAmt, model.RealName, model.BankNo, model.BankName, model.BankAddr, string2, out flowid); break; case 3: if (@string == "" || string2 == "") { return(Json(new { IsOk = false, Msg = "请输入银行所在省市" })); } model.OrderID = PayHelper.GetOrderIDByPrefix("ymf"); text = DaiFu.Daifu_youmifu(model.OrderID, model.DrawAmt, model.RealName, model.BankNo, model.BankCode, model.BankAddr, @string, string2, base.Request.Url.Host, out flowid); break; case 4: if (@string == "" || string2 == "") { return(Json(new { IsOk = false, Msg = "请输入银行所在省市" })); } model.OrderID = PayHelper.GetOrderIDByPrefix("ry"); text = DaiFu.Daifu_ruyi(model.OrderID, model.DrawAmt, model.RealName, model.BankNo, model.BankCode, model.BankAddr, @string, string2, base.Request.Url.Host, out flowid); break; } string text2 = ""; if (text.ToUpper() == "SUCCESS") { base.Session["code"] = null; base.Session["error"] = null; text2 = "提现请求提交成功,等待处理"; model.OperateIP = GameRequest.GetUserIP(); model.Operator = user.Username; model.FlowID = flowid; int num = FacadeManage.aideNativeWebFacade.AddPlatformDraw(model); if (num > 0) { return(Json(new { IsOk = true, Msg = text2 })); } return(Json(new { IsOk = false, Msg = text2 + "—记录数据错误" })); } return(Json(new { IsOk = false, Msg = text })); }
public JsonResult Daifu(int tradeId, string orderId, string bankAccount, string bankAccountCode, decimal bankAmount, string selectBankCode) { if (string.IsNullOrEmpty(orderId) || string.IsNullOrEmpty(bankAccount) || string.IsNullOrEmpty(bankAccountCode) || bankAmount <= 0m || string.IsNullOrEmpty(selectBankCode)) { return(Json(new { IsOk = false, Msg = "订单号或者银行信息有一项未填写" })); } string formString = GameRequest.GetFormString("bankAddress"); if (formString == "") { return(Json(new { IsOk = false, Msg = "请输入开户行地址" })); } string flowid = ""; string text = GameRequest.GetString("Province"); string text2 = GameRequest.GetString("City"); if (text == "") { text = "江西"; } if (text2 == "") { text2 = "南昌"; } string text3 = DaiFu.Daifu_youmifu(orderId, bankAmount, bankAccount, bankAccountCode, selectBankCode, formString, text, text2, base.Request.Url.Host, out flowid); byte b = 3; string text4 = ""; if (text3.ToUpper() == "SUCCESS") { b = 2; text4 = "代付成功"; Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary["id"] = 0; dictionary["orderid"] = orderId; dictionary["type"] = b; dictionary["msg"] = text4; dictionary["strOperator"] = user.Username; dictionary["strClientIP"] = GameRequest.GetUserIP(); dictionary["strErr"] = ""; Message message = FacadeManage.aideAccountsFacade.ExcuteByProce("P_Acc_PlayerDrawRefused", dictionary); if (message.Success) { return(Json(new { IsOk = true, Msg = text4 })); } return(Json(new { IsOk = false, Msg = text4 + " 数据处理失败," + message.Content })); } return(Json(new { IsOk = false, Msg = text3 })); }