云闪付红包发放调试
This commit is contained in:
parent
77125628fa
commit
2160b6fc42
|
@ -46,6 +46,7 @@ func (c *Config) orderReq(in *proto.OrderRequest) (*po.OrderReq, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
point := int(in.Order.Amount * 100)
|
||||
return &po.OrderReq{
|
||||
ChNlId: c.ChNlId,
|
||||
AccessId: vo.AccessId,
|
||||
|
@ -57,7 +58,7 @@ func (c *Config) orderReq(in *proto.OrderRequest) (*po.OrderReq, error) {
|
|||
Mobile: mobile,
|
||||
PointTp: vo.PointTp,
|
||||
PointId: c.PointId,
|
||||
PointAt: fmt.Sprintf("%f", in.Order.Amount*100),
|
||||
PointAt: fmt.Sprintf("%d", point),
|
||||
DelayIn: vo.DelayIn,
|
||||
TempIn: vo.TempIn,
|
||||
InOutTransFlag: vo.InOutTransFlag,
|
||||
|
|
|
@ -56,7 +56,7 @@ func TestOrder(t *testing.T) {
|
|||
request := &proto.OrderRequest{
|
||||
Config: config(),
|
||||
Order: &proto.OrderRequest_Order{
|
||||
OrderNo: "202409141047181834200108",
|
||||
OrderNo: "202409141047181834200112",
|
||||
Account: "18666173766",
|
||||
Quantity: 1,
|
||||
Amount: 1,
|
||||
|
|
Loading…
Reference in New Issue