feat: 添加云端函数HTTP请求、SMTP邮件、数据库操作能力
- 添加HTTP客户端工具支持GET/POST请求 - 添加SMTP邮件发送功能 - 添加数据库操作(db.getRecords, db.deleteRecord, db.deleteRecords) - 添加订单管理云端函数(读取、接收、筛选、成功、失败) - 添加测试推送和邮件通知云端函数 - 修复云端函数编辑页面预览代码换行显示 - 云端变量数据模型重构(合并数据类型)
This commit is contained in:
@@ -730,8 +730,8 @@ func handleAppCreateVariableRecord(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if variable.DataType != "stream" {
|
||||
response.Error(c, 400, "该变量不是流水类型")
|
||||
if variable.VarType != "stream" {
|
||||
response.Error(c, 400, "该变量不是记录类型")
|
||||
return
|
||||
}
|
||||
|
||||
@@ -817,8 +817,8 @@ func handleAppGetVariableRecords(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if variable.DataType != "stream" {
|
||||
response.Error(c, 400, "该变量不是流水类型")
|
||||
if variable.VarType != "stream" {
|
||||
response.Error(c, 400, "该变量不是记录类型")
|
||||
return
|
||||
}
|
||||
|
||||
@@ -894,8 +894,8 @@ func handleAppDeleteVariableRecord(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if variable.DataType != "stream" {
|
||||
response.Error(c, 400, "该变量不是流水类型")
|
||||
if variable.VarType != "stream" {
|
||||
response.Error(c, 400, "该变量不是记录类型")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user