Selaa lähdekoodia

日志保存不给userId和userName默认值

lirong 2 vuotta sitten
vanhempi
commit
f2731fd56f

+ 2 - 6
ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/ControlUtil.java

@@ -196,14 +196,10 @@ public class ControlUtil {
 				 JSONObject postParam2=new JSONObject();
 				postParam.put("groupCode", RepositoryContainer.RepositoryProject.groupCode);
 				postParam.put("projectId", RepositoryContainer.RepositoryProject.projectId);
-				if (userId == null || userId.length() == 0) {
-					postParam.put("userId", "systemId");
-				} else {
+				if (userId != null) {
 					postParam.put("userId", userId);
 				}
-				if (userName == null || userName.length() == 0) {
-					postParam.put("userName", "系统");
-				} else {
+				if (userName != null) {
 					postParam.put("userName", userName);
 				}
 					SceneDataObject sdo = sdoList.get(i);