//public static int CreateUserConnectInfo(UserConnect userConnectInfo) //{ // return UserConnect.Insert(userConnectInfo); //} public static int UpdateUserConnectInfo(UserConnect userConnectInfo) { if (userConnectInfo.OpenId.Length < 32 || userConnectInfo.Token.Length < 16 || userConnectInfo.Secret.Length < 16) { return(-1); } return(UserConnect.Update(userConnectInfo)); }