This commit is contained in:
laodaming
2023-07-03 17:33:59 +08:00
parent 5934017dbf
commit 22b27141a4
10 changed files with 332 additions and 11 deletions

View File

@@ -105,7 +105,7 @@ func (l *SupplementLogic) Supplement(req *types.SupplementReq, userinfo *auth.Us
minByNum := math.Ceil(float64(req.Num) / float64(*productPriceInfo.EachBoxNum))
amount := step_price.GetCentStepPrice(int(minByNum), stepNum, stepPrice) + optionalPrice
totalAmount := amount * req.Num
newOrderSn := id_generator.GenPickUpTrackNum()
newOrderSn := id_generator.GenSnNum()
now := time.Now().Unix()
deliveryMethod := int64(constants.DELIVERY_METHOD_CLOUD)
isSup := int64(1)

View File

@@ -58,7 +58,7 @@ func (l *TakeLogic) Take(req *types.TakeReq, userinfo *auth.UserInfo) (resp *bas
//提货单总单
addressInfoBytes, _ := json.Marshal(addressInfo)
addressInfoJson := string(addressInfoBytes)
trackNum := id_generator.GenPickUpTrackNum()
trackNum := id_generator.GenSnNum()
status := int64(constants.STATUS_ORDERD)
now := time.Now().Unix()
pickUpData := gmodel.FsCloudPickUp{