|
@@ -68,8 +68,9 @@ type OrigInfo struct {
|
|
|
// @param source int
|
|
|
// @param subSource int
|
|
|
// @param edbCode string
|
|
|
+// @param edbName string
|
|
|
// @return origInfo OrigInfo
|
|
|
-func getOrigInfo(source, subSource int, edbCode string) (origInfo OrigInfo) {
|
|
|
+func getOrigInfo(source, subSource int, edbCode, edbName string) (origInfo OrigInfo) {
|
|
|
switch source {
|
|
|
case utils.DATA_SOURCE_THS, utils.DATA_SOURCE_WIND: // 同花顺、wind
|
|
|
origInfo.SourceName = "经济数据库"
|
|
@@ -93,6 +94,11 @@ func getOrigInfo(source, subSource int, edbCode string) (origInfo OrigInfo) {
|
|
|
origInfo.SourceName = edbInfo.Interface
|
|
|
}
|
|
|
|
|
|
+ // 如果原始名称为空,则使用ETA指标库的名称作为原始名称
|
|
|
+ if origInfo.EdbName == `` {
|
|
|
+ origInfo.EdbName = edbName
|
|
|
+ }
|
|
|
+
|
|
|
return
|
|
|
}
|
|
|
|