作者 陈志颖

fix:修复搜索素币记录返回值问题

@@ -185,6 +185,11 @@ func (suMoneyService *SuMoneyService) SearchSuMoneyTransactionRecord(searchSuMon @@ -185,6 +185,11 @@ func (suMoneyService *SuMoneyService) SearchSuMoneyTransactionRecord(searchSuMon
185 } 185 }
186 suMoneyTransactionRecordsFormat = append(suMoneyTransactionRecordsFormat, suMoneyTransactionRecordFormat) 186 suMoneyTransactionRecordsFormat = append(suMoneyTransactionRecordsFormat, suMoneyTransactionRecordFormat)
187 } 187 }
  188 +
  189 + if len(suMoneyTransactionRecordsFormat) == 0 {
  190 + suMoneyTransactionRecordsFormat = []interface{}{}
  191 + }
  192 +
188 return map[string]interface{}{ 193 return map[string]interface{}{
189 "count": count, 194 "count": count,
190 "suMoneyTransactionRecords": suMoneyTransactionRecordsFormat, 195 "suMoneyTransactionRecords": suMoneyTransactionRecordsFormat,