Commit a48a95e7 authored by Administrator's avatar Administrator

Merge branch 'staging' into 'master'

修改未绑定ip的店铺 bug

See merge request !158
parents 93bed975 2b46ea9b
......@@ -131,7 +131,7 @@ public class IpAndShopServiceImpl implements IpAndShopService {
// 7. 更新 ip 资源的绑定状态为 未绑定
IpResource newIp = ipResourceRepository.findById(ipResource.getId()).orElse(null);
if (newIp.getShopIds() == null || !newIp.getShopIds().contains(shopId)) {
if (newIp.getShopIds() == null || newIp.getShopIds().isEmpty()) {
ipResourceRepository.updateBind(ipResource.getId(), false);
}
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment