Skip to content

Commit fddbfd2

Browse files
committed
优化投资关联提示
1 parent 8021e5e commit fddbfd2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runner/enscan.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func getInfoById(pid string, searchList []string, job _interface.ENScan) (enInfo
5252
for _, sk := range ds {
5353
enSk := enMap[sk].Field
5454
pidName := enSk[len(enSk)-2]
55+
etNameJ := enSk[0]
5556
scaleName := enSk[3]
5657
association := enMap[sk].Name
5758
if len(enInfo[sk]) == 0 {
@@ -71,13 +72,14 @@ func getInfoById(pid string, searchList []string, job _interface.ENScan) (enInfo
7172
var nextInK []gjson.Result
7273
for _, r := range iEnData[i] {
7374
tPid := r.Get(pidName).String()
74-
gologger.Debug().Str("PID", tPid).Str("PID NAME", pidName).Msgf("查询PID")
75+
tName := r.Get(etNameJ).String()
76+
gologger.Debug().Str("PID", tPid).Str("Name", tName).Str("PID NAME", pidName).Msgf("查询PID")
7577
// 计算投资比例判断是否符合
7678
investNum := utils.FormatInvest(r.Get(scaleName).String())
7779
if investNum < options.InvestNum {
7880
continue
7981
}
80-
association = fmt.Sprintf("%s %d级 投资 %.2f", enName, i+1, investNum)
82+
association = fmt.Sprintf("%s ⌈%d⌋级投资⌈%.2f%%⌋-%s", tName, i+1, investNum, enName)
8183
gologger.Info().Msgf("%s", association)
8284
dEnData := getCompanyInfoById(tPid, association, searchList, job)
8385
// 保存当前数据

0 commit comments

Comments
 (0)