Browse Source

wip:提交

wkyuer 1 week ago
parent
commit
08e062bfd5
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/jfw/modules/publicapply/src/subscribePush/entity/vrew.go

+ 4 - 2
src/jfw/modules/publicapply/src/subscribePush/entity/vrew.go

@@ -236,15 +236,17 @@ func GetVIPViewSql(userId string, scd *ViewCondition, dayLimit ...int) string {
 }
 
 func GetSqlObjFromId(_id, vType, item string, index int, sessionMap map[string]interface{}) *ViewCondition {
-	query := config.Compatible.Select(_id, `{"o_vipjy":1,"o_member_jy":1}`)
+	query := config.Compatible.Select(_id, `{"o_vipjy":1,"o_member_jy":1,"o_jy":1}`)
 	if query == nil || len(*query) == 0 {
 		return nil
 	}
 	o_vipjy := map[string]interface{}{}
 	if vType == jy.MemberFlag {
 		o_vipjy, _ = (*query)["o_member_jy"].(map[string]interface{})
-	} else {
+	} else if vType == jy.SubVipFlag {
 		o_vipjy, _ = (*query)["o_vipjy"].(map[string]interface{})
+	} else {
+		o_vipjy, _ = (*query)["o_jy"].(map[string]interface{})
 	}
 	a_items, _ := o_vipjy["a_items"].([]interface{})
 	a_buyerclass, _ := o_vipjy["a_buyerclass"].([]interface{})