|
@@ -26,8 +26,12 @@ var JyDataExportPack dataExportPackStruct
|
|
|
type PackDetail struct {
|
|
|
PackType int `json:"pType"` //数据包类型 1标准,2高级
|
|
|
PackNum int `json:"pNum"` //数据包数量
|
|
|
- ValidYear int `json:"validYear"` //有效年份
|
|
|
- Price int `json:"price"` //数据包价格
|
|
|
+ ValidYear int `json:"validYear"` //有效年份 「账户合并过来的资源为-1」
|
|
|
+ Price int `json:"price"` //数据包价格 「账户合并过来的资源为-1」
|
|
|
+}
|
|
|
+type PackDetailReturn struct { //因账户合并,中台返回的字段会有差异
|
|
|
+ *PackDetail
|
|
|
+ EndTime int64 `json:"endTime"` //仅通过账户合并后的有此字段
|
|
|
}
|
|
|
|
|
|
var packPriceMap map[string]*PackDetail
|
|
@@ -285,7 +289,7 @@ func (this *dataExportPackStruct) GetDataExportRecordList(userId, memberPid stri
|
|
|
//导出时间
|
|
|
returnRow["export_timestamp"] = row["exportDate"]
|
|
|
//数据来源
|
|
|
- if row["data_from"] == 1 {
|
|
|
+ if qutil.IntAll(row["data_from"]) == 1 {
|
|
|
returnRow["data_from"] = "统一订阅"
|
|
|
} else {
|
|
|
returnRow["data_from"] = "用户搜索"
|