浏览代码

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)