30 lines
708 B
PHP
30 lines
708 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller\Common;
|
|
|
|
use App\Service\Common\OssCallbackService;
|
|
use Hyperf\HttpServer\Annotation\Controller;
|
|
use Hyperf\HttpServer\Annotation\RequestMapping;
|
|
use Psr\Container\ContainerExceptionInterface;
|
|
use Psr\Container\NotFoundExceptionInterface;
|
|
use RedisException;
|
|
|
|
#[Controller]
|
|
class ThirdCallbackController
|
|
{
|
|
/**
|
|
* oss回调处理
|
|
* @return array
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
* @throws RedisException
|
|
*/
|
|
#[RequestMapping(path: "/common/oss/ossCallBack", methods: "post")]
|
|
public function callback()
|
|
{
|
|
return (new OssCallbackService)->process();
|
|
}
|
|
}
|