Browse Source

短信

master
huangjiajun 4 weeks ago
parent
commit
119dadc564
2 changed files with 2 additions and 3 deletions
  1. +1
    -1
      consume/aliyun_sms_record_consume.go
  2. +1
    -2
      consume/egg_fin_withdraw_apply_consume.go

+ 1
- 1
consume/aliyun_sms_record_consume.go View File

@@ -85,7 +85,7 @@ func handleAliyunSmsRecordConsume(msgData []byte) error {
aliyunSmsSaleCode = msg.Code aliyunSmsSaleCode = msg.Code
extra = msg.Extra extra = msg.Extra
} }
if aliyunSmsSaleCode == "" {
if aliyunSmsSaleCode == "" || msg.Phone == "" {
return nil return nil
} }
err = aliyun.AliyunSendSms(aliyunSmsId, aliyunSmsSecret, msg.Phone, aliyunSmsSignName, aliyunSmsSaleCode, extra) err = aliyun.AliyunSendSms(aliyunSmsId, aliyunSmsSecret, msg.Phone, aliyunSmsSignName, aliyunSmsSaleCode, extra)


+ 1
- 2
consume/egg_fin_withdraw_apply_consume.go View File

@@ -38,7 +38,7 @@ func EggFinWithdrawApplyDataConsume(queue md.MqQueue) {
//2、取出数据进行消费 //2、取出数据进行消费
ch.Qos(1) ch.Qos(1)
delivery := ch.Consume(queue.Name, false) delivery := ch.Consume(queue.Name, false)
egg_system_rules.Init(cfg.RedisAddr)
var alipayStruct *InitAlipayStruct var alipayStruct *InitAlipayStruct
client, err := InitAlipay(alipayStruct) client, err := InitAlipay(alipayStruct)
if err != nil { if err != nil {
@@ -48,7 +48,6 @@ func EggFinWithdrawApplyDataConsume(queue md.MqQueue) {
})) }))
return return
} }
egg_system_rules.Init(cfg.RedisAddr)
var res amqp.Delivery var res amqp.Delivery
var ok bool var ok bool
for { for {


Loading…
Cancel
Save