| | |
| | | public void webSocketBroadcast(NativeObject nativeObject) throws Exception {
|
| | | SMTJsonWriter jsonWr = new SMTJsonWriter(false);
|
| | | SMTAIServerApp.convJSToJsonWriter(nativeObject, jsonWr);
|
| | | SMTAIServerApp.getApp().webSocketApp(jsonWr.toString());
|
| | | SMTAIServerApp.getApp().webSocketApp(jsonWr.getFullJson());
|
| | | }
|
| | | |
| | | public Object llmAnswerToJson(String sJson)
|
| | | {
|
| | | Object object = SMTAIServerApp.convJsonToJS(SMTStatic.convLLMAnswerToJson(sJson, false));
|
| | | return object;
|
| | | }
|
| | |
|
| | | public Object getArg(String key)
|
| | |
| | | private int executeSQL(SMTDatabase db, String sql, NativeObject nvParams) throws Exception
|
| | | {
|
| | | List<Object> sqlParams = new ArrayList<>();
|
| | | List<NativeObject> listRecs = new ArrayList<>();
|
| | | try
|
| | | {
|
| | | // 解析出原始sql
|