diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-03-30 16:00:19 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-03-30 16:00:19 +0800 |
| commit | 255b61904f77fbe1570a4bc3f76141a67865613c (patch) | |
| tree | 5fc8badf00822936463483825266ca52d19007c9 /post.php | |
| parent | 8d9288d12b5e79e6197137581d20f41e9bf91921 (diff) | |
📄 Add: 可自定义二维码 API
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -23,7 +23,15 @@ $this->need('includes/header.php'); <?php $this->content(); ?> </div> <div class="post-qr"> - <img src="http://qr.topscan.com/api.php?text=<?php echo $this->permalink; ?>"> + <img src="<?php + if($this->options->postQR==''){ + echo 'https://api.qrserver.com/v1/create-qr-code/?size=230x230&data='; + echo $this->permalink; + }else{ + echo $this->options->postQR; + echo $this->permalink; + } + ?>"> </div> <div class="post-footer"><!-- 文章页脚 --> <div class="post-share">分享至: |
