Bläddra i källkod

feat:修改方法参数

wangchuanjin 1 år sedan
förälder
incheckning
e563b37a42
1 ändrade filer med 2 tillägg och 0 borttagningar
  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)