作者 yangfu

set miniprogram nil

@@ -211,9 +211,10 @@ func UserInfoV2(header *protocol.RequestHeader, request *protocol.UserInfoReques @@ -211,9 +211,10 @@ func UserInfoV2(header *protocol.RequestHeader, request *protocol.UserInfoReques
211 if company, err = CompanyResponsitory.FindOne(map[string]interface{}{"id": header.CompanyId}); err != nil { 211 if company, err = CompanyResponsitory.FindOne(map[string]interface{}{"id": header.CompanyId}); err != nil {
212 return 212 return
213 } 213 }
214 - var miniProgram = make(map[string]interface{}) 214 + var miniProgram map[string]interface{}
215 if len(company.Applets) > 0 { 215 if len(company.Applets) > 0 {
216 if company.Applets[0].Valid() { 216 if company.Applets[0].Valid() {
  217 + miniProgram = make(map[string]interface{})
217 miniProgram["webpageUrl"] = "www.baidu.com" 218 miniProgram["webpageUrl"] = "www.baidu.com"
218 miniProgram["userName"] = company.Applets[0].Id 219 miniProgram["userName"] = company.Applets[0].Id
219 miniProgram["path"] = fmt.Sprintf("%v?inviter_id=%v&company_id=%v", company.Applets[0].URL, partnerInfo.Id, partnerInfo.CompanyId) 220 miniProgram["path"] = fmt.Sprintf("%v?inviter_id=%v&company_id=%v", company.Applets[0].URL, partnerInfo.Id, partnerInfo.CompanyId)