|
|
@@ -10,6 +10,7 @@ import com.usoftchina.saas.purchase.dto.PurchaseFormDTO;
|
|
|
import com.usoftchina.saas.transfers.config.B2BConfig;
|
|
|
import com.usoftchina.saas.transfers.utils.SendUtil;
|
|
|
import com.usoftchina.saas.utils.CollectionUtils;
|
|
|
+import com.usoftchina.saas.utils.StringUtils;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
|
import org.slf4j.Logger;
|
|
|
@@ -66,8 +67,8 @@ public class SendPurchaseEndTaskTest {
|
|
|
//添加身份ID
|
|
|
String url = b2bConfig.getCommon() + purchaseEndUrl + "?access_id=" + companyDTO.getUu();
|
|
|
//发送给b2b
|
|
|
- boolean success = SendUtil.sendToB2B(url, JSON.toJSONString(purchaseDetailEndList), companyDTO.getAccessKey());
|
|
|
- if (success) {
|
|
|
+ String message = SendUtil.sendToB2B(url, JSON.toJSONString(purchaseDetailEndList), companyDTO.getAccessKey());
|
|
|
+ if (StringUtils.isEmpty(message)) {
|
|
|
LOGGER.info("上传成功!");
|
|
|
} else {
|
|
|
LOGGER.info("上传失败!");
|