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