初始化

缺陷:主题配色需要优化整体的同风格
This commit is contained in:
2026-08-14 23:21:21 +08:00
parent 6e2769c528
commit bcf54c2727
152 changed files with 13521 additions and 141 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Http\Controllers\Wx;
use App\BaseApp\BaseController;
use App\Service\wx\WxUploadService;
use Illuminate\Http\JsonResponse;
/**
* 小程序上传(转账凭证等)。
*
* nl.wx 中间件鉴权(小程序登录态),路径 wx/upload/image。
* 仅暴露 image 方法,避免反射注册把 BaseController create/update/delete 挂成路由。
*/
class WxUploadController extends BaseController
{
protected array $exceptRoute = ['option', 'create', 'update', 'delete'];
public function __construct()
{
parent::__construct();
$this->service = WxUploadService::getInstance();
}
/**
* 图片上传(转账凭证)
* @Method POST
*/
public function image(): JsonResponse
{
$file = request()->file('file');
return jok(
$this->service->uploadImage($file),
'上传成功'
);
}
}