Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SiEn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
SiEn
Commits
b7724893
Commit
b7724893
authored
Mar 11, 2021
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vip开通
parent
e066e685
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
35 deletions
+46
-35
common/src/main/java/com/sien/common/service/impl/AppSmsServiceImpl.java
+9
-1
common/src/main/java/com/sien/common/sms/SendSms.java
+1
-1
config/src/main/resources/config/application-dev.yml
+0
-33
config/src/main/resources/config/application-prod.yml
+2
-0
config/src/main/resources/config/application.yml
+34
-0
No files found.
common/src/main/java/com/sien/common/service/impl/AppSmsServiceImpl.java
View file @
b7724893
...
@@ -3,8 +3,10 @@ package com.sien.common.service.impl;
...
@@ -3,8 +3,10 @@ package com.sien.common.service.impl;
import
cn.hutool.core.util.RandomUtil
;
import
cn.hutool.core.util.RandomUtil
;
import
com.sien.common.service.AppSmsService
;
import
com.sien.common.service.AppSmsService
;
import
com.sien.common.service.AppUserService
;
import
com.sien.common.service.AppUserService
;
import
com.sien.common.sms.SendSms
;
import
com.sien.common.vo.AppUserQueryVo
;
import
com.sien.common.vo.AppUserQueryVo
;
import
com.sien.common.vo.SmsCode
;
import
com.sien.common.vo.SmsCode
;
import
io.geekidea.springbootplus.framework.common.api.ApiCode
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.shiro.jwt.JwtToken
;
import
io.geekidea.springbootplus.framework.shiro.jwt.JwtToken
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -104,7 +106,13 @@ public class AppSmsServiceImpl implements AppSmsService {
...
@@ -104,7 +106,13 @@ public class AppSmsServiceImpl implements AppSmsService {
smsCode
.
setSmsCode
(
randomCode
);
smsCode
.
setSmsCode
(
randomCode
);
log
.
info
(
area
+
","
+
number
+
":"
+
randomCode
);
log
.
info
(
area
+
","
+
number
+
":"
+
randomCode
);
// TODO 需要补充调用短信平台发送短信代码 2020年09月30日09:48:42
// 调用短信平台发送短信代码 2020年09月30日09:48:42
try
{
SendSms
.
send
(
"+"
+
area
+
number
,
randomCode
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ApiResult
.
fail
(
ApiCode
.
FAIL
,
null
);
}
return
ApiResult
.
ok
(
null
);
return
ApiResult
.
ok
(
null
);
}
}
...
...
common/src/main/java/com/sien/common/sms/SendSms.java
View file @
b7724893
...
@@ -43,7 +43,7 @@ public class SendSms {
...
@@ -43,7 +43,7 @@ public class SendSms {
send
(
"+8617621701106"
,
ramdom
);
send
(
"+8617621701106"
,
ramdom
);
}
}
p
rivate
static
void
send
(
String
receiver
,
String
ramdom
)
throws
Exception
{
p
ublic
static
void
send
(
String
receiver
,
String
ramdom
)
throws
Exception
{
//必填,请参考"开发准备"获取如下数据,替换为实际值
//必填,请参考"开发准备"获取如下数据,替换为实际值
String
url
=
"https://rtcsms.cn-north-1.myhuaweicloud.com:10743/sms/batchSendSms/v1"
;
//APP接入地址+接口访问URI
String
url
=
"https://rtcsms.cn-north-1.myhuaweicloud.com:10743/sms/batchSendSms/v1"
;
//APP接入地址+接口访问URI
String
appKey
=
"FKFPgk3X6VRYAMJ9r9CIJWG2709W"
;
//APP_Key
String
appKey
=
"FKFPgk3X6VRYAMJ9r9CIJWG2709W"
;
//APP_Key
...
...
config/src/main/resources/config/application-dev.yml
View file @
b7724893
...
@@ -14,39 +14,6 @@ spring-boot-plus:
...
@@ -14,39 +14,6 @@ spring-boot-plus:
domain
:
https://c7a30ed052d8.ngrok.io
domain
:
https://c7a30ed052d8.ngrok.io
wx
:
# token: sDsdaSDADad
# # 测试号的appid,测试号管理界面有
# appid: wx7aac805012428dc5
# # 测试号的appsecret,测试号管理界面有
# appsecret:
# # =服务调用的url地址,用于微信web的oauth2授权回调等,若没有可为空。
# callback-url: wx7aac805012428dc5
#
mp
:
useRedis
:
false
redisConfig
:
host
:
127.0.0.1
port
:
6379
configs
:
-
appId
:
wxe4a696e431b0456b
# 第一个公众号的appid
secret
:
87dbca535a713cd505be2f928fa84c29
# 公众号的appsecret
token
:
111
# 接口配置里的Token值
aesKey
:
111
# 接口配置里的EncodingAESKey值
-
appId
:
2222
# 第二个公众号的appid,以下同上
secret
:
1111
token
:
111
aesKey
:
111
pay
:
appId
:
wxe4a696e431b0456b
#微信公众号或者小程序等的appid
mchId
:
1606818547
#微信支付商户号
mchKey
:
H0p6dhiXRr5FocmzZluNVqyG7QALISj1
#微信支付商户密钥
# subAppId: #服务商模式下的子商户公众账号ID
# subMchId: #服务商模式下的子商户号
keyPath
:
classpath:src/main/java/io/geekidea/springbootplus/config/properties/apiclient_cert.p12
# p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://47.99.47.225:3306/sien?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://47.99.47.225:3306/sien?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
...
...
config/src/main/resources/config/application-prod.yml
View file @
b7724893
...
@@ -15,6 +15,8 @@ spring-boot-plus:
...
@@ -15,6 +15,8 @@ spring-boot-plus:
response-log-format
:
false
response-log-format
:
false
domain
:
https://sienapi.da300.com
domain
:
https://sienapi.da300.com
server
:
port
:
8181
spring
:
spring
:
datasource
:
datasource
:
...
...
config/src/main/resources/config/application.yml
View file @
b7724893
...
@@ -259,6 +259,40 @@ mybatis-plus:
...
@@ -259,6 +259,40 @@ mybatis-plus:
mapper-locations
:
classpath*:mapper/**/*Mapper.xml
mapper-locations
:
classpath*:mapper/**/*Mapper.xml
################################ mybatis-plus end ##################################
################################ mybatis-plus end ##################################
wx
:
# token: sDsdaSDADad
# # 测试号的appid,测试号管理界面有
# appid: wx7aac805012428dc5
# # 测试号的appsecret,测试号管理界面有
# appsecret:
# # =服务调用的url地址,用于微信web的oauth2授权回调等,若没有可为空。
# callback-url: wx7aac805012428dc5
#
mp
:
useRedis
:
false
redisConfig
:
host
:
127.0.0.1
port
:
6379
configs
:
-
appId
:
wxe4a696e431b0456b
# 第一个公众号的appid
secret
:
87dbca535a713cd505be2f928fa84c29
# 公众号的appsecret
token
:
111
# 接口配置里的Token值
aesKey
:
111
# 接口配置里的EncodingAESKey值
-
appId
:
2222
# 第二个公众号的appid,以下同上
secret
:
1111
token
:
111
aesKey
:
111
pay
:
appId
:
wxe4a696e431b0456b
#微信公众号或者小程序等的appid
mchId
:
1606818547
#微信支付商户号
mchKey
:
H0p6dhiXRr5FocmzZluNVqyG7QALISj1
#微信支付商户密钥
# subAppId: #服务商模式下的子商户公众账号ID
# subMchId: #服务商模式下的子商户号
keyPath
:
classpath:src/main/java/io/geekidea/springbootplus/config/properties/apiclient_cert.p12
# p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
############################### HikariCP 数据源配置 start ################################
############################### HikariCP 数据源配置 start ################################
---
---
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment