Commit cde11a22 by fanjiaxin

推客分佣单入库

parent 761efc6b
Pipeline #75626 passed with stages
in 2 minutes 22 seconds
......@@ -10,8 +10,9 @@ import com.netease.yanxuan.wx.store.sharer.biz.meta.model.bo.RealNameAuthenticat
import com.netease.yanxuan.wx.store.sharer.biz.meta.model.bo.SmsCodeBO;
import com.netease.yanxuan.wx.store.sharer.biz.service.ICommissionOrderService;
import com.netease.yanxuan.wx.store.sharer.biz.service.ISmsService;
import com.netease.yanxuan.wx.store.sharer.biz.service.IUserService;
import com.netease.yanxuan.wx.store.sharer.common.core.Result;
import com.netease.yanxuan.wx.store.sharer.common.exception.BizException;
import com.netease.yanxuan.wx.store.sharer.integration.client.IUserInfoClient;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
......@@ -24,7 +25,7 @@ import org.springframework.web.bind.annotation.*;
@RequiredArgsConstructor
public class TestController {
private final ICommissionOrderService iCommissionOrderService;
private final IUserService iUserService;
private final IUserInfoClient iUserInfoClient;
private final ISmsService iSmsService;
/**
......@@ -60,7 +61,10 @@ public class TestController {
*/
@PostMapping("/realNameAuthenticated")
public Result<Boolean> realNameAuthenticated(@Validated @RequestBody RealNameAuthenticatedBO bo) {
iUserService.realNameAuthenticated(bo);
Boolean isVerifySuccess = iUserInfoClient.verifyByIdentityNo(bo.getUsername(), bo.getIdCardNumber());
if(null == isVerifySuccess || !isVerifySuccess){
throw new BizException("实名认证不通过");
}
return Result.ok(true);
}
}
\ No newline at end of file
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