fix statistics
This commit is contained in:
parent
280de58880
commit
e97e531623
|
@ -234,7 +234,7 @@ func insertData(db *gorm.DB, tableName string, header []string, rows [][]string)
|
|||
|
||||
insertSQL := fmt.Sprintf("INSERT INTO `%s` (%s) VALUES (%s)", tableName, "`"+strings.Join(header, "`,`")+"`", placeholders)
|
||||
|
||||
for _, row := range rows {
|
||||
for _, row := range rows[1:] {
|
||||
// 确保每行数据长度和表头一致
|
||||
if len(row) < len(header) {
|
||||
for len(row) < len(header) {
|
||||
|
|
|
@ -112,7 +112,6 @@ func init() {
|
|||
etcd.Register(etcd.ETCDKEY_PigBankProp, webapi.GamePigBankPropConfig{}, platformConfigEvent)
|
||||
// 红包配置
|
||||
etcd.Register(etcd.ETCDKEY_REDPACKET, webapi.RedPacketConfig{}, platformConfigEvent)
|
||||
|
||||
}
|
||||
|
||||
func platformConfigEvent(ctx context.Context, completeKey string, isInit bool, event *clientv3.Event, data interface{}) {
|
||||
|
|
Loading…
Reference in New Issue