Commit dc279d18 authored by wujiang's avatar wujiang

提交代码

parent 7351f520
...@@ -14,12 +14,15 @@ import com.yeejoin.amos.component.feign.model.FeignClientResult; ...@@ -14,12 +14,15 @@ import com.yeejoin.amos.component.feign.model.FeignClientResult;
import com.yeejoin.amos.feign.privilege.Privilege; import com.yeejoin.amos.feign.privilege.Privilege;
import com.yeejoin.amos.feign.privilege.model.AgencyUserModel; import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
import com.yeejoin.amos.feign.privilege.util.AesUtil; import com.yeejoin.amos.feign.privilege.util.AesUtil;
import com.yeejoin.amos.feign.systemctl.Systemctl;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType; import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation; import org.typroject.tyboot.core.restful.doc.TycloudOperation;
...@@ -27,6 +30,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel; ...@@ -27,6 +30,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*; import java.util.*;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
...@@ -64,6 +68,12 @@ public class TestController extends BaseController { ...@@ -64,6 +68,12 @@ public class TestController extends BaseController {
AcceptanceCheckMapper acceptanceCheckMapper; AcceptanceCheckMapper acceptanceCheckMapper;
@Autowired @Autowired
FinancingInfoMapper financingInfoMapper; FinancingInfoMapper financingInfoMapper;
@Value("${hygf.sms.repaymentCode}")
private String repaymentCode;
@Value("${hygf.sms.maintenanceCode}")
private String maintenanceCode;
@Value("${hygf.sms.tempCode}")
private String smsTempCode;
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
...@@ -297,4 +307,40 @@ public class TestController extends BaseController { ...@@ -297,4 +307,40 @@ public class TestController extends BaseController {
} }
return CommonResponseNewUtil.success(); return CommonResponseNewUtil.success();
} }
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@GetMapping(value = "/sms")
public void sms(@RequestParam String mobile)
{
HashMap<String, String> params1 = new HashMap<>(6);
params1.put("code","1");
params1.put("mobile",mobile);
params1.put("smsCode", smsTempCode);
try {
Systemctl.smsClient.sendCommonSms(params1).getResult();
} catch (Exception e) {
log.error(e.getMessage(),e);
}
HashMap<String, String> params = new HashMap<>(6);
params.put("1","1");
params.put("2","2");
params.put("3","3");
params.put("4","4");
params.put("mobile",mobile);
params.put("smsCode", repaymentCode);
try {
Systemctl.smsClient.sendCommonSms(params).getResult();
} catch (Exception e) {
log.error(e.getMessage(),e);
}
params.put("smsCode", maintenanceCode);
try {
Systemctl.smsClient.sendCommonSms(params).getResult();
} catch (Exception e) {
log.error(e.getMessage(),e);
}
}
} }
\ No newline at end of file
...@@ -135,7 +135,7 @@ regulator.unit.code=86*258 ...@@ -135,7 +135,7 @@ regulator.unit.code=86*258
# ������Ӧ��code # ������Ӧ��code
dealer.appcode=studio_normalapp_5133538 dealer.appcode=studio_normalapp_5133538
hygf.sms.tempCode=SMS_HYGF_0001
# ������������� # �������������
sms.huawei.url=https://smsapi.cn-north-4.myhuaweicloud.com:443/sms/batchSendSms/v1 sms.huawei.url=https://smsapi.cn-north-4.myhuaweicloud.com:443/sms/batchSendSms/v1
...@@ -272,8 +272,7 @@ hygf.icbc.camsPublicKey=655CE8706E6ED9A30B92E57D8D645ADDE8C541C27C5C5AFD529C610C ...@@ -272,8 +272,7 @@ hygf.icbc.camsPublicKey=655CE8706E6ED9A30B92E57D8D645ADDE8C541C27C5C5AFD529C610C
hygf.icbc.apigwPublicKey=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMpjaWjngB4E3ATh+G1DVAmQnIpiPEFAEDqRfNGAVvvH35yDetqewKi0l7OEceTMN1C6NPym3zStvSoQayjYV+eIcZERkx31KhtFu9clZKgRTyPjdKMIth/wBtPKjL/5+PYalLdomM4ONthrPgnkN4x4R0+D4+EBpXo8gNiAFsNwIDAQAB hygf.icbc.apigwPublicKey=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMpjaWjngB4E3ATh+G1DVAmQnIpiPEFAEDqRfNGAVvvH35yDetqewKi0l7OEceTMN1C6NPym3zStvSoQayjYV+eIcZERkx31KhtFu9clZKgRTyPjdKMIth/wBtPKjL/5+PYalLdomM4ONthrPgnkN4x4R0+D4+EBpXo8gNiAFsNwIDAQAB
hygf.icbc.outVendorId=gxjr hygf.icbc.outVendorId=gxjr
hygf.icbc.projectId=PJ140014023565102203 hygf.icbc.projectId=PJ140014023565102203
hygf.sms.maintenanceCode=SMS_HYGF_0005
hygf.sms.repaymentCode=SMS_HYGF_0006
icbc.Withhold.projectId=PJ140014023565102203 icbc.Withhold.projectId=PJ140014023565102203
icbc.Withhold.corpCis=211590000183323 icbc.Withhold.corpCis=211590000183323
icbc.Withhold.partner.identification=JO004 icbc.Withhold.partner.identification=JO004
...@@ -283,3 +282,8 @@ icbc.Withhold.sftpPort=8001 ...@@ -283,3 +282,8 @@ icbc.Withhold.sftpPort=8001
icbc.Withhold.sftpIp=gw.open.icbc.com.cn icbc.Withhold.sftpIp=gw.open.icbc.com.cn
withholdStatusCron=0,30 8-23 * * * ? withholdStatusCron=0,30 8-23 * * * ?
withholdReceiptFileCron=0 0 23 * * ? withholdReceiptFileCron=0 0 23 * * ?
hygf.sms.tempCode=SMS_HYGF_0001
hygf.sms.maintenanceCode=SMS_HYGF_0005
hygf.sms.repaymentCode=SMS_HYGF_0006
\ No newline at end of file
...@@ -89,7 +89,3 @@ feign.okhttp.enabled= true ...@@ -89,7 +89,3 @@ feign.okhttp.enabled= true
workflow.feign.name=AMOS-API-WORKFLOW workflow.feign.name=AMOS-API-WORKFLOW
repaymentCron=0 0 1 * * ? repaymentCron=0 0 1 * * ?
urlHttp=http://47.92.234.253:9000 urlHttp=http://47.92.234.253:9000
hygf.sms.tempCode=SMS_HYGF_0007
hygf.sms.maintenanceCode=SMS_HYGF_0008
hygf.sms.repaymentCode=SMS_HYGF_0009
\ 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