作者 tangxvhui

更新

@@ -21,7 +21,7 @@ type OrderInfoController struct { @@ -21,7 +21,7 @@ type OrderInfoController struct {
21 ////Prepare 重写 BaseController 的Prepare方法 21 ////Prepare 重写 BaseController 的Prepare方法
22 func (c *OrderInfoController) Prepare() { 22 func (c *OrderInfoController) Prepare() {
23 c.BaseController.Prepare() 23 c.BaseController.Prepare()
24 - 24 + return
25 if ok := c.ValidJWTToken(); !ok { 25 if ok := c.ValidJWTToken(); !ok {
26 return 26 return
27 } 27 }
@@ -115,6 +115,7 @@ func (c *OrderInfoController) GetOrderPurpose() { @@ -115,6 +115,7 @@ func (c *OrderInfoController) GetOrderPurpose() {
115 allGoods := []map[string]interface{}{} 115 allGoods := []map[string]interface{}{}
116 for _, v := range orderinfo.Goods { 116 for _, v := range orderinfo.Goods {
117 m := map[string]interface{}{ 117 m := map[string]interface{}{
  118 + "id": v.Id,
118 "productName": v.GoodName, 119 "productName": v.GoodName,
119 "orderNum": v.PlanGoodNumber, 120 "orderNum": v.PlanGoodNumber,
120 "univalence": v.Price, 121 "univalence": v.Price,
@@ -462,6 +463,7 @@ func (c *OrderInfoController) GetOrderReal() { @@ -462,6 +463,7 @@ func (c *OrderInfoController) GetOrderReal() {
462 allGoods := []map[string]interface{}{} 463 allGoods := []map[string]interface{}{}
463 for _, v := range orderinfo.Goods { 464 for _, v := range orderinfo.Goods {
464 m := map[string]interface{}{ 465 m := map[string]interface{}{
  466 + "id": v.Id,
465 "productName": v.GoodName, 467 "productName": v.GoodName,
466 "orderNum": v.PlanGoodNumber, 468 "orderNum": v.PlanGoodNumber,
467 "univalence": v.Price, 469 "univalence": v.Price,