|
@@ -48,10 +48,10 @@ func (a *Action) Bind() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
//绑定手机号
|
|
//绑定手机号
|
|
- if bindOK, appid := VarCurrentUser.BindPhone(userId, phone); bindOK {
|
|
|
|
- if appid == 2 {
|
|
|
|
- go jy.AutoMerge(Mysql, MQFW, a.Session())
|
|
|
|
- }
|
|
|
|
|
|
+ if bindOK, _ := VarCurrentUser.BindPhone(userId, phone); bindOK {
|
|
|
|
+ //if appid == 2 {
|
|
|
|
+ // go jy.AutoMerge(Mysql, MQFW, a.Session())
|
|
|
|
+ //}
|
|
status = 1 //绑定成功
|
|
status = 1 //绑定成功
|
|
mylist := Mysql.SelectBySql(`SELECT id,name from entniche_info
|
|
mylist := Mysql.SelectBySql(`SELECT id,name from entniche_info
|
|
where phone=? and status=0 order by convert(name using gbk) COLLATE gbk_chinese_ci asc`, phone)
|
|
where phone=? and status=0 order by convert(name using gbk) COLLATE gbk_chinese_ci asc`, phone)
|
|
@@ -207,7 +207,7 @@ func (a *Action) Replace(operation string) {
|
|
status = 1
|
|
status = 1
|
|
}
|
|
}
|
|
} else if operation == "me" { //个人
|
|
} else if operation == "me" { //个人
|
|
- replace_status, appid := VarCurrentUser.ReplacePhone(userId, newphone, ent_id)
|
|
|
|
|
|
+ replace_status, _ := VarCurrentUser.ReplacePhone(userId, newphone, ent_id)
|
|
if replace_status == -1 {
|
|
if replace_status == -1 {
|
|
a.ServeJson(Result{Data: M{"status": -3}, Error_msg: "绑定失败,该手机号已绑定"})
|
|
a.ServeJson(Result{Data: M{"status": -3}, Error_msg: "绑定失败,该手机号已绑定"})
|
|
return
|
|
return
|
|
@@ -215,9 +215,9 @@ func (a *Action) Replace(operation string) {
|
|
a.ServeJson(Result{Data: M{"status": -4}, Error_msg: "绑定失败,该手机号已存在"})
|
|
a.ServeJson(Result{Data: M{"status": -4}, Error_msg: "绑定失败,该手机号已存在"})
|
|
return
|
|
return
|
|
} else if replace_status == 1 {
|
|
} else if replace_status == 1 {
|
|
- if appid == 2 {
|
|
|
|
- go jy.AutoMerge(Mysql, MQFW, a.Session())
|
|
|
|
- }
|
|
|
|
|
|
+ //if appid == 2 {
|
|
|
|
+ // go jy.AutoMerge(Mysql, MQFW, a.Session())
|
|
|
|
+ //}
|
|
status = 1
|
|
status = 1
|
|
}
|
|
}
|
|
}
|
|
}
|