Przeglądaj źródła

update

add_mode
DengBiao 1 rok temu
rodzic
commit
3dd4c6a566
2 zmienionych plików z 3 dodań i 3 usunięć
  1. +2
    -2
      app/customer/svc/order/svc_central_kitchen_for_school_order.go
  2. +1
    -1
      app/router/customer_router.go

+ 2
- 2
app/customer/svc/order/svc_central_kitchen_for_school_order.go Wyświetl plik

@@ -198,7 +198,7 @@ func CentralKitchenForSchoolMyReserve(userIdentityId int, date, startDate, endDa
totalLunch++
dateMap[v.Date].LunchTotal++
if v.State == enum.CentralKitchenForSchoolUserWithDayStateForWait {
dateMap[v.Date].LunchOrdNoList = append(dateMap[v.Date].BreakfastOrdNoList, struct {
dateMap[v.Date].LunchOrdNoList = append(dateMap[v.Date].LunchOrdNoList, struct {
OutTradeNo string `json:"out_trade_no" label:"业务订单号"`
Id int `json:"id" label:"就餐记录id"`
}{OutTradeNo: v.OrdNo, Id: v.Id})
@@ -208,7 +208,7 @@ func CentralKitchenForSchoolMyReserve(userIdentityId int, date, startDate, endDa
dateMap[v.Date].DinnerTotal++
totalDinner++
if v.State == enum.CentralKitchenForSchoolUserWithDayStateForWait {
dateMap[v.Date].DinnerOrdNoList = append(dateMap[v.Date].BreakfastOrdNoList, struct {
dateMap[v.Date].DinnerOrdNoList = append(dateMap[v.Date].DinnerOrdNoList, struct {
OutTradeNo string `json:"out_trade_no" label:"业务订单号"`
Id int `json:"id" label:"就餐记录id"`
}{OutTradeNo: v.OrdNo, Id: v.Id})


+ 1
- 1
app/router/customer_router.go Wyświetl plik

@@ -26,7 +26,7 @@ func CustomerInit(r *gin.RouterGroup) {
r.GET("/wxGetAccessToken", hdl.WxGetAccessToken)
r.POST("/wxDecryptUserInfo", hdl.WxDecryptUserInfo)
r.POST("/wxDecryptMobile", hdl.WxDecryptMobile)
r.POST("/wxPay", hdl.WxPay)
r.POST("/wxPay", hdl.Wx)

r.POST("/register", hdl.Register)
r.POST("/aesDecrypt", hdl.AesDecrypt)


Ładowanie…
Anuluj
Zapisz