|
@@ -61,9 +61,15 @@ namespace MySystem
|
|
|
PosMerchantInfo mer = db.PosMerchantInfo.FirstOrDefault(m => m.Id == item.MerchantId) ?? new PosMerchantInfo();
|
|
|
string Name = item.OperateMan;
|
|
|
string AccountNo = item.AlipayAccountNo;
|
|
|
- string Amount = "0.01"; //item.ReturnAmount.ToString("f2");
|
|
|
+ decimal ReturnAmount = item.ReturnAmount * 0.92M;
|
|
|
+ // decimal ReturnAmount = item.ReturnAmount / 1000;
|
|
|
+ // if(ReturnAmount < 0.1M)
|
|
|
+ // {
|
|
|
+ // ReturnAmount = 0.1M;
|
|
|
+ // }
|
|
|
+ string Amount = ReturnAmount.ToString("f2");
|
|
|
PublicAccountSet set = db.PublicAccountSet.FirstOrDefault() ?? new PublicAccountSet();
|
|
|
- string result = new Alipay.AlipayPublicMethod().TransferToAccount(set.AlipayAppId, set.AlipayPrivateKey,set.AlipayPublicKey, AccountNo, Amount, "押金返还", Name, "机具SN:" + mer.KqSnNo + ";商户姓名:" + mer.MerRealName);
|
|
|
+ string result = new Alipay.AlipayPublicMethod().TransferToAccount(set.AlipayAppId, set.AlipayPrivateKey,set.AlipayPublicKey, AccountNo, Amount, "达标奖到账", Name, "机具SN:" + mer.KqSnNo + ";商户姓名:" + mer.MerRealName);
|
|
|
if(result.StartsWith("success"))
|
|
|
{
|
|
|
item.Status = 1;
|
|
@@ -74,7 +80,7 @@ namespace MySystem
|
|
|
item.Status = 2;
|
|
|
item.SeoDescription = result;
|
|
|
mer.StandardStatus = 101;
|
|
|
- mer.Remark = result;
|
|
|
+ mer.SeoDescription = result;
|
|
|
}
|
|
|
db.SaveChanges();
|
|
|
}
|