Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
V
volunteer_service
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
volunteer_service
Commits
26c9a457
Commit
26c9a457
authored
Feb 03, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图片上传
parent
4736fdb5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
13 deletions
+24
-13
pom.xml
wisenergy-service/pom.xml
+4
-8
SendSmsSerViceImpl.java
...ava/cn/wisenergy/service/app/impl/SendSmsSerViceImpl.java
+6
-0
FileUploadController.java
...energy/web/admin/controller/app/FileUploadController.java
+8
-3
application.yml
wisenergy-web-admin/src/main/resources/application.yml
+6
-2
apiclient_cert.p12
...rgy-web-admin/src/main/resources/wxpay/apiclient_cert.p12
+0
-0
No files found.
wisenergy-service/pom.xml
View file @
26c9a457
...
...
@@ -48,17 +48,13 @@
</dependency>
<!--微信支付-->
<!-- IJPay -->
<dependency>
<groupId>
com.github.
wechatpay-apiv3
</groupId>
<artifactId>
wechatpay-apache-httpclient
</artifactId>
<version>
0.2.1
</version>
<groupId>
com.github.
javen205
</groupId>
<artifactId>
IJPay-All
</artifactId>
<version>
2.2.0
</version>
</dependency>
<dependency>
<groupId>
com.squareup.okhttp3
</groupId>
<artifactId>
okhttp
</artifactId>
<version>
3.6.0
</version>
</dependency>
<!--pdf导出 -->
<dependency>
<groupId>
com.itextpdf
</groupId>
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/SendSmsSerViceImpl.java
View file @
26c9a457
package
cn
.
wisenergy
.
service
.
app
.
impl
;
import
cn.wisenergy.common.utils.R
;
import
cn.wisenergy.mapper.UsersMapper
;
import
cn.wisenergy.model.app.User
;
import
cn.wisenergy.model.enums.SceneType
;
import
cn.wisenergy.model.vo.SendSmsVo
;
import
cn.wisenergy.service.app.SendSmsSerVice
;
...
...
@@ -15,6 +17,7 @@ import com.aliyuncs.IAcsClient;
import
com.aliyuncs.exceptions.ClientException
;
import
com.aliyuncs.http.MethodType
;
import
com.aliyuncs.profile.DefaultProfile
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -40,6 +43,9 @@ public class SendSmsSerViceImpl implements SendSmsSerVice {
@Autowired
private
RestTemplate
restTemplate
;
@Autowired
private
UsersMapper
usersMapper
;
private
static
final
String
SMS_RESULT
=
"OK"
;
@Override
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/FileUploadController.java
View file @
26c9a457
...
...
@@ -16,7 +16,10 @@ import java.io.IOException;
import
java.util.UUID
;
/**
* @author zhangyuelin
*@ Description:
*@ Author : 86187
*@ Date : 2021/2/3 17:05
* @author 86187
*/
@Api
(
tags
=
"图片上传"
)
@RestController
...
...
@@ -36,8 +39,10 @@ public class FileUploadController {
@Value
(
"${uploadFile.location}"
)
private
String
uploadImagesLocation
;
// 允许上传的格式
private
static
final
String
[]
IMAGE_TYPE
=
new
String
[]{
".bmp"
,
".jpg"
,
".jpeg"
,
".gif"
,
".png"
,
".mp4"
,
".mp3"
,
".wav"
};
/**
* 允许上传的格式
*/
private
static
final
String
[]
IMAGE_TYPE
=
new
String
[]{
".bmp"
,
".jpg"
,
".jpeg"
,
".gif"
,
".png"
};
@ApiOperation
(
value
=
"文件上传"
,
notes
=
"文件上传"
)
@PostMapping
(
value
=
"/upload"
,
headers
=
"content-type=multipart/form-data"
)
...
...
wisenergy-web-admin/src/main/resources/application.yml
View file @
26c9a457
...
...
@@ -3,7 +3,7 @@ server:
uri-encoding
:
UTF-8
max-threads
:
1000
min-spare-threads
:
30
port
:
8
0
97
port
:
8
9
97
connection-timeout
:
5000ms
spring
:
...
...
@@ -62,4 +62,8 @@ camera:
appKey
:
23756916
appSecret
:
TDrCbqQXe9XSt7SimYDO
path
:
/artemis
wxpay
:
appId
:
# appid
mchId
:
# 商户号
mchKey
:
# 秘钥
notifyUrl
:
http://127.0.0.1:8080/wxPay/wxPayNotice
#微信支付回调地址
wisenergy-web-admin/src/main/resources/wxpay/apiclient_cert.p12
0 → 100644
View file @
26c9a457
File added
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