mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-12 09:03:42 +08:00
add epay
This commit is contained in:
@@ -31,6 +31,9 @@ func GetStatus(c *gin.Context) {
|
||||
"chat_link": common.ChatLink,
|
||||
"quota_per_unit": common.QuotaPerUnit,
|
||||
"display_in_currency": common.DisplayInCurrencyEnabled,
|
||||
"normal_price": common.NormalPrice,
|
||||
"stable_price": common.StablePrice,
|
||||
"base_price": common.BasePrice,
|
||||
},
|
||||
})
|
||||
return
|
||||
@@ -58,6 +61,17 @@ func GetAbout(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
func GetMidjourney(c *gin.Context) {
|
||||
common.OptionMapRWMutex.RLock()
|
||||
defer common.OptionMapRWMutex.RUnlock()
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": true,
|
||||
"message": "",
|
||||
"data": common.OptionMap["Midjourney"],
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
func GetHomePageContent(c *gin.Context) {
|
||||
common.OptionMapRWMutex.RLock()
|
||||
defer common.OptionMapRWMutex.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user