Commit e9ded4b4 authored by liudong1993's avatar liudong1993

1

parent 75117d0d
......@@ -214,6 +214,7 @@ namespace Edu.Module.User
string userId = accountModel.Id + "_" + DateTime.Now.ToString("yyyyMMddHHmmssffff@") + (new Random().Next(1000, 9999));//规则生成
//获取部门信息
int wxDeptId = departmentRepository.GetEntity(accountModel.Dept_Id)?.WorkDepartId ?? 1;
wxDeptId = wxDeptId == 0 ? 1 : wxDeptId;//微信 1表示默认部门
//新增用户
var inserMember = new Senparc.Weixin.Work.AdvancedAPIs.MailList.Member.MemberCreateRequest()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment