|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package cc.yunxi.service.impl;
|
|
|
|
|
|
|
|
|
|
import cc.yunxi.common.exception.BizIllegalException;
|
|
|
|
|
import cc.yunxi.common.exception.BusinessLogicException;
|
|
|
|
|
import cc.yunxi.common.exception.ForbiddenException;
|
|
|
|
|
import cc.yunxi.config.props.WxHsyProperties;
|
|
|
|
|
import cc.yunxi.config.props.WxShProperties;
|
|
|
|
@ -102,7 +103,7 @@ public class CommonService implements ICommonService {
|
|
|
|
|
Recycler recycler = recyclerService.getRecyclerByPhoneNumber(userDTO.getPhone());
|
|
|
|
|
if (recycler == null) {
|
|
|
|
|
// 回收员不存在,则注册, 注册入口关闭,由PC端添加
|
|
|
|
|
throw new ForbiddenException("回收员不存在,请先联系商户注册");
|
|
|
|
|
throw new BusinessLogicException("回收员不存在,请先联系商户注册");
|
|
|
|
|
// recycler = recyclerService.registerRecycler(userDTO.getPhone(), userDTO.getOpenid());
|
|
|
|
|
}
|
|
|
|
|
if (ObjectUtil.isEmpty(recycler.getOpenid())) {
|
|
|
|
|