Commit 31ce2db8 authored by 霍传世's avatar 霍传世

HaiNa---接口

parent 0cc8defc
......@@ -35,8 +35,14 @@ public class CallBackApiController {
}
}
}catch (Exception e){
return ResponseEntity.status(10000).body("错误的回调");
JSONObject jsonObject = new JSONObject();
jsonObject.put("code",10000);
jsonObject.put("message","回到数据解析出错");
return ResponseEntity.ok(jsonObject.toString());
}
return ResponseEntity.status(0).body("收到回调");
JSONObject jsonObject = new JSONObject();
jsonObject.put("code",0);
jsonObject.put("message","收到回调");
return ResponseEntity.ok().body(jsonObject.toString());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment