|
@@ -2096,10 +2096,11 @@ func funcAnalysis(j *ju.Job, e *ExtractTask) (*map[string]interface{}, map[strin
|
|
|
}
|
|
|
if !(len(j.Result) <= 0 || j.Jsondata == nil || len(*j.Jsondata) <= 0) {
|
|
|
//jsondata清理
|
|
|
- clearJd(j.Jsondata,e)
|
|
|
+ clearJd(j.Jsondata, e)
|
|
|
marshalbt, _ := json.Marshal(j.Jsondata)
|
|
|
tmpjddata := make(map[string]interface{})
|
|
|
- json.Unmarshal(marshalbt, &tmpjddata) for _, jdkey := range ju.JsonData {
|
|
|
+ json.Unmarshal(marshalbt, &tmpjddata)
|
|
|
+ for _, jdkey := range ju.JsonData {
|
|
|
if (*j.Jsondata)[jdkey] != nil && (*j.Jsondata)[jdkey] != "" && len(j.Result[jdkey]) >= 5 {
|
|
|
for tmpk, tmpv := range j.Result[jdkey][:5] {
|
|
|
if jdkey == "budget" || jdkey == "bidamount" {
|