Commit b7724893 by giaogiao

vip开通

parent e066e685
......@@ -3,8 +3,10 @@ package com.sien.common.service.impl;
import cn.hutool.core.util.RandomUtil;
import com.sien.common.service.AppSmsService;
import com.sien.common.service.AppUserService;
import com.sien.common.sms.SendSms;
import com.sien.common.vo.AppUserQueryVo;
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.shiro.jwt.JwtToken;
import lombok.extern.slf4j.Slf4j;
......@@ -104,7 +106,13 @@ public class AppSmsServiceImpl implements AppSmsService {
smsCode.setSmsCode(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);
}
......
......@@ -43,7 +43,7 @@ public class SendSms {
send("+8617621701106", ramdom);
}
private static void send(String receiver, String ramdom) throws Exception {
public 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 appKey = "FKFPgk3X6VRYAMJ9r9CIJWG2709W"; //APP_Key
......
......@@ -14,39 +14,6 @@ spring-boot-plus:
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:
datasource:
url: jdbc:mysql://47.99.47.225:3306/sien?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
......
......@@ -15,6 +15,8 @@ spring-boot-plus:
response-log-format: false
domain: https://sienapi.da300.com
server:
port: 8181
spring:
datasource:
......
......@@ -259,6 +259,40 @@ mybatis-plus:
mapper-locations: classpath*:mapper/**/*Mapper.xml
################################ 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 ################################
---
......
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