Commit f3fa0df4 by fanjiaxin

推客短信发送调试

parent 91352be3
Pipeline #75551 passed with stages
in 1 minute 0 seconds
......@@ -7,12 +7,13 @@
package com.netease.yanxuan.wx.store.sharer.integration.client.impl;
import com.alibaba.fastjson.JSON;
import com.netease.yanxuan.missa.specs.interfaces.response.MissaResponse;
import com.netease.yanxuan.userinfo.client.meta.CommonResult;
import com.netease.yanxuan.wx.store.sharer.integration.client.IUserInfoClient;
import com.netease.yanxuan.wx.store.sharer.integration.facade.UserInfoFacade;
import com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.UserInfoVerifyByIdentityNoBO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
......@@ -27,10 +28,10 @@ public class UserInfoClientImpl implements IUserInfoClient {
log.info("[op:UserInfoClientImpl:verifyByIdentityNo] realName:{}, identityNo:{}", realName, identityNo);
try {
UserInfoVerifyByIdentityNoBO bo = UserInfoVerifyByIdentityNoBO.builder().realName(realName).identityNo(identityNo).build();
MissaResponse<Boolean> missaResponse = userInfoFacade.verifyByIdentityNo(bo);
CommonResult<Boolean> missaResponse = userInfoFacade.verifyByIdentityNo(bo);
log.info("[op:UserInfoClientImpl:verifyByIdentityNo] missaResponse:{}", JSON.toJSONString(missaResponse));
if (null != missaResponse && missaResponse.isOK()) {
return missaResponse.getData();
if (null != missaResponse && HttpStatus.OK.value() == missaResponse.getCode()) {
return missaResponse.getResult();
}
} catch (Exception e) {
log.error("[op:UserInfoClientImpl:verifyByIdentityNo] is error", e);
......
package com.netease.yanxuan.wx.store.sharer.integration.facade;
import com.netease.yanxuan.missa.client.annotation.MissaClient;
import com.netease.yanxuan.missa.specs.interfaces.response.MissaResponse;
import com.netease.yanxuan.userinfo.client.meta.CommonResult;
import com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.UserInfoVerifyByIdentityNoBO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -11,5 +11,5 @@ import org.springframework.web.bind.annotation.RequestMethod;
public interface UserInfoFacade {
@RequestMapping(value = "/user/realName/verifyByIdentityNo", method = RequestMethod.POST)
MissaResponse<Boolean> verifyByIdentityNo(@RequestBody UserInfoVerifyByIdentityNoBO bo);
CommonResult<Boolean> verifyByIdentityNo(@RequestBody UserInfoVerifyByIdentityNoBO bo);
}
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