修改默认头像

pull/23/head
taoshihan1991 4 years ago
parent 34437a72a9
commit 9dbc202096

@ -96,6 +96,9 @@ func SendAppGetuiPush(kefu string, title, content string) {
}
func sendPushApi(token string, req string) int {
appid := models.FindConfig("GetuiAppID")
if appid == "" {
return 0
}
url := "https://restapi.getui.com/v2/" + appid + "/push/single/cid"
headers := make(map[string]string)
headers["Content-Type"] = "application/json;charset=utf-8"
@ -117,6 +120,9 @@ func getGetuiToken() string {
appkey := models.FindConfig("GetuiAppKey")
//appsecret := models.FindConfig("GetuiAppSecret")
appmastersecret := models.FindConfig("GetuiMasterSecret")
if appid == "" {
return ""
}
type req struct {
Sign string `json:"sign"`
Timestamp string `json:"timestamp"`

@ -93,6 +93,15 @@
border:1px solid #cccccc;
float: left;
}
.flyAvatar{
width: 30px;
height: 30px;
border-radius: 50%;
display: inline-block;
border:1px solid #cccccc;
float: left;
margin-right: 5px;
}
.launchButtonNotice .flyUsername{
font-weight: bold;
float: left;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

@ -10,6 +10,7 @@ GOFLY.titleTimer=0;
GOFLY.titleNum=0;
GOFLY.noticeTimer=null;
GOFLY.originTitle=document.title;
GOFLY.chatPageTitle="GOFLY";
GOFLY.init=function(config){
var _this=this;
if(typeof config=="undefined"){
@ -108,7 +109,7 @@ GOFLY.clickBtn=function (){
GOFLY.getNotice=function(){
var _this=this;
$.get(this.GOFLY_URL+"/notice?kefu_id="+this.GOFLY_KEFU_ID,function(res) {
//debugger;
_this.chatPageTitle="<img style='margin-top: 5px;' src='"+res.result.avatar+"' class='flyAvatar'>"+res.result.username;
if (res.result.welcome != null) {
var msg = res.result.welcome;
var len=msg.length;
@ -186,7 +187,7 @@ GOFLY.layerOpen=function (){
var _this=this;
layer.open({
type: 2,
title: this.GOFLY_BTN_TEXT,
title: this.chatPageTitle,
closeBtn: 1, //不显示关闭按钮
shade: 0,
area: ['520px', '530px'],

Loading…
Cancel
Save