|
|
@@ -483,7 +483,7 @@ func CreateShopApplyOrder(shopAppplyId int64) {
|
|
|
}
|
|
|
//创建赠品订单
|
|
|
order := new(order_model.Order).CreateNew(wxUser.Id, wxUser.UserId,
|
|
|
- int64(0), int64(0), order_model.ORDER_TYPE_LIVE, wxUser.Depart, order_model.SOURCE_XCX)
|
|
|
+ int64(0), int64(0), order_model.ORDER_TYPE_NORMAL, wxUser.Depart, order_model.SOURCE_XCX)
|
|
|
if order == nil {
|
|
|
return
|
|
|
}
|
|
|
@@ -596,6 +596,9 @@ func CreateShopApplyOrder(shopAppplyId int64) {
|
|
|
}
|
|
|
if !delOrder {
|
|
|
order.TotalPrice = total
|
|
|
+ order.Contact = shopApply.Name
|
|
|
+ order.Address = shopApply.Address
|
|
|
+ order.Tel = shopApply.Mobile
|
|
|
order.Save()
|
|
|
} else {
|
|
|
order.Delete()
|