|
@@ -200,9 +200,11 @@ public class ChannelOrderController extends BaseApiController {
|
|
|
public AjaxResult settle(@Valid @RequestBody ChannelOrderParam param) {
|
|
|
Long userId = SecurityUtils.getLoginUser().getUserId();
|
|
|
Long channelId = SecurityUtils.getLoginUser().getChannelId();
|
|
|
-
|
|
|
+ Channel channel = channelService.getById(channelId);
|
|
|
+ if (channel.getStatus() == ChannelStatusEnum.OFF) {
|
|
|
+ return AjaxResult.error("账号异常");
|
|
|
+ }
|
|
|
ChannelOrderSettleVO orderSettleVO = new ChannelOrderSettleVO();
|
|
|
-
|
|
|
// 收货地址,如果用户选了地址,则此处不做处理
|
|
|
if (null == param.getAddrId() || 0 == param.getAddrId()) {
|
|
|
//读取默认地址
|