|
@@ -44,6 +44,16 @@ func V01(ctx context.Context, params string) (reply *apis.QueryResponse, err err
|
|
//var updatedAt int64
|
|
//var updatedAt int64
|
|
db := database.DB()
|
|
db := database.DB()
|
|
|
|
|
|
|
|
+ // 存在字母
|
|
|
|
+ for _, v := range req.Owner {
|
|
|
|
+ if (v > 64 && v < 91) || (v > 96 && v < 123) {
|
|
|
|
+ res.IsMatch = -1
|
|
|
|
+ reply.Data, _ = jsoniter.MarshalToString(res)
|
|
|
|
+ return reply, nil
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 黑名单
|
|
var id int64
|
|
var id int64
|
|
err = db.Raw("select id from t_adm_name_black_list where name=?", req.Owner).Find(&id).Error
|
|
err = db.Raw("select id from t_adm_name_black_list where name=?", req.Owner).Find(&id).Error
|
|
if err == nil && id > 0 {
|
|
if err == nil && id > 0 {
|