更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-5
View File
@@ -29,7 +29,6 @@ func (c *PlatformBarkController) jsonErr(httpStatus, bizCode int, msg string) {
_ = c.ServeJSON()
}
// GetBarkInfo GET /platform/bark/info
func (c *PlatformBarkController) GetBarkInfo() {
if _, err := c.platformClaims(); err != nil {
code := identity.Status(err)
@@ -64,7 +63,6 @@ type barkEditPayload struct {
DeviceKey string `json:"device_key"`
}
// EditBarkInfo POST /platform/bark/editinfo
func (c *PlatformBarkController) EditBarkInfo() {
if _, err := c.platformClaims(); err != nil {
code := identity.Status(err)
@@ -147,7 +145,6 @@ type barkTestPayload struct {
DeviceKey string `json:"device_key"`
}
// SendTestBark POST /platform/bark/sendtest
func (c *PlatformBarkController) SendTestBark() {
if _, err := c.platformClaims(); err != nil {
code := identity.Status(err)
@@ -180,9 +177,7 @@ func (c *PlatformBarkController) SendTestBark() {
return
}
// 拼接发送 URL,注意去除多余斜杠
baseURL := strings.TrimRight(serverURL, "/")
// Bark 的格式是: base_url/device_key/title/body
testURL := fmt.Sprintf("%s/%s/测试通知/您配置的 Bark 推送服务已连接成功!", baseURL, deviceKey)
client := &http.Client{Timeout: 10 * time.Second}