|
@ -57,7 +57,14 @@ public class DoctorWorkTimeService extends BaseService {
|
|
|
|
|
|
result.put("workTime", workTime != null ? new JSONObject(workTime) : "");
|
|
result.put("workTime", workTime != null ? new JSONObject(workTime) : "");
|
|
result.put("workWeeks", workWeekList != null ? new JSONArray(workWeekList) : "");
|
|
result.put("workWeeks", workWeekList != null ? new JSONArray(workWeekList) : "");
|
|
result.put("doctor", doc != null ? new JSONObject(doc) : "");
|
|
|
|
|
|
JSONObject docJson = new JSONObject(doc);
|
|
|
|
if(docJson.has("password")) {
|
|
|
|
docJson.remove("password");
|
|
|
|
}
|
|
|
|
if(docJson.has("salt")) {
|
|
|
|
docJson.remove("salt");
|
|
|
|
}
|
|
|
|
result.put("doctor", doc != null ? docJson : "");
|
|
|
|
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|