Commit dc279d18 authored by wujiang's avatar wujiang

提交代码

parent 7351f520
......@@ -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.model.AgencyUserModel;
import com.yeejoin.amos.feign.privilege.util.AesUtil;
import com.yeejoin.amos.feign.systemctl.Systemctl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
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.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
......@@ -27,6 +30,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
......@@ -64,6 +68,12 @@ public class TestController extends BaseController {
AcceptanceCheckMapper acceptanceCheckMapper;
@Autowired
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)
......@@ -297,4 +307,40 @@ public class TestController extends BaseController {
}
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
# ������Ӧ��code
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
......@@ -272,8 +272,7 @@ hygf.icbc.camsPublicKey=655CE8706E6ED9A30B92E57D8D645ADDE8C541C27C5C5AFD529C610C
hygf.icbc.apigwPublicKey=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMpjaWjngB4E3ATh+G1DVAmQnIpiPEFAEDqRfNGAVvvH35yDetqewKi0l7OEceTMN1C6NPym3zStvSoQayjYV+eIcZERkx31KhtFu9clZKgRTyPjdKMIth/wBtPKjL/5+PYalLdomM4ONthrPgnkN4x4R0+D4+EBpXo8gNiAFsNwIDAQAB
hygf.icbc.outVendorId=gxjr
hygf.icbc.projectId=PJ140014023565102203
hygf.sms.maintenanceCode=SMS_HYGF_0005
hygf.sms.repaymentCode=SMS_HYGF_0006
icbc.Withhold.projectId=PJ140014023565102203
icbc.Withhold.corpCis=211590000183323
icbc.Withhold.partner.identification=JO004
......@@ -282,4 +281,9 @@ icbc.Withhold.sftpUserName=jrgf
icbc.Withhold.sftpPort=8001
icbc.Withhold.sftpIp=gw.open.icbc.com.cn
withholdStatusCron=0,30 8-23 * * * ?
withholdReceiptFileCron=0 0 23 * * ?
\ No newline at end of file
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
......@@ -88,8 +88,4 @@ feign.okhttp.enabled= true
workflow.feign.name=AMOS-API-WORKFLOW
repaymentCron=0 0 1 * * ?
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
urlHttp=http://47.92.234.253:9000
\ 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