|
@@ -11,7 +11,7 @@ import ( |
|
|
|
|
|
|
|
|
//HappyOrchardUserSeedExchangeReward 用户种子兑换礼品 |
|
|
//HappyOrchardUserSeedExchangeReward 用户种子兑换礼品 |
|
|
//TODO::调用此方法前注意开启session、关闭session 会话 |
|
|
//TODO::调用此方法前注意开启session、关闭session 会话 |
|
|
func HappyOrchardUserSeedExchangeReward(session *xorm.Session, records models.HappyOrchardUserSeedRecord, rewardId int, masterId string) error { |
|
|
|
|
|
|
|
|
func HappyOrchardUserSeedExchangeReward(session *xorm.Session, records models.HappyOrchardUserSeedRecord, rewardId int, masterId string, args map[string]string) error { |
|
|
now := time.Now() |
|
|
now := time.Now() |
|
|
|
|
|
|
|
|
//1、获取奖品数据 、 种子数据 |
|
|
//1、获取奖品数据 、 种子数据 |
|
@@ -45,6 +45,9 @@ func HappyOrchardUserSeedExchangeReward(session *xorm.Session, records models.Ha |
|
|
WaterNums: seed.WaterNums, |
|
|
WaterNums: seed.WaterNums, |
|
|
State: 1, |
|
|
State: 1, |
|
|
RecordId: records.Id, |
|
|
RecordId: records.Id, |
|
|
|
|
|
Receiver: args["receiver"], |
|
|
|
|
|
ReceiverPhone: args["receiver_phone"], |
|
|
|
|
|
Detail: args["receiver_detail"], |
|
|
LogisticCompany: "", |
|
|
LogisticCompany: "", |
|
|
LogisticCompanyCode: "", |
|
|
LogisticCompanyCode: "", |
|
|
LogisticNum: "", |
|
|
LogisticNum: "", |
|
|