作者 yangfu

fix: 增加微信小程序版本类型 2:体验版

@@ -220,6 +220,7 @@ func UserInfoV2(header *protocol.RequestHeader, request *protocol.UserInfoReques @@ -220,6 +220,7 @@ func UserInfoV2(header *protocol.RequestHeader, request *protocol.UserInfoReques
220 miniProgram["userName"] = company.Applets[0].Id 220 miniProgram["userName"] = company.Applets[0].Id
221 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)
222 miniProgram["hdImageUrl"] = constant.SHARE_SHOP_PREVIEW_IMADGE 222 miniProgram["hdImageUrl"] = constant.SHARE_SHOP_PREVIEW_IMADGE
  223 + miniProgram["miniprogramT"] = constant.WEHAT_MINI_PROGRAM_VERSION_TYPE
223 miniProgram["title"] = company.Applets[0].Name 224 miniProgram["title"] = company.Applets[0].Name
224 } 225 }
225 } 226 }
@@ -20,7 +20,7 @@ var BUSINESS_ADMIN_PLATFORM_ID = "25" //合伙人模块 @@ -20,7 +20,7 @@ var BUSINESS_ADMIN_PLATFORM_ID = "25" //合伙人模块
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" //分享店铺预览图 22 var SHARE_SHOP_PREVIEW_IMADGE = "https://media.fjmaimaimai.com/image/default/F6ABD8ECDB564582BFFACA053F330005-6-2.jpg" //分享店铺预览图
23 - 23 +var WEHAT_MINI_PROGRAM_VERSION_TYPE = 2 //0:正式版 1:开发版 2:体验版
24 func init() { 24 func init() {
25 if os.Getenv("LOG_LEVEL") != "" { 25 if os.Getenv("LOG_LEVEL") != "" {
26 LOG_LEVEL = os.Getenv("LOG_LEVEL") 26 LOG_LEVEL = os.Getenv("LOG_LEVEL")