FengChaoYu 9 mēneši atpakaļ
vecāks
revīzija
866f12e930

+ 4 - 0
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/material/WebsitSalesLogic.java

@@ -319,6 +319,10 @@ public class WebsitSalesLogic {
     public String add(String websitId, String goodsType, String remark, HttpServletRequest request) {
         CurrentCompanyWechat wechat = commonLogic.getCurrentCompanyWechat(request);
 
+        if (StringUtils.isBlank(wechat.getUser().getMobile())) {
+            throw new RemoteServiceException("未发现手机号, 不能提交订单");
+        }
+
         List<WebsitShoppingCartList> shoppingCartLists = this.queryShoppingCart(wechat.getUserId(), websitId, goodsType);
 
         //订单