瀏覽代碼

feat:修改默认值

wangchuanjin 1 年之前
父節點
當前提交
2faa310327
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      p/struct.go

+ 1 - 2
p/struct.go

@@ -198,12 +198,11 @@ func (u *UserInfo) GetPushSet(obj map[string]interface{}) {
 	entInfo, _ := obj["o_entinfo"].(map[string]interface{})
 	followProject, _ := obj["o_follow_project"].(map[string]interface{})
 	followEnt, _ := obj["o_follow_ent"].(map[string]interface{})
-
 	u.PushSet = &PushSet{
 		Email: strings.TrimSpace(util.ObjToString(obj["s_email"])),
 		SubSet: &PushSetChild{
 			WxPush:   util.IntAllDef(subSet["i_wxpush"], 1),
-			AppPush:  util.IntAllDef(subSet["i_apppush"], 1),
+			AppPush:  util.IntAllDef(subSet["i_apppush"], 0),
 			MailPush: util.IntAll(subSet["i_mailpush"]),
 			RateMode: util.IntAll(subSet["i_ratemode"]),
 			Times:    util.ObjArrToStringArr(times),