feat : ali
This commit is contained in:
29
app/Controller/Common/ThirdCallbackController.php
Normal file
29
app/Controller/Common/ThirdCallbackController.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user