|
@@ -352,7 +352,7 @@ func (l *Me) MyInfo() {
|
|
|
r["entFirst"] = qutil.IntAll((*user)["i_entniche_first"]) == 0
|
|
|
phone, _ := (*user)["s_phone"].(string)
|
|
|
if public.Mysql.CountBySql(`SELECT count(DISTINCT a.id) as count from entniche_info a
|
|
|
- INNER JOIN entniche_user b on (a.id=b.ent_id)
|
|
|
+ LEFT JOIN entniche_user b on (a.id=b.ent_id)
|
|
|
where a.phone=? or b.phone=?`, phone, phone) > 0 {
|
|
|
r["hasEnt"] = true
|
|
|
}
|