Commit 74506fc6 by fanjiaxin

推客短信发送调试

parent 8b07930b
Pipeline #75544 passed with stages
in 1 minute 5 seconds
......@@ -14,6 +14,7 @@ import com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.SmsCodeScen
import com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.UasPushSmsCodeParamBO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
......@@ -46,12 +47,7 @@ public class UasClientImpl implements IUasClient {
try {
MissaResponse<Void> missaResponse = uasFacade.pushSmsCode(params);
log.error("[op:UasClientImpl:sendSmsCode] rpcResult:{}", JSON.toJSONString(missaResponse));
if (null == missaResponse) {
return false;
}
if (missaResponse.isOK()) {
return true;
}
return null != missaResponse && missaResponse.isOK() && HttpStatus.OK.value() == missaResponse.getCode();
} catch (Exception e) {
log.error("[op:UasClientImpl:sendSmsCode] is error", 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