mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-09 06:32:56 +08:00
Add alipay provider.
This commit is contained in:
@@ -132,3 +132,11 @@ func wrapActionResponse(affected bool) *Response {
|
||||
return &Response{Status: "ok", Msg: "", Data: "Unaffected"}
|
||||
}
|
||||
}
|
||||
|
||||
func wrapErrorResponse(err error) *Response {
|
||||
if err == nil {
|
||||
return &Response{Status: "ok", Msg: ""}
|
||||
} else {
|
||||
return &Response{Status: "error", Msg: err.Error()}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user