getAuthInfo()); } /** * 设置 授权信息 * @description 设置 授权信息 */ public function setAuthorize() { $data = $this->request->params([ [ 'auth_code', '' ], [ 'auth_secret', '' ] ]); $this->validate($data, 'app\validate\niucloud\Module.set'); return success("SUCCESS", ( new NiucloudService() )->setAuthorize($data)); } /** * 获取 授权信息 * @description 获取 授权信息 */ public function getAuthorize() { return success(( new NiucloudService() )->getAuthorize()); } /** * 获取框架最新版本 * @description 获取框架最新版本 * @return Response * @throws \GuzzleHttp\Exception\GuzzleException */ public function getFrameworkLastVersion() { return success(data: ( new NiucloudService() )->getFrameworkLastVersion()); } /** * 获取框架最新版本 * @description 获取框架最新版本 * @return Response * @throws \GuzzleHttp\Exception\GuzzleException */ public function getFrameworkVersionList() { return success(data: ( new NiucloudService() )->getFrameworkVersionList()); } /** * 申请体验 * @description 申请体验 * @return Response */ public function applyExperience() { return success(( new NiucloudService() )->applyExperience()); } /** * 获取应用/插件的版本更新记录 * @description 获取应用/插件的版本更新记录 * @return Response */ public function getAppVersionList() { $data = $this->request->params([ [ 'app_key', '' ], ]); return success(data: ( new NiucloudService() )->getAppVersionList($data[ 'app_key' ])); } }