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