|
@@ -5,6 +5,7 @@ import (
|
|
|
"fmt"
|
|
|
"jfw/config"
|
|
|
"jfw/public"
|
|
|
+ "log"
|
|
|
qutil "qfw/util"
|
|
|
"qfw/util/jy"
|
|
|
"qfw/util/redis"
|
|
@@ -323,9 +324,9 @@ func (l *Me) MyInfo() {
|
|
|
"userType": "free",
|
|
|
}
|
|
|
userId, _ := l.GetSession("userId").(string)
|
|
|
- fmt.Println("1223312",userId)
|
|
|
+ fmt.Println("1223312", userId)
|
|
|
user, ok := mongodb.FindById("user", userId, `{"s_phone":1,"s_m_phone":1,"o_jy":1,"i_vip_status":1,"l_vip_endtime":1,"o_vipjy":1,"i_vip_subtips":1,"i_entniche_first":1}`)
|
|
|
- fmt.Println("1223312",(*user)["s_phone"].(string),(*user)["s_m_phone"].(string))
|
|
|
+ fmt.Println("1223312", (*user)["s_phone"].(string), (*user)["s_m_phone"].(string))
|
|
|
if ok && user != nil {
|
|
|
isExpire := -1
|
|
|
isPassCount := false
|
|
@@ -361,7 +362,7 @@ func (l *Me) MyInfo() {
|
|
|
hasKeyFlag = len(a_key) > 0
|
|
|
}
|
|
|
}
|
|
|
- fmt.Println("1223312",(*user)["s_phone"].(string),(*user)["s_m_phone"].(string))
|
|
|
+ fmt.Println("1223312", (*user)["s_phone"].(string), (*user)["s_m_phone"].(string))
|
|
|
//商机管理处理
|
|
|
phone := ""
|
|
|
if s_phone, _ := (*user)["s_phone"].(string); s_phone != "" {
|
|
@@ -372,11 +373,11 @@ func (l *Me) MyInfo() {
|
|
|
isEnt := false
|
|
|
if phone != "" {
|
|
|
//已购买企业未过期
|
|
|
- log.Println("SELECT status FROM entniche_info WHERE id IN (SELECT ent_id FROM entniche_user where phone = ? and power =1",phone)
|
|
|
+ log.Println("SELECT status FROM entniche_info WHERE id IN (SELECT ent_id FROM entniche_user where phone = ? and power =1", phone)
|
|
|
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) {
|
|
|
+ for _, v := range *entInfo {
|
|
|
//&& qutil.IntAll(v["isNew"]
|
|
|
- if qutil.IntAll(v["status"]) == 1 {
|
|
|
+ if qutil.IntAll(v["status"]) == 1 {
|
|
|
isEnt = true
|
|
|
break
|
|
|
}
|