Просмотр исходного кода

修复不能操作非自己的订单bug;

codingliang 2 лет назад
Родитель
Сommit
37d743281f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/java/com/sqx/modules/errand/service/impl/TbIndentServiceImpl.java

+ 1 - 1
src/main/java/com/sqx/modules/errand/service/impl/TbIndentServiceImpl.java

@@ -1391,7 +1391,7 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
             throw new SqxException("无效的配送单id");
             throw new SqxException("无效的配送单id");
         }
         }
 
 
-        if (indent.getRiderUserId() != currentUserId) {
+        if (!indent.getRiderUserId().equals(currentUserId)) {
             throw new SqxException("不能操作非自己的订单");
             throw new SqxException("不能操作非自己的订单");
         }
         }