|
@@ -180,7 +180,8 @@ func (this *Analysis) ForPContent() {
|
|
|
if ok && data != nil {
|
|
|
yucetime := (*data)["yucetime"]
|
|
|
(*data)["yucetime"] = FormatDateWithObj(&yucetime, "2006/01/02")
|
|
|
- results := qutil.ObjArrToMapArr((*data)["results"].([]interface{}))
|
|
|
+ resultsTemp, _ := (*data)["results"].([]interface{})
|
|
|
+ results := qutil.ObjArrToMapArr(resultsTemp)
|
|
|
resultsArr := []map[string]interface{}{}
|
|
|
resultsMap := map[string]interface{}{}
|
|
|
if len(results) > 0 {
|
|
@@ -188,8 +189,7 @@ func (this *Analysis) ForPContent() {
|
|
|
if rv["p_projects"] == nil {
|
|
|
continue
|
|
|
}
|
|
|
- pps, _ := rv["p_projects"].([]interface{})
|
|
|
- p_projects := qutil.ObjArrToMapArr(pps)
|
|
|
+ p_projects := qutil.ObjArrToMapArr(rv["p_projects"].([]interface{}))
|
|
|
for _, pv := range p_projects {
|
|
|
if pv["p_id"] == nil || pv["p_purchasing"] == nil {
|
|
|
continue
|