|
@@ -232,9 +232,10 @@ func (e *Ex) GetRecords() (ex *entity.ExchangeData) {
|
|
|
}
|
|
|
for _, rv := range *records {
|
|
|
urlMap := common.ObjToMap(rv["url"])
|
|
|
- if ex.Address == "" && urlMap != nil && len(*urlMap) > 0 {
|
|
|
+ var address string
|
|
|
+ if urlMap != nil && len(*urlMap) > 0 {
|
|
|
if urlMap != nil {
|
|
|
- ex.Address = common.InterfaceToStr((*urlMap)[e.Platform])
|
|
|
+ address = common.InterfaceToStr((*urlMap)[e.Platform])
|
|
|
}
|
|
|
}
|
|
|
productId := encrypt.SE.EncodeString(common.InterfaceToStr(rv["product_info_id"]))
|
|
@@ -264,6 +265,7 @@ func (e *Ex) GetRecords() (ex *entity.ExchangeData) {
|
|
|
ExCode: exCode,
|
|
|
PartyName: partyName,
|
|
|
EXDate: exDate,
|
|
|
+ Address: address,
|
|
|
})
|
|
|
} else { //未兑换
|
|
|
//判断是否已经过期
|
|
@@ -320,9 +322,10 @@ WHERE lua.position_id = ? AND pbi.attribute > 0 AND lua.active_id != 6 ORDER
|
|
|
}
|
|
|
for _, rv := range *records {
|
|
|
urlMap := common.ObjToMap(rv["url"])
|
|
|
- if ex.Address == "" && urlMap != nil && len(*urlMap) > 0 {
|
|
|
+ var address string
|
|
|
+ if urlMap != nil && len(*urlMap) > 0 {
|
|
|
if urlMap != nil {
|
|
|
- ex.Address = common.InterfaceToStr((*urlMap)[e.Platform])
|
|
|
+ address = common.InterfaceToStr((*urlMap)[e.Platform])
|
|
|
}
|
|
|
}
|
|
|
activeId := encrypt.SE.EncodeString(common.InterfaceToStr(rv["active_id"]))
|
|
@@ -341,6 +344,7 @@ WHERE lua.position_id = ? AND pbi.attribute > 0 AND lua.active_id != 6 ORDER
|
|
|
ExCode: exCode,
|
|
|
PartyName: partyName,
|
|
|
EXDate: exDate,
|
|
|
+ Address: address,
|
|
|
})
|
|
|
} else { //未兑换
|
|
|
//判断是否已经过期
|