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