Ejemplo n.º 1
0
        /// <summary>
        /// 更新成员
        /// </summary>
        /// <param name="userid"></param>
        /// <param name="name"></param>
        /// <param name="department"></param>
        /// <param name="position"></param>
        /// <param name="mobile"></param>
        /// <param name="gender"></param>
        /// <param name="email"></param>
        /// <param name="weixinid"></param>
        /// <param name="enable"></param>
        /// <returns></returns>
        public BaseRes User_Update(string userid, string name, int[] department, string position,
                                   string mobile, int gender, string email, string weixinid, int enable)
        {
            var rel = QyAPI.User_Update(access_token, userid, name, department, position, mobile, gender, email, weixinid, enable);

            if (IsAccessTokenError(rel))
            {
                rel = QyAPI.User_Update(access_token, userid, name, department, position, mobile, gender, email, weixinid, enable);
                IsAccessTokenError(rel, false);
            }
            return(rel);
        }