|
@@ -33,10 +33,11 @@ type OrgStructure struct {
|
|
|
//
|
|
|
func (this *OrgStructure) InvitationQR(depId string) {
|
|
|
wxWebdomain := util.ObjToString(config.Sysconfig["wxWebdomain"])
|
|
|
- from := this.GetString("from") //邀请人
|
|
|
- entId := this.GetString("entId") //加密后-企业id
|
|
|
+ entId := this.GetString("entId") //加密后-企业id
|
|
|
+ entUserId := this.GetString("entUserId") //加密后-企业用户id
|
|
|
+ depcname := this.GetString("depcname")
|
|
|
if wxWebdomain != "" {
|
|
|
- qrUrl := wxWebdomain + "/orgstructure/invpage?from=" + from + "&depId=" + depId + "&entId=" + entId
|
|
|
+ qrUrl := wxWebdomain + "/orgstructure/invpage?entUserId=" + entUserId + "&depId=" + depId + "&entId=" + entId + "&depcname=" + depcname
|
|
|
log.Println("qrUrl:", qrUrl)
|
|
|
//生二维码
|
|
|
_r, err := qr.Encode(qrUrl, qr.L)
|
|
@@ -56,14 +57,14 @@ func (this *OrgStructure) InvitationQR(depId string) {
|
|
|
//
|
|
|
func (this *OrgStructure) InvitationPage() error {
|
|
|
client := this.Header("User-Agent")
|
|
|
- from := this.GetString("from") //邀请人
|
|
|
- depId := this.GetString("depId") //加密后-部门id
|
|
|
- entId := this.GetString("entId") //加密后-企业id
|
|
|
+ entUserId := this.GetString("entUserId") //加密后-企业邀请人id
|
|
|
+ depId := this.GetString("depId") //加密后-部门id
|
|
|
+ entId := this.GetString("entId") //加密后-企业id
|
|
|
depcname := this.GetString("depcname")
|
|
|
registered := "0" //是否是剑鱼用户:0:未关注; 1:已关注
|
|
|
- OrgUrl := util.ObjToString(config.Sysconfig["wxOrgUrl"]) + "?from=" + from + "&depId=" + depId + "&entId=" + entId + "&depcname=" + depcname
|
|
|
+ OrgUrl := util.ObjToString(config.Sysconfig["wxOrgUrl"]) + "?entUserId=" + entUserId + "&depId=" + depId + "&entId=" + entId + "&depcname=" + depcname
|
|
|
if !mobileReg.MatchString(client) {
|
|
|
- OrgUrl = util.ObjToString(config.Sysconfig["pcOrgUrl"]) + "?from=" + from + "&depId=" + depId + "&entId=" + entId + "&depcname=" + depcname
|
|
|
+ OrgUrl = util.ObjToString(config.Sysconfig["pcOrgUrl"]) + "?entUserId=" + entUserId + "&depId=" + depId + "&entId=" + entId + "&depcname=" + depcname
|
|
|
} else {
|
|
|
openId := util.ObjToString(this.Session().Get("s_m_openid"))
|
|
|
phone := ""
|