Ver a proveniência

update

add_mode
DengBiao há 1 ano
ascendente
cometimento
4af1ac9da3
1 ficheiros alterados com 7 adições e 1 eliminações
  1. +7
    -1
      app/customer/svc/svc_pay.go

+ 7
- 1
app/customer/svc/svc_pay.go Ver ficheiro

@@ -215,7 +215,7 @@ func BuyPackageForWx(c *gin.Context, req md.BuyPackageReq) (outTradeNo, prepayId
NotifyUrl: core.String(sysCfg[enum2.WxJsapiPayNotifyUrl]),
Amount: &jsapi.Amount{
Currency: core.String("CNY"),
Total: core.Int64(utils.StrToInt64(total) * 100),
Total: core.Int64(int64(totalPrice * 100)),
},
Payer: &jsapi.Payer{
//SpOpenid: core.String("oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"),
@@ -224,6 +224,12 @@ func BuyPackageForWx(c *gin.Context, req md.BuyPackageReq) (outTradeNo, prepayId
},
)

fmt.Println(">>>>>>>>>>>", core.Int64(utils.StrToInt64(total)*100))
if err != nil {
_ = session.Rollback()
return
}

//5、插入订单记录
now := time.Now()
centralKitchenForSchoolPackageOrd := db.CentralKitchenForSchoolPackageOrd{}


Carregando…
Cancelar
Guardar