YouzanCrmCustomerPointsIncrease youzanCrmCustomerPointsIncrease = new YouzanCrmCustomerPointsIncrease();
YouzanCrmCustomerPointsIncreaseParams youzanCrmCustomerPointsIncreaseParams = new YouzanCrmCustomerPointsIncreaseParams();
YouzanCrmCustomerPointsIncreaseParams.YouzanCrmCustomerPointsIncreaseParamsParams youzanCrmCustomerPointsIncreaseParamsParams = new YouzanCrmCustomerPointsIncreaseParams.YouzanCrmCustomerPointsIncreaseParamsParams();
youzanCrmCustomerPointsIncreaseParamsParams.setReason("测试增加积分");
youzanCrmCustomerPointsIncreaseParamsParams.setBizValue("2022061401");
youzanCrmCustomerPointsIncreaseParamsParams.setCheckCustomer(false);
youzanCrmCustomerPointsIncreaseParamsParams.setPoints(10);
youzanCrmCustomerPointsIncreaseParamsParams.setIsDoExtPoint(false);
youzanCrmCustomerPointsIncreaseParams.setParams(youzanCrmCustomerPointsIncreaseParamsParams);
YouzanCrmCustomerPointsIncreaseParams.YouzanCrmCustomerPointsIncreaseParamsUser youzanCrmCustomerPointsIncreaseParamsUser = new YouzanCrmCustomerPointsIncreaseParams.YouzanCrmCustomerPointsIncreaseParamsUser();
youzanCrmCustomerPointsIncreaseParamsUser.setAccountType(5);
youzanCrmCustomerPointsIncreaseParamsUser.setAccountId(yzOpenId);
youzanCrmCustomerPointsIncreaseParamsParams.setUser(youzanCrmCustomerPointsIncreaseParamsUser);
youzanCrmCustomerPointsIncrease.setAPIParams(youzanCrmCustomerPointsIncreaseParams);
YouzanCrmCustomerPointsIncreaseResult result2 = yzClient.invoke(youzanCrmCustomerPointsIncrease, token, YouzanCrmCustomerPointsIncreaseResult.class);
System.out.println("添加积分:" + JsonUtils.toStr(result2));
java 新增积分接口报错“reason should not be empty”,但是我已经设置过youzanCrmCustomerPointsIncreaseParamsParams.setReason("测试增加积分");
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|