钉钉消息提醒问题

                TPUserParam tPUserParam = new TPUserParam();
                TPUserInfo tPUserInfo = new TPUserInfo();
                string tPUserID = null;
                ITPUserService tPUserService = HSFService.Proxy<ITPUserService>();
                tPUserParam.UserId = userID;
                tPUserParam.TPType = 9;
                tPUserParam.TeldAppID = "22A41EAD-221D-4A77-8DAF-3878EF1462E2";
                tPUserInfo = tPUserService.NGetTPUser(tPUserParam);
                if (tPUserInfo != null)
                {
                    tPUserID = tPUserInfo.TPUserID;
                }
                //tPUserID = "gaojf@teld.cn";
                //wOLog.WriteLog(tPUserID, "Wotplog");


                if (tPUserID != null)
                {
                    service.SendNewUserMessageAsync(DDHelper.CreateCommonUser(tPUserID), null, message, context);
                }

1.TPUserParam 调用张春亮接口,获取第三方账号信息(三个参数:userID,TPType = 9,TeldAppID = "22A41EAD-221D-4A77-8DAF-3878EF1462E2"。),返回来钉钉消息账号ID。

2.把钉钉账号ID传给范兵远的接口SendNewUserMessageAsync(如tPUserID)

原文地址:https://www.cnblogs.com/gao109214/p/11041163.html