- if entInfo := public.Mysql.SelectBySql(`SELECT status,isNew FROM entniche_info WHERE id IN (SELECT ent_id FROM entniche_user where phone = ? and power =1)`, phone); len((*entInfo)) > 0 {
- for _, v := range (*entInfo) {
- if util.IntAll(v["status"]) == 1 && util.IntAll(v["isNew"]) == 1{
+ if entInfo := db.Mysql.SelectBySql(`SELECT status,isNew FROM entniche_info WHERE id IN (SELECT ent_id FROM entniche_user where phone = ? and power =1)`, phone); len((*entInfo)) > 0 {
+ for _, v := range *entInfo {
+ if util.IntAll(v["status"]) == 1 && util.IntAll(v["isNew"]) == 1{