|
@@ -115,9 +115,10 @@ namespace MySystem
|
|
|
{
|
|
|
MerchantAddInfo merchantAdd = db.MerchantAddInfo.FirstOrDefault(m => m.Id == order.MerchantId) ?? new MerchantAddInfo();
|
|
|
//添加分账接收方
|
|
|
- if(merchant.Sort == 0)
|
|
|
+ if(merchantAdd.Sort == 0)
|
|
|
{
|
|
|
string content = AlipayFunction.Instance.BindSettleRelation(DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8), AlipayFunction.Instance.Pid, merchantAdd.AlipayAuthToken);
|
|
|
+ function.WriteLog(DateTime.Now.ToString() + "\n" + content, "支付宝添加分账方");
|
|
|
merchantAdd.Sort = 1;
|
|
|
db.SaveChanges();
|
|
|
}
|