@@ -9,7 +9,7 @@ steps:
- name: clone
image: alpine/git
commands:
- - git clone -b feature/event http://192.168.1.8:3000/xuyiping/kpt-pasture.git
+ - git clone -b ${DRONE_COMMIT_BRANCH} http://192.168.1.8:3000/xuyiping/kpt-pasture.git
- cp -R kpt-pasture/* ./
- name: build
image: plugins/docker:20.14.2
@@ -107,7 +107,8 @@ func calculateNewScore(data *model.NeckRingHealth) int32 {
if data.IsImmunization == pasturePb.IsShow_Ok {
otherScore += 12
}
- return data.Score + otherScore
+ // 4分 算法补偿分
+ return data.Score + otherScore + 4
func calculateMilkFilterScore(milkFilter int32, maxHigh int32) int32 {