Przeglądaj źródła

//合同 token

release_toaliyun_real
xhxu 3 lat temu
rodzic
commit
0cc60ae060
3 zmienionych plików z 5 dodań i 2 usunięć
  1. +1
    -1
      mallinkAdmin/src/main/java/com/iformall/controller/contract/WxRentContractController.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/douyin/web/api/impl/TtWebServiceImpl.java
  3. +3
    -0
      mallinkService/src/main/java/com/iformall/douyin/web/config/TtWebConstants.java

+ 1
- 1
mallinkAdmin/src/main/java/com/iformall/controller/contract/WxRentContractController.java Wyświetl plik

@@ -651,7 +651,7 @@ public class WxRentContractController extends WxContractBaseController {
}else if (rentContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { }else if (rentContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) {
rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_SHOP_CONTRACT, EnumFlowContractType.RENT_POINT, wxRentContract.getRemark(), wxRentContract.getId(),null)); rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_SHOP_CONTRACT, EnumFlowContractType.RENT_POINT, wxRentContract.getRemark(), wxRentContract.getId(),null));
} }
}else if(rentContract.getOperationType().intValue() == EnumContractOperationType.PART.getCode().intValue()){
}else if(rentContract.getOperationType().intValue() == EnumContractOperationType.WHOLE.getCode().intValue()){
if (rentContract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { if (rentContract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) {
rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NNEW_RENT_CONTRACT, EnumFlowContractType.WHOLE_SHOP, wxRentContract.getRemark(), wxRentContract.getId(),wxRentContract.getPropertyId())); rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NNEW_RENT_CONTRACT, EnumFlowContractType.WHOLE_SHOP, wxRentContract.getRemark(), wxRentContract.getId(),wxRentContract.getPropertyId()));
}else if (rentContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { }else if (rentContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) {


+ 1
- 1
mallinkService/src/main/java/com/iformall/douyin/web/api/impl/TtWebServiceImpl.java Wyświetl plik

@@ -235,7 +235,7 @@ public class TtWebServiceImpl implements TtWebService, RequestHttp<CloseableHttp
/* /*
* 发生以下情况时尝试刷新access_token * 发生以下情况时尝试刷新access_token
*/ */
if (error.getErrorCode() == ERR_2190008) {
if (error.getErrorCode() == ERR_200104 || error.getErrorCode() == ERR_2190008) {
// 强制设置WxMaConfig的access token过期了,这样在下一次请求里就会刷新access token // 强制设置WxMaConfig的access token过期了,这样在下一次请求里就会刷新access token
this.getTtWebConfig().expireAccessToken(); this.getTtWebConfig().expireAccessToken();
if (this.getTtWebConfig().autoRefreshToken()) { if (this.getTtWebConfig().autoRefreshToken()) {


+ 3
- 0
mallinkService/src/main/java/com/iformall/douyin/web/config/TtWebConstants.java Wyświetl plik

@@ -16,7 +16,10 @@ public class TtWebConstants {
public static final class ErrorCode { public static final class ErrorCode {
/** /**
* 200104 token已过期 * 200104 token已过期
*
* 2190008 token已过期
*/ */
public static final int ERR_200104 = 200104;
public static final int ERR_2190008 = 2190008; public static final int ERR_2190008 = 2190008;


} }


Ładowanie…
Anuluj
Zapisz