|
@@ -195,7 +195,7 @@ func (this *OrgStructure) AutoLogon() error {
|
|
|
}); resp != nil && resp.Data.Id > 0 {
|
|
|
data["base_user_id"] = resp.Data.Id
|
|
|
if id := mongodb.Save("user", data); id != "" {
|
|
|
- jy.SaveUserLog(mongodb, id, openId, "wx", "pc", source, openId, "", "", util.GetIp(this.Request), this.UserAgent(), this.Site(), "")
|
|
|
+ jy.SaveUserLog(public.Mgo_Log, id, openId, "wx", "pc", source, openId, "", "", util.GetIp(this.Request), this.UserAgent(), this.Site(), "")
|
|
|
nsqPath, _ := config.Sysconfig["nsq"].(string)
|
|
|
nsq_topic, _ := config.Sysconfig["nsq_topic"].(string)
|
|
|
jy.Publish(public.Mgo_Log, nsqPath, nsq_topic, "task", id, jy.Jyweb_node2, map[string]interface{}{
|