示例#1
0
        /// <summary>
        /// 获取新的OpenId
        /// </summary>
        /// <param name="taskId">任务标识</param>
        /// <param name="userInfo">用户</param>
        /// <returns>OpenId</returns>
        public string CreateOpenId(string taskId, BaseUserInfo userInfo)
        {
            var result = string.Empty;

            var parameter = ServiceInfo.Create(taskId, userInfo, MethodBase.GetCurrentMethod());

            ServiceUtil.ProcessUserCenterWriteDb(userInfo, parameter, (dbHelper) =>
            {
                var userLogonManager = new BaseUserLogonManager(userInfo);
                result = userLogonManager.CreateOpenId();
            });

            return(result);
        }