aa
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
|
"github.com/astaxie/beego/client/orm"
|
||||||
"github.com/astaxie/beego/server/web"
|
"github.com/astaxie/beego/server/web"
|
||||||
"net/url"
|
"net/url"
|
||||||
"reflect"
|
"reflect"
|
||||||
@@ -117,6 +118,9 @@ func (c *ApiController) CallOpenAPI() {
|
|||||||
//判断app_id和sign匹配begin ,sign = app_id + app_key + timestamp的MD5加密
|
//判断app_id和sign匹配begin ,sign = app_id + app_key + timestamp的MD5加密
|
||||||
app.ID = appID
|
app.ID = appID
|
||||||
if err = dao.GetEntity(db, app); err != nil {
|
if err = dao.GetEntity(db, app); err != nil {
|
||||||
|
if err == orm.ErrNoRows {
|
||||||
|
err = fmt.Errorf("未查询到该应用!app_id: %v", appID)
|
||||||
|
}
|
||||||
goto end
|
goto end
|
||||||
} else {
|
} else {
|
||||||
if app.Status != model.UserStatusNormal {
|
if app.Status != model.UserStatusNormal {
|
||||||
|
|||||||
Reference in New Issue
Block a user