|
@@ -38,6 +38,7 @@ func (this *BaseAuthMobileController) Prepare() {
|
|
|
if method != "HEAD" {
|
|
|
if method == "POST" || method == "GET" {
|
|
|
authorization := this.Ctx.Input.Header("Authorization")
|
|
|
+ inviteCompany := this.Ctx.Input.Header("From")
|
|
|
if authorization == "" {
|
|
|
authorization = this.GetString("Authorization")
|
|
|
}
|
|
@@ -83,6 +84,8 @@ func (this *BaseAuthMobileController) Prepare() {
|
|
|
return
|
|
|
}
|
|
|
this.User = wxUser
|
|
|
+ wxUser.InviteCompany = inviteCompany
|
|
|
+ go services.AddCygxPageHistoryRecord(this.User, this.Ctx)
|
|
|
}
|
|
|
} else {
|
|
|
this.JSON(models.BaseResponse{Ret: 408, Msg: "请求异常,请联系客服!", ErrMsg: "POST之外的请求,暂不支持"}, false, false)
|