Prechádzať zdrojové kódy

Merge branch 'dev2.9.0' of http://39.105.157.10:10080/qmx/jy into dev2.9.0

zhangxinlei1996 5 rokov pred
rodič
commit
67de55573d

+ 1 - 1
src/jfw/modules/app/src/app/front/me.go

@@ -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
 			}

+ 1 - 1
src/jfw/modules/entniche/src/service/service.go

@@ -62,7 +62,7 @@ func (a *Action) Whetherbuy() {
 	userId, _ := a.GetSession("userId").(string)
 	phone := VarCurrentUser.Phone(userId)
 	status := 0
-	if Mysql.CountBySql("select count(1) as count from entniche_user where phone=?", phone) > 0 {
+	if Mysql.CountBySql("select count(1) as count from entniche_info where phone=?", phone) > 0 {
 		status = 1
 	}
 	a.ServeJson(Result{Data: M{"status": status}})