根据订单号查询发货单详情接口 dist_order_d_t_os 为空
根据订单号查询发货单详情接口 dist_order_d_t_os 为空
当 SDK 调用 https://doc.youzanyun.com/doc#/content/API/1-381/detail/api/0/940 为空时,可以参考如下方法将返回值转成字符串
YouzanTradeDcQueryQuerybyorderno youzanTradeDcQueryQuerybyorderno = new YouzanTradeDcQueryQuerybyorderno();
//创建参数对象,并设置参数
YouzanTradeDcQueryQuerybyordernoParams youzanTradeDcQueryQuerybyordernoParams = new YouzanTradeDcQueryQuerybyordernoParams();
youzanTradeDcQueryQuerybyordernoParams.setIncludeCanceledDistOrder(true);
youzanTradeDcQueryQuerybyordernoParams.setIncludeOperationLog(true);
youzanTradeDcQueryQuerybyordernoParams.setTid("E20200603114924012400001");
youzanTradeDcQueryQuerybyorderno.setAPIParams(youzanTradeDcQueryQuerybyordernoParams);
YouzanTradeDcQueryQuerybyordernoResult result = yzClient.invoke(youzanTradeDcQueryQuerybyorderno, token, YouzanTradeDcQueryQuerybyordernoResult.class);
把
YouzanTradeDcQueryQuerybyordernoResult result = yzClient.invoke(youzanTradeDcQueryQuerybyorderno, token, YouzanTradeDcQueryQuerybyordernoResult.class);
改成
String result = yzClient.invoke(youzanTradeDcQueryQuerybyorderno, token, String.class);