3 changed files with 46 additions and 5 deletions
@ -0,0 +1,26 @@ |
|||||
|
<?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')); |
||||
|
} |
||||
|
|
||||
|
} |
||||
Loading…
Reference in new issue