接口修改14

This commit is contained in:
mkm 2023-02-27 17:14:21 +08:00
parent 135e40382d
commit 02bdb10200

View File

@ -44,11 +44,37 @@ class Index extends BaseController
public function main()
{
if ($this->adminInfo['group_access']==4){
$street_id=Db::table('fa_szxc_information_useraddress')->where('admin_id',$this->adminInfo['id'])->value('street_id');
if ($this->adminInfo['group_access']==4){
$urls="http://zhen.lihaink.cn?street_id=$street_id";
return <<<EOT
<div id="your-element-selector" style="height: 100%">
<a href="http://localhost:8082?street_id=$street_id" target="_blank" style="font-size: 100px;
<a href="$urls" target="_blank" style="font-size: 100px;
color: aliceblue;
display: block;
text-align: center;
text-decoration:none;
top: 40%;">跳转大屏</a>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@0.5.24/dist/vanta.waves.min.js"></script>
<script>
VANTA.WAVES({
el: "#your-element-selector",
mouseControls: true,
touchControls: true,
gyroControls: false,
scale: 1.00,
scaleMobile: 1.00
})
</script>
EOT;
}elseif($this->adminInfo['group_access']==5){
$urls="http://zhenqiye.lihaink.cn?street_id=$street_id";
return <<<EOT
<div id="your-element-selector" style="height: 100%">
<a href="$urls" target="_blank" style="font-size: 100px;
color: aliceblue;
display: block;
text-align: center;