解决支付宝错误

This commit is contained in:
wanyongkang
2020-10-12 18:08:24 +08:00
parent 3a4bfb28eb
commit 20474cd13f
11 changed files with 154 additions and 16 deletions

View File

@@ -295,7 +295,7 @@ namespace Home.Controllers
{
Body = request.PackageName,
Subject = oName,
TotalAmount = request.OtherPayAmount.ToString(),
TotalAmount = decimal.Round(decimal.Parse(request.OtherPayAmount.ToString()),2).ToString(),
OutTradeNo = request.OrderNo,
ProductCode = "FAST_INSTANT_TRADE_PAY",//QUICK_WAP_PAY
TimeoutExpress="15m"

View File

@@ -534,10 +534,18 @@ namespace Home.Controllers
public async Task<IActionResult> MyCoupons()
{
var userId =this.Request.GetUserInfo().UserId;
var model = await m_CouponService.GetUserCoupon(userId);
var model = await m_CouponService.GetUserCoupon(userId);
return View(model);
}
[HttpGet]
[UserAuth]
public IActionResult CashOut()
{
var userId =this.Request.GetUserInfo().UserId;
return View();
}
/// <summary>
/// 发送手机验证码
/// </summary>
@@ -598,7 +606,7 @@ namespace Home.Controllers
};
var retAmount = await m_UserService.UpdateAmount(amountInfo);
await m_CouponService.TaoBaoGive(userEntity.Id, 1, userEntity.TaoBao);
await m_CouponService.TaoBaoGive(userEntity.Id, 9, userEntity.TaoBao);
var taobaoEntity = notifyOrder.MapTo<TaoBaoOrderEntity>();