有赞新零售社区

发帖
API使用问题»java 新增积分接口报错

[API调用-会员/营销] java 新增积分接口报错

Alex 2022-06-14 766 浏览 1 评论 | 只看楼主 [打印]

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("测试增加积分");
用手机打开
收藏 ··· 回复
       有赞云团队   2022-06-14 | 只看该作者
    您好,请给下trace_id,这边定位日志排查下。

      1跳至
      您需要登录后才可以回帖 登录 | 立即注册

      本版积分规则

      复制链接
      新浪微博
      QQ空间
      微信扫码
      • 回复

      • 评分

      客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

      复制成功