zhangxinlei1996 4 年之前
父節點
當前提交
c33bb34df3
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/jfw/modules/subscribepay/src/util/vrew.go

+ 4 - 4
src/jfw/modules/subscribepay/src/util/vrew.go

@@ -245,13 +245,13 @@ func GetSqlObjFromId(_id, item string, index int) *ViewCondition {
 		return nil
 	}
 	o_vipjy, _ := (*query)["o_vipjy"].(map[string]interface{})
-	a_items := o_vipjy["a_items"].([]interface{})
-	a_buyerclass := o_vipjy["a_buyerclass"].([]interface{})
+	a_items, _ := o_vipjy["a_items"].([]interface{})
+	a_buyerclass, _ := o_vipjy["a_buyerclass"].([]interface{})
 	if len(a_buyerclass) > 0 && qutil.IntAllDef(o_vipjy["i_matchbuyerclass_other"], 1) == 1 && len(a_items) > 0 {
 		a_buyerclass = append(a_buyerclass, "其它")
 	}
-	a_infotype := o_vipjy["a_infotype"].([]interface{})
-	o_area := o_vipjy["o_area"].(map[string]interface{})
+	a_infotype, _ := o_vipjy["a_infotype"].([]interface{})
+	o_area, _ := o_vipjy["o_area"].(map[string]interface{})
 	return &ViewCondition{
 		Keyword:    getKeyWordArrFromDbResult(a_items, item, index),
 		Buyerclass: qutil.ObjArrToStringArr(a_buyerclass),