CommonController.php 565 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Http\Controllers\AdminApi;
  3. use App\Http\Controllers\AdminController;
  4. use App\Servers\Common\CommonServer;
  5. class CommonController extends AdminController
  6. {
  7. /**
  8. * 获取阿里云临时权限
  9. * @return \Illuminate\Http\JsonResponse
  10. */
  11. function getAliSts()
  12. {
  13. $ret = CommonServer::creatServer()->getAliSts();
  14. if (empty($ret['code'])) {
  15. return $this->apiResponseError($ret['msg']);
  16. } else {
  17. return $this->apiResponseSuccess($ret['msg'], $ret['data']);
  18. }
  19. }
  20. }