diff --git a/module/common/model.php b/module/common/model.php index 482d9e1a88..79e9211411 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1483,12 +1483,11 @@ class commonModel extends model global $config, $lang; if(isset($config->xxserver->installed) and $config->xuanxuan->turnon) { - $appQrcode = extension_loaded('gd') ? helper::createLink('misc', 'appQrcode') : "{$config->webRoot}theme/default/images/main/mobile_qrcode.png"; echo "'; diff --git a/module/misc/control.php b/module/misc/control.php index 9ffc3aef99..2681f0fbce 100644 --- a/module/misc/control.php +++ b/module/misc/control.php @@ -338,25 +338,4 @@ class misc extends control if(strpos(",$accounts,", $this->app->user->account) === false) $accounts .= ',' . $this->app->user->account; $this->loadModel('setting')->setItem('system.common.global.skip' . ucfirst($feature), $accounts); } - - /** - * Create qrcode for app download. - * - * @access public - * @return void - */ - public function appQrcode() - { - if(extension_loaded('gd')) - { - $this->app->loadClass('qrcode'); - $downloadUrl = 'https://www.zentao.net/page/zentaoapp.html?zentao=' . $this->config->version; - QRcode::png($downloadUrl, false, 2, 4, 2); - } - else - { - $this->view->noGDLib = sprintf($this->lang->misc->noGDLib, ''); - return print($this->display('misc', 'qrCode')); - } - } } diff --git a/www/static/images/app-qrcode.png b/www/static/images/app-qrcode.png new file mode 100644 index 0000000000..12bdae12c4 Binary files /dev/null and b/www/static/images/app-qrcode.png differ diff --git a/www/theme/default/style.css b/www/theme/default/style.css index edfaa580c1..bf64217fe7 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -114,7 +114,7 @@ body.xxc-embed.m-productplan-view,body.xxc-embed.m-bug-browse,body.xxc-embed.m-p .xxc-embed .modal-body {min-height: 500px!important;} #downloadMobile .dropdown-menu {top: -31px !important; min-width: 130px; padding: 0;} -#downloadMobile .dropdown-menu .mobile-qrcode {padding: 15px 5px;} +#downloadMobile .dropdown-menu .mobile-qrcode {padding: 10px 0px;} .radio-text-divider {width: 1px; height: 13px; display: inline-block; margin: -2px 9px 0; background: #D9D9D9; vertical-align: middle;} .input-divider {margin: 0 4px;}