Commit 216889b8 authored by chenweijian's avatar chenweijian

代理分享链接

parent aa6a282e
......@@ -42,10 +42,6 @@ func CanShareChargeLink(c *gin.Context) (*mycontext.MyContext, error) {
}
// 安卓3.8.0版本有bug,这里暂时兼容
myUser, err := user_c.GetUserTinyById(model, userId)
if err != nil {
return myContext, err
}
shareUrl := config.GetH5Config().AGENT_SHARE_URL
deviceType, major, minor, _, err := req.GetAppVersion(c)
if err != nil {
......@@ -53,6 +49,10 @@ func CanShareChargeLink(c *gin.Context) (*mycontext.MyContext, error) {
}
if deviceType == "android" {
if (major > 3) || (major == 3 && minor >= 8) {
myUser, err := user_c.GetUserTinyById(model, userId)
if err != nil {
return myContext, err
}
shareUrl = shareUrl + myUser.ExternalId
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment