Commit 4945015d by 吕明尚

用户验劵增加门店授权ID判断

parent ba42ee05
......@@ -97,6 +97,9 @@ public class QPServiceImpl implements QPService {
if (ObjectUtils.isEmpty(sStore) || StoreStatusEnum.STOP.getIndex().equals(sStore.getStatus())) {
throw new RuntimeException("门店状态异常,请联系管理员");
}
if (StringUtils.isEmpty(sStore.getOpenShopUuid())) {
throw new RuntimeException("门店未授权,请联系管理员");
}
//验券准备
TuangouReceiptPrepareResponseEntity prepare = prepare(code.trim(), sStore.getOpenShopUuid(), status);
//获取用户信息
......
......@@ -9,6 +9,7 @@ import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.github.pagehelper.util.StringUtil;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -334,6 +335,9 @@ public class TiktokServiceImpl implements TiktokService {
if (ObjectUtils.isEmpty(sStore) || StoreStatusEnum.STOP.getIndex().equals(sStore.getStatus())) {
throw new RuntimeException("门店状态异常,请联系管理员");
}
if (StringUtils.isEmpty(sStore.getTiktokPoiId())) {
throw new RuntimeException("门店未授权,请联系管理员");
}
if (code.startsWith("https://v.douyin.com/") | code.length() == 15) {
try {
TiktokCouponDto tiktokCouponDto = new TiktokCouponDto();
......
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