作者 唐旭辉

调试

@@ -79,7 +79,7 @@ spec: @@ -79,7 +79,7 @@ spec:
79 - name: BUSINESS_ADMIN_HOST 79 - name: BUSINESS_ADMIN_HOST
80 value: "http://suplus-business-admin-dev.fjmaimaimai.com" 80 value: "http://suplus-business-admin-dev.fjmaimaimai.com"
81 - name: KAFKA_HOST 81 - name: KAFKA_HOST
82 - value: "192.168.0.250:9092" 82 + value: "192.168.0.250:9092;192.168.0.251:9092;192.168.0.252:9092"
83 - name: KAFKA_CONSUMER_ID 83 - name: KAFKA_CONSUMER_ID
84 value: "partnermg_dev" 84 value: "partnermg_dev"
85 volumes: 85 volumes:
@@ -1081,7 +1081,7 @@ func (service OrderInfoService) PayPartnerBonusWithOrderBestshop(orderId int64, @@ -1081,7 +1081,7 @@ func (service OrderInfoService) PayPartnerBonusWithOrderBestshop(orderId int64,
1081 }) 1081 })
1082 err = orderBonuSrv.PayOrderGoodBonus(orderId, goodId, adminId) 1082 err = orderBonuSrv.PayOrderGoodBonus(orderId, goodId, adminId)
1083 if err != nil { 1083 if err != nil {
1084 - return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error()) 1084 + return err
1085 } 1085 }
1086 err = transactionContext.CommitTransaction() 1086 err = transactionContext.CommitTransaction()
1087 if err != nil { 1087 if err != nil {
@@ -98,9 +98,6 @@ func (r *Runer) InitConsumer() error { @@ -98,9 +98,6 @@ func (r *Runer) InitConsumer() error {
98 //config.Consumer.Group.Rebalance.Strategy = sarama.BalanceStrategyRoundRobin 98 //config.Consumer.Group.Rebalance.Strategy = sarama.BalanceStrategyRoundRobin
99 config.Consumer.Offsets.Initial = sarama.OffsetOldest 99 config.Consumer.Offsets.Initial = sarama.OffsetOldest
100 config.Version = sarama.V0_10_2_1 100 config.Version = sarama.V0_10_2_1
101 - // config.Version = sarama.KafkaVersion{  
102 - // version: [4]int{},  
103 - // }  
104 consumerGroup, err := sarama.NewConsumerGroup(r.msgConsumer.kafkaHosts, r.msgConsumer.groupId, config) 101 consumerGroup, err := sarama.NewConsumerGroup(r.msgConsumer.kafkaHosts, r.msgConsumer.groupId, config)
105 if err != nil { 102 if err != nil {
106 return err 103 return err