|
@@ -161,7 +161,7 @@ func (this *UserRaiLabelController) Detail() {
|
|
|
br.ErrMsg = "操作失败,Err:" + errInfo.Error()
|
|
|
return
|
|
|
}
|
|
|
- activitySignupDetai, _ := cygx.GetCygxActivitySignupDetailDetailLast(sourceId, detail.UserId)
|
|
|
+ activitySignupDetai, _ := cygx.GetCygxActivitySignupDetailDetailLast(sourceId, detail.Mobile)
|
|
|
item.ActivityName = activityInfo.ActivityName
|
|
|
item.ActivityTypeName = activityInfo.ActivityTypeName
|
|
|
item.ActivityTime = activityInfo.ActivityTime
|
|
@@ -213,12 +213,13 @@ func (this *UserRaiLabelController) Detail() {
|
|
|
br.ErrMsg = "操作失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- historyDetail, err := cygx.GetCygxArticleHistoryRecordAllDetailLast(sourceId, detail.UserId)
|
|
|
- if err != nil {
|
|
|
- br.Msg = "内容不存在"
|
|
|
- br.ErrMsg = "操作失败,Err:" + err.Error()
|
|
|
- return
|
|
|
+ historyDetail := new(cygx.CygxArticleHistoryRecordAll)
|
|
|
+ if detail.Mobile != "" {
|
|
|
+ historyDetail, err = cygx.GetCygxArticleHistoryRecordAllDetailLastByMobile(sourceId, detail.Mobile)
|
|
|
+ } else {
|
|
|
+ historyDetail, err = cygx.GetCygxArticleHistoryRecordAllDetailLast(sourceId, detail.UserId)
|
|
|
}
|
|
|
+
|
|
|
item.Title = detailArticle.Title
|
|
|
item.PublishDate = detailArticle.PublishDate.Format(utils.FormatDateTime)
|
|
|
item.CreateTime = detail.CreateTime.Format(utils.FormatDateTime)
|
|
@@ -233,7 +234,7 @@ func (this *UserRaiLabelController) Detail() {
|
|
|
br.ErrMsg = "操作失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- historyDetail, err := cygx.GetCygxReportHistoryRecordDetailLast(sourceId, detail.UserId, "bgjx")
|
|
|
+ historyDetail, err := cygx.GetCygxReportHistoryRecordDetailLast(sourceId, detail.Mobile, "bgjx")
|
|
|
if err != nil {
|
|
|
br.Msg = "内容不存在"
|
|
|
br.ErrMsg = "操作失败,Err:" + err.Error()
|
|
@@ -253,7 +254,7 @@ func (this *UserRaiLabelController) Detail() {
|
|
|
br.ErrMsg = "操作失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- historyDetail, err := cygx.GetCygxReportHistoryRecordDetailLast(sourceId, detail.UserId, "bzyjhz")
|
|
|
+ historyDetail, err := cygx.GetCygxReportHistoryRecordDetailLast(sourceId, detail.Mobile, "bzyjhz")
|
|
|
if err != nil {
|
|
|
br.Msg = "内容不存在"
|
|
|
br.ErrMsg = "操作失败,Err:" + err.Error()
|