|
|
|
@ -367,7 +367,7 @@ func (s *Rpc) GetBindAuthorization(ctx context.Context, in *SysLoginpersonProto.
|
|
|
|
|
wxOpenId := list[0]["wx_open_id"].(string)
|
|
|
|
|
|
|
|
|
|
if len(wxOpenId) > 0 {
|
|
|
|
|
reply.List = "[{\"wx\":\"" + wxOpenId + "\"}]"
|
|
|
|
|
reply.List = "[\"wx\"]"
|
|
|
|
|
} else {
|
|
|
|
|
reply.List = "[]"
|
|
|
|
|
}
|
|
|
|
@ -387,7 +387,7 @@ func (s *Rpc) UnbindAuthorization(ctx context.Context, in *SysLoginpersonProto.U
|
|
|
|
|
//rpc响应
|
|
|
|
|
var reply SysLoginpersonProto.Reply
|
|
|
|
|
//微信
|
|
|
|
|
if in.TypeName=="wx"{
|
|
|
|
|
if in.TypeName == "wx" {
|
|
|
|
|
SysLoginpersonDao.UnbindAuthorization(in.PersonId)
|
|
|
|
|
}
|
|
|
|
|
reply.Message = "操作成功!"
|
|
|
|
|