Web 端数据交互与 design2 布局修复

统一门户 JSON 契约:新增 GET /templates/{id},模板/云文件/保存/打开走虚拟 key;
layer 保存弹层替代 prompt,本地 .soon 已登录后台 POST 登记;修复保存静默失败与 design2 全宽布局。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
24kycj
2026-06-09 01:20:34 +08:00
parent ebe191b06d
commit 877fd278c2
27 changed files with 1232 additions and 326 deletions
@@ -6,6 +6,7 @@ namespace Soon\Api\Controllers;
use Soon\Api\Core\Json;
use Soon\Api\Middleware\Auth;
use Soon\Api\Services\AuthService;
use Soon\Api\Services\MembershipService;
final class AuthController
{
@@ -38,7 +39,6 @@ final class AuthController
public function me(): void
{
$user = Auth::require();
unset($user['password_hash']);
Json::ok($user);
Json::ok(array_merge($user, MembershipService::membershipSummary((int)$user['id'])));
}
}