/// <summary> /// 获取新的OpenId /// </summary> /// <param name="taskId">任务标识</param> /// <param name="userInfo">用户</param> /// <returns>OpenId</returns> public string CreateOpenId(string taskId, BaseUserInfo userInfo) { string result = string.Empty; var parameter = ServiceInfo.Create(taskId, userInfo, MethodBase.GetCurrentMethod()); ServiceUtil.ProcessUserCenterWriteDb(userInfo, parameter, (dbHelper) => { BaseUserLogOnManager userLogOnManager = new BaseUserLogOnManager(userInfo); result = userLogOnManager.CreateOpenId(); }); return(result); }