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.
26 lines
566 B
26 lines
566 B
<?php
|
|
namespace app\api\controller\stadium;
|
|
|
|
|
|
use app\api\controller\Controller;
|
|
|
|
class Param extends Controller
|
|
{
|
|
|
|
public function paramInfo()
|
|
{
|
|
$config = config('api_config');
|
|
$returnArr = [
|
|
'host' => $config['host'],
|
|
'port' => $config['port'],
|
|
'appkey' => $config['cid'],
|
|
'secret' => $config['cskey']
|
|
];
|
|
|
|
$base64 = base64_encode(json_encode($returnArr)) . "==";
|
|
$base64Two = base64_encode($base64);
|
|
|
|
return $this->renderSuccess(compact('base64Two'));
|
|
}
|
|
|
|
}
|