feat(pay): switch checkout counter to SPA redirect + JSON API

- redirect `/pay/checkout-counter/:trade_id` to `/cashier/:trade_id`
- add `/pay/checkout-counter-resp/:trade_id` for checkout JSON payload
- remove embedded `static` release and keep `www` as the web bundle source
- regenerate PWA/www assets and move chain icons to `/www/images/chains`
This commit is contained in:
line-6000
2026-04-29 00:34:58 +08:00
parent 785a162f88
commit 9c533a7ff8
199 changed files with 242 additions and 1810 deletions
-9
View File
@@ -12,9 +12,6 @@ import (
"github.com/gookit/color"
)
//go:embed all:static
var staticDir embed.FS
//go:embed all:www
var wwwDir embed.FS
@@ -92,12 +89,6 @@ func releaseStatic(fs embed.FS, target string) (string, error) {
}
func main() {
staticPath, err := releaseStatic(staticDir, "static")
if err != nil {
panic(err)
}
fmt.Println("static released to:", staticPath)
wwwwPath, err := releaseStatic(wwwDir, "www")
if err != nil {
panic(err)