|
@@ -41,7 +41,10 @@ func GetCouponInfo(userId, lotteryId, pCode string) (full, reduce int, discount
|
|
|
}
|
|
|
userLotteryId = strconv.FormatInt(qutil.Int64All((*info)["UserLotteryId"]), 10)
|
|
|
//卡卷是否可用
|
|
|
- useProductList := qutil.ObjArrToMapArr((*info)["UseProductList"].([]interface{}))
|
|
|
+ useProductList := []map[string]interface{}{}
|
|
|
+ if (*info)["UseProductList"] != nil {
|
|
|
+ useProductList = qutil.ObjArrToMapArr((*info)["UseProductList"].([]interface{}))
|
|
|
+ }
|
|
|
if len(useProductList) > 0 {
|
|
|
for _, pv := range useProductList {
|
|
|
//当前产品是否可用
|