|
@@ -49,6 +49,7 @@ public class ExchangeController {
|
|
|
@ResponseBody
|
|
|
public R<?> getRemoteSecretKey() {
|
|
|
R<?> result = remoteAuthBaseService.getRemoteSecretKey();
|
|
|
+ log.info("result:{}",result);
|
|
|
if (result.getCode() == 200) {
|
|
|
return R.ok(result.getData().toString(), "获取成功");
|
|
|
} else {
|
|
@@ -63,6 +64,7 @@ public class ExchangeController {
|
|
|
@ResponseBody
|
|
|
public R<?> getToken(@RequestBody LoginBody form) {
|
|
|
R<?> result = remoteAuthBaseService.loginRemote(form);
|
|
|
+ log.info("result:{}",result);
|
|
|
if (result.getCode() == 200) {
|
|
|
Map<String, Object> json = (Map<String, Object>) result.getData();
|
|
|
return R.ok(json.get("access_token").toString(), "获取成功");
|