31 lines
629 B
PHP
31 lines
629 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Controllers\Wx;
|
||
|
|
|
||
|
|
use App\BaseApp\BaseController;
|
||
|
|
use App\Service\wx\WxFeedbackService;
|
||
|
|
use Illuminate\Http\JsonResponse;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 小程序反馈
|
||
|
|
*/
|
||
|
|
class FeedbackController extends BaseController
|
||
|
|
{
|
||
|
|
protected array $exceptRoute = ['option', 'detail', 'update', 'delete'];
|
||
|
|
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
parent::__construct();
|
||
|
|
$this->service = WxFeedbackService::getInstance();
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 提交反馈
|
||
|
|
* @Method POST
|
||
|
|
*/
|
||
|
|
public function create(): JsonResponse
|
||
|
|
{
|
||
|
|
return jok($this->service->create(request()->post()), '已提交');
|
||
|
|
}
|
||
|
|
}
|