修复几个bug
This commit is contained in:
parent
e9b2bbbdfb
commit
8980e4859c
|
|
@ -57,10 +57,9 @@ public class ApiCommon {
|
|||
params.setAppKey(platform.getAppKey());
|
||||
params.setAppSecret(platform.getAppSecret());
|
||||
params.setAccessToken(shop.getAccessToken());
|
||||
// params.setTokenRequestUrl(platform.getRedirectUri());
|
||||
// params.setApiRequestUrl(platform.getServerUrl());
|
||||
// params.setServerUrl(platform.getServerUrl());
|
||||
params.setSellerId(shop.getSellerShopId().toString());
|
||||
params.setRedirectUrl(platform.getRedirectUrl());
|
||||
params.setServerUrl(platform.getServerUrl());
|
||||
params.setSellerShopId(shop.getSellerShopId());
|
||||
if (!StringUtils.hasText(shop.getAccessToken())) {
|
||||
|
||||
return ResultVo.error(HttpStatus.UNAUTHORIZED1, "Token已过期,请重新授权", params);
|
||||
|
|
|
|||
|
|
@ -57,10 +57,10 @@ public class ApiCommon {
|
|||
params.setAppKey(platform.getAppKey());
|
||||
params.setAppSecret(platform.getAppSecret());
|
||||
params.setAccessToken(shop.getAccessToken());
|
||||
// params.setTokenRequestUrl(platform.getRedirectUri());
|
||||
// params.setApiRequestUrl(platform.getServerUrl());
|
||||
// params.setServerUrl(platform.getServerUrl());
|
||||
params.setSellerId(shop.getSellerShopId().toString());
|
||||
params.setRedirectUrl(platform.getRedirectUrl());
|
||||
|
||||
params.setServerUrl(platform.getServerUrl());
|
||||
params.setSellerShopId(shop.getSellerShopId());
|
||||
if (!StringUtils.hasText(shop.getAccessToken())) {
|
||||
|
||||
return ResultVo.error(HttpStatus.UNAUTHORIZED1, "Token已过期,请重新授权", params);
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class GoodsApiController extends BaseController {
|
|||
}
|
||||
ShopApiParams shopApiParams = checkResult.getData();
|
||||
String sessionKey = shopApiParams.getAccessToken();
|
||||
String url = shopApiParams.getApiRequestUrl();
|
||||
String url = shopApiParams.getServerUrl();
|
||||
String appKey = shopApiParams.getAppKey();
|
||||
String appSecret = shopApiParams.getAppSecret();
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public class OrderApiController {
|
|||
return AjaxResult.error(checkResult.getCode(), checkResult.getMsg(),checkResult.getData());
|
||||
}
|
||||
String sessionKey = checkResult.getData().getAccessToken();
|
||||
String url = checkResult.getData().getApiRequestUrl();
|
||||
String url = checkResult.getData().getServerUrl();
|
||||
String appKey = checkResult.getData().getAppKey();
|
||||
String appSecret = checkResult.getData().getAppSecret();
|
||||
|
||||
|
|
@ -186,7 +186,7 @@ public class OrderApiController {
|
|||
return AjaxResult.error(checkResult.getCode(), checkResult.getMsg(), checkResult.getData());
|
||||
}
|
||||
String sessionKey = checkResult.getData().getAccessToken();
|
||||
String url = checkResult.getData().getApiRequestUrl();
|
||||
String url = checkResult.getData().getServerUrl();
|
||||
String appKey = checkResult.getData().getAppKey();
|
||||
String appSecret = checkResult.getData().getAppSecret();
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class RefundApiController {
|
|||
}
|
||||
|
||||
String sessionKey = checkResult.getData().getAccessToken();
|
||||
String url = checkResult.getData().getApiRequestUrl();
|
||||
String url = checkResult.getData().getServerUrl();
|
||||
String appKey = checkResult.getData().getAppKey();
|
||||
String appSecret = checkResult.getData().getAppSecret();
|
||||
|
||||
|
|
@ -184,7 +184,7 @@ public class RefundApiController {
|
|||
}
|
||||
|
||||
String sessionKey = checkResult.getData().getAccessToken();
|
||||
String url = checkResult.getData().getApiRequestUrl();
|
||||
String url = checkResult.getData().getServerUrl();
|
||||
String appKey = checkResult.getData().getAppKey();
|
||||
String appSecret = checkResult.getData().getAppSecret();
|
||||
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ public class ApiCommon {
|
|||
params.setAppKey(platform.getAppKey());
|
||||
params.setAppSecret(platform.getAppSecret());
|
||||
params.setAccessToken(shop.getAccessToken());
|
||||
params.setTokenRequestUrl(platform.getRedirectUrl());
|
||||
// params.setApiRequestUrl(platform.getServerUrl());
|
||||
params.setRedirectUrl(platform.getRedirectUrl());
|
||||
params.setServerUrl(platform.getServerUrl());
|
||||
|
||||
if (!StringUtils.hasText(shop.getAccessToken())) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue