master
huanghai 5 years ago
parent c8a4e45abd
commit 296aaf8057

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

Loading…
Cancel
Save