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)
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 = "操作成功!"

Loading…
Cancel
Save