|
@@ -476,7 +476,24 @@ func (i *Info) AppNewUerSales() {
|
|
|
"$set": m,
|
|
|
})
|
|
|
|
|
|
- if !ok {
|
|
|
+ //更新消息接收设置
|
|
|
+ msgSet := qu.ObjToMap(infoMap["msgSet"])
|
|
|
+ setMap := map[string]interface{}{}
|
|
|
+ if msgSet != nil {
|
|
|
+ for k, v := range *msgSet {
|
|
|
+ item := qu.ObjToMap(v)
|
|
|
+ if item != nil {
|
|
|
+ for key, val := range *item {
|
|
|
+ setMap[fmt.Sprintf("o_pushset.%s.%s", qu.ObjToString(k), qu.ObjToString(key))] = qu.IntAll(val)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ok2 := MQFW.UpdateById("user", userid, map[string]interface{}{
|
|
|
+ "$set": setMap,
|
|
|
+ })
|
|
|
+
|
|
|
+ if !ok && !ok2 {
|
|
|
return NewResultSales{Error_code: -1, Error_msg: "用户信息保存失败"}
|
|
|
}
|
|
|
//redis.Put("other", fmt.Sprintf(AppNewUserRegistration, userid), 1, 60*60*24*7)
|