|
|
@@ -303,8 +303,12 @@ public class OtcTradeOrderServiceImpl implements OtcTradeOrderService {
|
|
|
}
|
|
|
|
|
|
private void initPayParams(LoginUser loginUser, PayOrderReqVO payOrderReqVO){
|
|
|
- payOrderReqVO.setAccountId(loginUser.getDistributorId().toString());
|
|
|
- payOrderReqVO.setAccountType(PayAccountTypeEnum.OTC.getType());
|
|
|
+ if(loginUser.getDistributorId()==null){
|
|
|
+ payOrderReqVO.setAccountType(PayAccountTypeEnum.OTC.getType());
|
|
|
+ }else {
|
|
|
+ payOrderReqVO.setAccountId(loginUser.getDistributorId().toString());
|
|
|
+ payOrderReqVO.setAccountType(PayAccountTypeEnum.OTC.getType());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|