|
@@ -73,6 +73,8 @@ func ExecPythonCode(edbCode, reqCode string) (dataMap EdbDataFromPython, err err
|
|
|
}
|
|
|
}()
|
|
|
|
|
|
+ AnalysisPythonCode(reqCode)
|
|
|
+
|
|
|
|
|
|
pythonFile, err := getPythonFileAbsolutePath(edbCode)
|
|
|
if err != nil {
|
|
@@ -147,7 +149,7 @@ func ExecPythonCode(edbCode, reqCode string) (dataMap EdbDataFromPython, err err
|
|
|
}
|
|
|
|
|
|
|
|
|
- fmt.Println(dataMap)
|
|
|
+
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -181,3 +183,14 @@ func getPythonFrontStr() string {
|
|
|
func getPythonLaterStr() string {
|
|
|
return "\nprint(\"result=\", result.to_json())\ndb.close()"
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+func AnalysisPythonCode(pythonCode string) (dataMap EdbDataFromPython, err error, errMsg string) {
|
|
|
+
|
|
|
+
|
|
|
+ tmpList := strings.Split(pythonCode, "\n")
|
|
|
+ for _, v := range tmpList {
|
|
|
+ fmt.Println(v)
|
|
|
+ }
|
|
|
+ return
|
|
|
+}
|