作者 yangfu

fix: 修改分享预览图

@@ -6,6 +6,7 @@ import ( @@ -6,6 +6,7 @@ import (
6 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/factory" 6 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/factory"
7 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/query" 7 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/query"
8 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/service" 8 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/service"
  9 + "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/constant"
9 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain" 10 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain"
10 domain_service_i "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain/service" 11 domain_service_i "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain/service"
11 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/domain_service" 12 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/domain_service"
@@ -218,7 +219,7 @@ func UserInfoV2(header *protocol.RequestHeader, request *protocol.UserInfoReques @@ -218,7 +219,7 @@ func UserInfoV2(header *protocol.RequestHeader, request *protocol.UserInfoReques
218 miniProgram["webpageUrl"] = "www.baidu.com" 219 miniProgram["webpageUrl"] = "www.baidu.com"
219 miniProgram["userName"] = company.Applets[0].Id 220 miniProgram["userName"] = company.Applets[0].Id
220 miniProgram["path"] = fmt.Sprintf("%v?inviter_id=%v&company_id=%v", company.Applets[0].URL, partnerInfo.Id, partnerInfo.CompanyId) 221 miniProgram["path"] = fmt.Sprintf("%v?inviter_id=%v&company_id=%v", company.Applets[0].URL, partnerInfo.Id, partnerInfo.CompanyId)
221 - miniProgram["hdImageUrl"] = "https://media.fjmaimaimai.com/image/default/E07BA76675DC4F17A1DE8A34BE02FC50-6-2.jpg" 222 + miniProgram["hdImageUrl"] = constant.SHARE_SHOP_PREVIEW_IMADGE
222 miniProgram["title"] = company.Applets[0].Name 223 miniProgram["title"] = company.Applets[0].Name
223 } 224 }
224 } 225 }
@@ -19,6 +19,8 @@ var BUSINESS_ADMIN_PLATFORM_ID = "25" //合伙人模块 @@ -19,6 +19,8 @@ var BUSINESS_ADMIN_PLATFORM_ID = "25" //合伙人模块
19 19
20 var DEFAULT_GUEST_COMPANY int = 10011 20 var DEFAULT_GUEST_COMPANY int = 10011
21 21
  22 +var SHARE_SHOP_PREVIEW_IMADGE = "https://media.fjmaimaimai.com/image/default/F6ABD8ECDB564582BFFACA053F330005-6-2.jpg" //分享店铺预览图
  23 +
22 func init() { 24 func init() {
23 if os.Getenv("LOG_LEVEL") != "" { 25 if os.Getenv("LOG_LEVEL") != "" {
24 LOG_LEVEL = os.Getenv("LOG_LEVEL") 26 LOG_LEVEL = os.Getenv("LOG_LEVEL")