1
This commit is contained in:
@@ -53,7 +53,7 @@ type Apps struct {
|
|||||||
CreatedAt *time.Time `json:"created_at" db:"created_at"`
|
CreatedAt *time.Time `json:"created_at" db:"created_at"`
|
||||||
UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
|
UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
|
||||||
LastOperator string `json:"last_operator" db:"last_operator"`
|
LastOperator string `json:"last_operator" db:"last_operator"`
|
||||||
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
|
DeletedAt time.Time `json:"deleted_at" db:"deleted_at"`
|
||||||
UserID string `orm:"column(user_id)" json:"user_id" db:"user_id"` //属于哪个账号的
|
UserID string `orm:"column(user_id)" json:"user_id" db:"user_id"` //属于哪个账号的
|
||||||
Name string `json:"name"` //应用名称
|
Name string `json:"name"` //应用名称
|
||||||
Type int `json:"type"` //应用类型
|
Type int `json:"type"` //应用类型
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ func (c *ApiController) CallOpenAPI() {
|
|||||||
goto end
|
goto end
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Debugf("=====app %s", utils.Format4Output(app, false))
|
globals.SugarLogger.Debugf("=====app %s", utils.Format4Output(app, false))
|
||||||
if app.Status != model.UserStatusNormal || app.DeletedAt != &utils.DefaultTimeValue {
|
if app.Status != model.UserStatusNormal || app.DeletedAt != utils.DefaultTimeValue {
|
||||||
errCode = model.ErrCodeGeneralFailed
|
errCode = model.ErrCodeGeneralFailed
|
||||||
err = fmt.Errorf("很抱歉您的应用已失效!")
|
err = fmt.Errorf("很抱歉您的应用已失效!")
|
||||||
goto end
|
goto end
|
||||||
|
|||||||
Reference in New Issue
Block a user