Parcourir la source

update

master
shenjiachi il y a 1 semaine
Parent
révision
de9f82dfcf
2 fichiers modifiés avec 0 ajouts et 68 suppressions
  1. +0
    -17
      consume/egg_canal_invite_user_nums_consume_test.go
  2. +0
    -51
      consume/egg_canal_person_add_activity_value_consume_test.go

+ 0
- 17
consume/egg_canal_invite_user_nums_consume_test.go Voir le fichier

@@ -1,17 +0,0 @@
package consume

import (
rule "code.fnuoos.com/EggPlanet/egg_system_rules.git/rule/egg_energy"
"code.fnuoos.com/go_rely_warehouse/zyos_go_es.git/es"
"fmt"
"testing"
)

func TestExistOrDefaultUserEggScore(t *testing.T) {
es.Init("http://123.57.140.192:9200/", "elastic", "fnuo123")
err := rule.ExistOrDefaultUserEggScore(2)
if err != nil {
fmt.Println(err)
return
}
}

+ 0
- 51
consume/egg_canal_person_add_activity_value_consume_test.go Voir le fichier

@@ -1,51 +0,0 @@
package consume

import (
"applet/app/cfg"
"applet/app/db"
"applet/consume/md"
"code.fnuoos.com/go_rely_warehouse/zyos_go_es.git/es"
"testing"
)

func TestHandleEggCanalPersonAddActivityValueConsume(t *testing.T) {
dbcfg := cfg.DBCfg{
Host: "119.23.182.117:3306",
Name: "egg",
User: "root",
Psw: "Fnuo123com@",
ShowLog: true,
MaxLifetime: 30,
MaxOpenConns: 100,
MaxIdleConns: 100,
Path: "tmp/%s.log",
}
db.InitDB(&dbcfg)
es.Init("http://123.57.140.192:9200/", "elastic", "fnuo123")
data := md.CanalUserVirtualCoinFlow{
Id: "",
Uid: "36",
CoinId: "3",
Direction: "1",
Title: "",
Amount: "10",
BeforeAmount: "",
AfterAmount: "",
SysFee: "",
TransferType: "",
}

m := md.CanalUserVirtualCoinFlowMessage[md.CanalUserVirtualCoinFlow]{
Data: []md.CanalUserVirtualCoinFlow{data},
Database: "",
ES: 0,
ID: 0,
IsDdl: false,
Old: []md.CanalUserVirtualCoinFlow{},
PkNames: []string{},
Table: "",
TS: 0,
Type: "INSERT",
}
HandleEggCanalPersonAddActivityValueConsume(&m)
}

Chargement…
Annuler
Enregistrer