소스 검색

feat:修改方法参数

wangchuanjin 1 년 전
부모
커밋
e563b37a42
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      p/struct.go

+ 2 - 0
p/struct.go

@@ -225,6 +225,8 @@ func NewUserInfo(temp map[string]interface{}, tp int) *UserInfo {
 	} else if tp == 1 {
 		obj, _ := temp["o_jy"].(map[string]interface{})
 		ui.GetSubSet(true, ui.Id, obj)
+	} else {
+		ui.SubSet = &SubSet{}
 	}
 	o_pushset, _ := temp["o_pushset"].(map[string]interface{})
 	ui.GetPushSet(o_pushset)