|
|
|
@ -356,7 +356,14 @@ func GetIdentityIdByPersonId(personId string) int64 {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*解除绑定第三方授权*/
|
|
|
|
|
func UnbindAuthorization(personId string){
|
|
|
|
|
sql:=`update t_sys_loginperson set wx_open_id='' where person_id=?`
|
|
|
|
|
db.SQL(sql,personId).Execute()
|
|
|
|
|
func UnbindAuthorization(personId string) {
|
|
|
|
|
sql := `update t_sys_loginperson set wx_open_id='' where person_id=?`
|
|
|
|
|
db.SQL(sql, personId).Execute()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取已绑定的第三方授权
|
|
|
|
|
func GetBindAuthorization(personId string) ([]map[string]interface{}, error) {
|
|
|
|
|
sql := `select wx_open_id from t_sys_loginperson where person_id=?`
|
|
|
|
|
list, err := db.SQL(sql, personId).Query().List()
|
|
|
|
|
return list, err
|
|
|
|
|
}
|
|
|
|
|