留学万象
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lxwx/application/api/controller/AppUrl.php

30 lines
648 B

2 years ago
<?php
namespace app\api\controller;
use app\common\controller\Api;
use app\common\model\Config;
/**
* APP下载地址
*/
class AppUrl extends Api
{
protected $noNeedLogin = '*';
protected $noNeedRight = '*';
/**
*下载链接
*/
public function index()
{
$androidUrl = Config::get(['name'=>'androidUrl']);
$iosUrl = Config::get(['name'=>'iosUrl']);
$androidUrl_value = $androidUrl ? $androidUrl['value']:'';
$iosUrl_value = $iosUrl ? $iosUrl['value']:'';
$urls = ['android'=>$androidUrl_value,'ios'=>$iosUrl_value];
$this->success('返回成功', $urls);
}
}