Browse Source

no message

xingzai 10 tháng trước cách đây
mục cha
commit
1db2c85e19
3 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 2 0
      controllers/activity.go
  2. 2 1
      controllers/article.go
  3. 1 1
      services/order.go

+ 2 - 0
controllers/activity.go

@@ -5,6 +5,7 @@ import (
 	"fmt"
 	"github.com/rdlucklib/rdluck_tools/paging"
 	"hongze/hongze_web_mfyx/models"
+	"hongze/hongze_web_mfyx/models/order"
 	"hongze/hongze_web_mfyx/services"
 	"hongze/hongze_web_mfyx/utils"
 	"strconv"
@@ -887,6 +888,7 @@ func (this *ActivityNoLoginController) Detail() {
 		}
 		detailResp.SignupType = mapActivitySignup[activityId]
 		resp.Detail = detailResp
+		resp.GoodsList = make([]*order.CygxGoodsResp, 0)
 	} else {
 		hasPermission, sellerName, sellerMobile, popupMsg, err := services.GetUserHasPermission(user)
 		if err != nil {

+ 2 - 1
controllers/article.go

@@ -3,6 +3,7 @@ package controllers
 import (
 	"encoding/json"
 	"hongze/hongze_web_mfyx/models"
+	"hongze/hongze_web_mfyx/models/order"
 	"hongze/hongze_web_mfyx/services"
 	"hongze/hongze_web_mfyx/utils"
 	"strconv"
@@ -99,7 +100,7 @@ func (this *ArticleNoLoginController) Detail() {
 		if articleFollowdetail.MdNum > 0 {
 			detail.IsFollow = true
 		}
-
+		resp.GoodsList = make([]*order.CygxGoodsResp, 0)
 	} else {
 		hasPermission, err = services.GetUserDetailPermissionCode(user.UserId, user.CompanyId)
 		if err != nil && err.Error() != utils.ErrNoRow() {

+ 1 - 1
services/order.go

@@ -134,7 +134,7 @@ func GetHaverEquallyOrderByUser10MinByArticle(userId, sourceId int) (orderCode s
 	defer func() {
 		if err != nil {
 			fmt.Println(err)
-			go utils.SendAlarmMsg(fmt.Sprint("获取用户十分钟之内是否有相同的订单信息失败 GetHaverEquallyOrderByUser10MinByActivty, err:", err.Error()), 2)
+			go utils.SendAlarmMsg(fmt.Sprint("获取用户十分钟之内是否有相同的文章订单信息失败 GetHaverEquallyOrderByUser10MinByArticle, err:", err.Error()), 2)
 		}
 	}()
 	var condition string