云闪付红包发放调试

This commit is contained in:
李子铭 2024-09-18 15:34:46 +08:00
parent 77125628fa
commit 2160b6fc42
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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,