// 添加记录 public static void RecValue(ERecordType RecType, EActionSource ActionSource, long puid = 0, long v0 = 0, params object[] args) { var sb = new StringBuilder(); var sb1 = new StringBuilder(); var sb2 = new StringBuilder(); sb.Append($"insert into {BaseServerInfo.ServerID}{SqlText.GameRecord}{(int)RecType}"); for (int i = 0; i < args.Length; i++) { sb1.Append($", v{i + 1}"); sb2.Append($", '{args[i]}'"); } sb.Append($"(RecDate, RecTime, ActionSource, Puid, v0{sb1}) values "); sb.Append($"(Now(), Now(), '{(int)ActionSource}', '{puid}', '{v0}'{sb2})"); ThreadDbMysqlSecond.AddCmd(sb.ToString()); }