|
@@ -206,8 +206,8 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
@@ -206,8 +206,8 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
206
|
throw new UfoServiceException(400,"商户存在出售中商品,不允许退驻!");
|
206
|
throw new UfoServiceException(400,"商户存在出售中商品,不允许退驻!");
|
207
|
}
|
207
|
}
|
208
|
|
208
|
|
209
|
- String aliPayAccount = getAlipayIDOrAccount(uid);
|
|
|
210
|
- if(StringUtils.isBlank(aliPayAccount)){
|
209
|
+ AuthorizeResultRespVO aliPayAccount = getAlipayIDOrAccount(uid);
|
|
|
210
|
+ if(aliPayAccount == null){
|
211
|
logger.error("quitStoredSeller not allowed cause of aliPayAccount is blank ,uid {}" ,uid);
|
211
|
logger.error("quitStoredSeller not allowed cause of aliPayAccount is blank ,uid {}" ,uid);
|
212
|
throw new UfoServiceException(400,"支付宝账号未绑定,不允许退驻!");
|
212
|
throw new UfoServiceException(400,"支付宝账号未绑定,不允许退驻!");
|
213
|
}
|
213
|
}
|
|
@@ -253,7 +253,7 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
@@ -253,7 +253,7 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
253
|
|
253
|
|
254
|
boolean returnResult=false;
|
254
|
boolean returnResult=false;
|
255
|
if(returnAmount!=null){
|
255
|
if(returnAmount!=null){
|
256
|
- returnResult=merchantOrderPaymentService.returnAllEarnest(uid,orderCode,returnAmount,aliPayAccount);
|
256
|
+ returnResult=merchantOrderPaymentService.returnAllEarnest(uid,orderCode,returnAmount,aliPayAccount.getAlipayId(), aliPayAccount.getAlipayAccount());
|
257
|
logger.info("StoredSellerServiceImpl merchantOrderPaymentService end ,uid {}",uid);
|
257
|
logger.info("StoredSellerServiceImpl merchantOrderPaymentService end ,uid {}",uid);
|
258
|
}
|
258
|
}
|
259
|
|
259
|
|
|
@@ -279,18 +279,12 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
|
@@ -279,18 +279,12 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi |
279
|
|
279
|
|
280
|
|
280
|
|
281
|
@SuppressWarnings("unchecked")
|
281
|
@SuppressWarnings("unchecked")
|
282
|
- private String getAlipayIDOrAccount(int targetUid) {
|
282
|
+ private AuthorizeResultRespVO getAlipayIDOrAccount(int targetUid) {
|
283
|
ApiResponse<AuthorizeResultRespVO> resp = ufoServiceCaller.call("ufo.user.aliPayAccountQuery", ApiResponse.class, targetUid);
|
283
|
ApiResponse<AuthorizeResultRespVO> resp = ufoServiceCaller.call("ufo.user.aliPayAccountQuery", ApiResponse.class, targetUid);
|
284
|
if (resp != null) {
|
284
|
if (resp != null) {
|
285
|
AuthorizeResultRespVO data = (AuthorizeResultRespVO) resp.getData();
|
285
|
AuthorizeResultRespVO data = (AuthorizeResultRespVO) resp.getData();
|
286
|
if (data != null ) {
|
286
|
if (data != null ) {
|
287
|
- if(StringUtils.isNotBlank(data.getAlipayId()) ){
|
|
|
288
|
- return data.getAlipayId();
|
|
|
289
|
- }else if(StringUtils.isNotBlank(data.getAlipayAccount())){
|
|
|
290
|
- return data.getAlipayAccount();
|
|
|
291
|
- }else{
|
|
|
292
|
- return null;
|
|
|
293
|
- }
|
287
|
+ return data ;
|
294
|
}
|
288
|
}
|
295
|
}
|
289
|
}
|
296
|
return null;
|
290
|
return null;
|