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.
29 lines
648 B
29 lines
648 B
<?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);
|
|
}
|
|
|
|
}
|
|
|