SchoolPhysicalExamination/application/code/controller/Qrcode.php

36 lines
921 B
PHP
Raw Normal View History

2024-12-07 18:56:07 +08:00
<?php
namespace app\code\controller;
use think\Controller;
use think\Db;
use think\Cache;
use think\Log;
class Qrcode extends Base{
public function ordinary_code(){
// $num = Db::table('app_version_log')->order('id desc')->find();
2025-01-22 12:31:08 +08:00
// echo '你好,这里仅仅是个展示页面-配合小白快乐成长&宠物小白使用';
2024-12-07 18:56:07 +08:00
// echo '<br><a href="'.$num['download_url'].'">点击下载</a>';
// $url = Db::table('app_version_log')->order('id desc')->find();
// $this->assign([
// 'url' => $url['download_url'],
// ]);
2025-01-22 12:31:08 +08:00
return $this->fetch();
2024-12-07 18:56:07 +08:00
}
public function bluetooth_code(){
2025-01-22 12:31:08 +08:00
$url = Db::table('app_version_log')->order('id desc')->find();
$this->assign([
2024-12-07 18:56:07 +08:00
2025-01-22 12:31:08 +08:00
'url' => $url['download_url'],
]);
return $this->fetch();
2024-12-07 18:56:07 +08:00
}
}