|
@@ -3,6 +3,7 @@ package model
|
|
|
import (
|
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
|
IC "jyBXSubscribe/rpc/init"
|
|
|
+ "log"
|
|
|
"strings"
|
|
|
)
|
|
|
|
|
@@ -83,8 +84,8 @@ func Distributor(region []string, entId, entUserId int) []*User {
|
|
|
})
|
|
|
if ok && data != nil && len(*data) > 0 {
|
|
|
o_area := make(map[string]interface{})
|
|
|
- i_member_status, _ := (*data)["i_member_status"].(int)
|
|
|
- i_vip_status, _ := (*data)["i_vip_status"].(int)
|
|
|
+ i_member_status := common.IntAll((*data)["i_member_status"])
|
|
|
+ i_vip_status := common.IntAll((*data)["i_vip_status"])
|
|
|
o_member_jy, _ := (*data)["o_member_jy"].(map[string]interface{})
|
|
|
o_vipjy, _ := (*data)["o_vipjy"].(map[string]interface{})
|
|
|
if n2 != 0 && i_member_status > 0 { //有大会员权益 校验区域
|
|
@@ -121,6 +122,7 @@ func Distributor(region []string, entId, entUserId int) []*User {
|
|
|
}
|
|
|
|
|
|
func regionCheck(o_area map[string]interface{}, regions []string) bool {
|
|
|
+ log.Println("333333333", o_area)
|
|
|
if o_area == nil || len(o_area) == 0 {
|
|
|
return true
|
|
|
} else {
|