Skip to content

Commit 68d9751

Browse files
authored
Merge pull request #1966 from QuantumNous/revert-1952-main
Revert "fix(topup): add currency symbol to amounts in RechargeCard"
2 parents 5d33ec8 + 3473329 commit 68d9751

File tree

13 files changed

+2
-10203
lines changed

13 files changed

+2
-10203
lines changed

controller/misc.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -147,28 +147,6 @@ func GetAbout(c *gin.Context) {
147147
return
148148
}
149149

150-
func GetUserAgreement(c *gin.Context) {
151-
common.OptionMapRWMutex.RLock()
152-
defer common.OptionMapRWMutex.RUnlock()
153-
c.JSON(http.StatusOK, gin.H{
154-
"success": true,
155-
"message": "",
156-
"data": common.OptionMap["UserAgreement"],
157-
})
158-
return
159-
}
160-
161-
func GetPrivacyPolicy(c *gin.Context) {
162-
common.OptionMapRWMutex.RLock()
163-
defer common.OptionMapRWMutex.RUnlock()
164-
c.JSON(http.StatusOK, gin.H{
165-
"success": true,
166-
"message": "",
167-
"data": common.OptionMap["PrivacyPolicy"],
168-
})
169-
return
170-
}
171-
172150
func GetMidjourney(c *gin.Context) {
173151
common.OptionMapRWMutex.RLock()
174152
defer common.OptionMapRWMutex.RUnlock()

model/option.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ func InitOptionMap() {
6161
common.OptionMap["SMTPToken"] = ""
6262
common.OptionMap["SMTPSSLEnabled"] = strconv.FormatBool(common.SMTPSSLEnabled)
6363
common.OptionMap["Notice"] = ""
64-
common.OptionMap["UserAgreement"] = ""
65-
common.OptionMap["PrivacyPolicy"] = ""
6664
common.OptionMap["About"] = ""
6765
common.OptionMap["HomePageContent"] = ""
6866
common.OptionMap["Footer"] = common.Footer

router/api-router.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ func SetApiRouter(router *gin.Engine) {
2020
apiRouter.GET("/models", middleware.UserAuth(), controller.DashboardListModels)
2121
apiRouter.GET("/status/test", middleware.AdminAuth(), controller.TestStatus)
2222
apiRouter.GET("/notice", controller.GetNotice)
23-
apiRouter.GET("/user-agreement", controller.GetUserAgreement)
24-
apiRouter.GET("/privacy-policy", controller.GetPrivacyPolicy)
2523
apiRouter.GET("/about", controller.GetAbout)
2624
//apiRouter.GET("/midjourney", controller.GetMidjourney)
2725
apiRouter.GET("/home_page_content", controller.GetHomePageContent)

0 commit comments

Comments
 (0)