|
@@ -66,12 +66,12 @@ func (this *CollectionController) Detail() {
|
|
|
return
|
|
|
}
|
|
|
resp := new(models.CollectionDetailResp)
|
|
|
- //if user.Mobile != "" {
|
|
|
- // userTokenByMobile, _ := services.GetUserTokenByMobile(user.Mobile)
|
|
|
- // resp.HttpUrl = utils.COLLECTIONS_INFO_HTTP_URL + "?token=" + userTokenByMobile
|
|
|
- //} else {
|
|
|
- // resp.HttpUrl = utils.COLLECTIONS_INFO_HTTP_URL
|
|
|
- //}
|
|
|
+ if user.Mobile != "" {
|
|
|
+ userTokenByMobile, _ := services.GetUserTokenByMobile(user.Mobile)
|
|
|
+ resp.HttpUrl = utils.COLLECTIONS_INFO_HTTP_URL + "?token=" + userTokenByMobile
|
|
|
+ } else {
|
|
|
+ resp.HttpUrl = utils.COLLECTIONS_INFO_HTTP_URL
|
|
|
+ }
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "获取成功"
|