luwenna 3 vuotta sitten
vanhempi
commit
37299e3958
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/jfw/modules/weixin/src/wx/wx.go

+ 3 - 0
src/jfw/modules/weixin/src/wx/wx.go

@@ -618,6 +618,9 @@ func saveUser(u *UserInfo, source, pre, RSource, CSource string) (bool, string,
 				set["o_jy.i_ratemode"] = 2
 			}
 			update["$set"] = set
+			update["$unset"] = map[string]interface{}{
+				"i_isnewwx": "",
+			}
 			tools.MQFW.Update("user", &map[string]interface{}{
 				"_id": tuser["_id"],
 			}, &update, false, false)