|
@@ -25,8 +25,9 @@ public class CircleController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/my-circles")
|
|
@PostMapping("/my-circles")
|
|
|
public Result<List<Map<String, Object>>> myCircles(@RequestBody Map<String, Object> params) {
|
|
public Result<List<Map<String, Object>>> myCircles(@RequestBody Map<String, Object> params) {
|
|
|
- Long memberId = params.get("memberId") != null
|
|
|
|
|
- ? Long.valueOf(params.get("memberId").toString()) : null;
|
|
|
|
|
|
|
+ Object memberIdObj = params.get("memberId");
|
|
|
|
|
+ Long memberId = memberIdObj != null && !memberIdObj.toString().trim().isEmpty()
|
|
|
|
|
+ ? Long.valueOf(memberIdObj.toString()) : null;
|
|
|
String memberType = params.get("memberType") != null
|
|
String memberType = params.get("memberType") != null
|
|
|
? params.get("memberType").toString() : "child";
|
|
? params.get("memberType").toString() : "child";
|
|
|
if (memberId == null) {
|
|
if (memberId == null) {
|