Skip to content

Commit

Permalink
修复二维码失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed Jan 11, 2021
1 parent d3425d2 commit d04980a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion functions/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.54-20201025
1.55-20210111
4 changes: 2 additions & 2 deletions static/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ function qrcode(name,url){
url = protocol + '//' + host + '/' + url;

//二维码接口
qrcodeapi = "https://sapi.k780.com/?app=qr.get&level=L&size=5&data=" + url;
var qrimg = "<center><img src = '" + qrcodeapi + "' /></center>";
qrcodeapi = "https://qr.png.pub/v1/?text=" + url;
var qrimg = "<center class = 'qrcode'><img src = '" + qrcodeapi + "' /></center>";
layer.open({
type: 1,
area: '230px',
Expand Down
5 changes: 4 additions & 1 deletion static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,7 @@
display: none;
}
}
/*ad css end*/
/*ad css end*/
.qrcode img{
max-width:210px;
}

3 comments on commit d04980a

@amilys
Copy link

@amilys amilys commented on d04980a Feb 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@helloxz
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

并没有失效呀,测试地址:https://qr.png.pub/v1/?text=https://www.baidu.com/

@amilys
Copy link

@amilys amilys commented on d04980a Feb 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可能是我网络问题打不开

Please sign in to comment.