本人使用java SDK调用API接口,但是在获取客户账号下权益卡列表(youzan.scrm.customer.card.list.4.0.0)的API接口中无法设置state参数
- @Override
- public void customerCardList(String tel, Token token) throws SDKException, ImoocMallException, Exception {
- YouzanScrmCustomerCardList youzanScrmCustomerCardList = new YouzanScrmCustomerCardList();
- //创建参数对象,并设置参数
- YouzanScrmCustomerCardListParams youzanScrmCustomerCardListParams = new YouzanScrmCustomerCardListParams();
- YouzanScrmCustomerCardListParams.YouzanScrmCustomerCardListParamsParams youzanScrmCustomerCardListParamsParams = new YouzanScrmCustomerCardListParams.YouzanScrmCustomerCardListParamsParams();
- youzanScrmCustomerCardListParams.setParams(youzanScrmCustomerCardListParamsParams);
-
- youzanScrmCustomerCardListParamsParams.setState(true);
- YouzanScrmCustomerCardListParams.YouzanScrmCustomerCardListParamsUser youzanScrmCustomerCardListParamsUser = new YouzanScrmCustomerCardListParams.YouzanScrmCustomerCardListParamsUser();
- youzanScrmCustomerCardListParamsParams.setUser(youzanScrmCustomerCardListParamsUser);
- youzanScrmCustomerCardListParamsUser.setAccountType(2);
- youzanScrmCustomerCardListParamsUser.setAccountId(tel);
-
- youzanScrmCustomerCardListParamsParams.setPageNo(1);
- youzanScrmCustomerCardList.setAPIParams(youzanScrmCustomerCardListParams);
- YouzanScrmCustomerCardListResult result = yzClient
- .invoke(youzanScrmCustomerCardList, token, YouzanScrmCustomerCardListResult.class);
复制代码 报错是The method setState(boolean) is undefined for the type YouzanScrmCustomerCardListParams.YouzanScrmCustomerCardListParamsParams。
说是YouzanScrmCustomerCardListParamsParams类未定义方法setState
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|