|
@@ -22,7 +22,6 @@ import ( |
|
|
"github.com/go-pay/gopay" |
|
|
"github.com/go-pay/gopay" |
|
|
"github.com/go-pay/gopay/alipay" |
|
|
"github.com/go-pay/gopay/alipay" |
|
|
"github.com/go-pay/xlog" |
|
|
"github.com/go-pay/xlog" |
|
|
"github.com/jinzhu/copier" |
|
|
|
|
|
"github.com/streadway/amqp" |
|
|
"github.com/streadway/amqp" |
|
|
"time" |
|
|
"time" |
|
|
) |
|
|
) |
|
@@ -73,12 +72,9 @@ func EggFinWithdrawApplyDataConsume(queue md.MqQueue) { |
|
|
data.Ext = res.Body |
|
|
data.Ext = res.Body |
|
|
} else { |
|
|
} else { |
|
|
// 解析成功 |
|
|
// 解析成功 |
|
|
err2 := copier.Copy(&data, &msg) |
|
|
|
|
|
if err2 != nil { |
|
|
|
|
|
data.Ext = res.Body |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
data.EggFinWithdrawApplyData = *msg |
|
|
} |
|
|
} |
|
|
ch.Publish(md2.EggAppExchange, utils2.SerializeStr(data), md2.EggFinWithdrawApplyError) |
|
|
|
|
|
|
|
|
ch.Publish(md2.EggAppExchange, data, md2.EggFinWithdrawApplyError) |
|
|
} |
|
|
} |
|
|
//_ = res.Reject(false) |
|
|
//_ = res.Reject(false) |
|
|
err = res.Ack(true) |
|
|
err = res.Ack(true) |
|
@@ -98,6 +94,8 @@ func handleEggFinWithdrawApplyDataConsume(msgData []byte, client *alipay.Client, |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return errors.New("测试") |
|
|
|
|
|
|
|
|
applyDb := implement.NewFinWithdrawApplyDb(db.Db) |
|
|
applyDb := implement.NewFinWithdrawApplyDb(db.Db) |
|
|
apply, err := applyDb.FinWithdrawApplyGet(msg.Id) |
|
|
apply, err := applyDb.FinWithdrawApplyGet(msg.Id) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|