32
This commit is contained in:
parent
40e8e310ed
commit
3ff8b662ff
|
|
@ -900,7 +900,22 @@ public class SQController : ControllerBase
|
|||
Msg = "预约已满"
|
||||
};
|
||||
}
|
||||
|
||||
string paymentId = "";
|
||||
if (reservation.deposit_fee > 0)
|
||||
{
|
||||
var imdata = JsonConvert.DeserializeObject<Dictionary<string, object>>(dto.important_data);
|
||||
if (imdata == null || !imdata.ContainsKey("paymentId") || string.IsNullOrEmpty(imdata["paymentId"].ToString()))
|
||||
{
|
||||
return new WebApiDto()
|
||||
{
|
||||
Code = 500,
|
||||
Data = null,
|
||||
Msg = "押金支付信息错误!"
|
||||
};
|
||||
}
|
||||
//订单编号
|
||||
paymentId = imdata["paymentId"].ToString();
|
||||
}
|
||||
// 4. 插入参与人记录
|
||||
var participant = new SQReservationParticipants
|
||||
{
|
||||
|
|
@ -910,7 +925,8 @@ public class SQController : ControllerBase
|
|||
role = 0, // 0为参与者
|
||||
status = 0,
|
||||
is_refund = reservation.deposit_fee > 0 ? 1 : 0,
|
||||
important_data = dto.important_data
|
||||
important_data = dto.important_data,
|
||||
paymentId = paymentId,
|
||||
};
|
||||
await _SQReservationParticipantsServices.InsertAsync(participant);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user