修改--注释掉文件上传接口
This commit is contained in:
parent
cfe7eb323f
commit
a220be15e1
@ -72,7 +72,7 @@ public class CommonController
|
||||
/**
|
||||
* 通用上传请求(单个)
|
||||
*/
|
||||
@PostMapping("/upload")
|
||||
// @PostMapping("/upload")
|
||||
public AjaxResult uploadFile(MultipartFile file) throws Exception
|
||||
{
|
||||
try
|
||||
@ -98,7 +98,7 @@ public class CommonController
|
||||
/**
|
||||
* 通用上传请求(多个)
|
||||
*/
|
||||
@PostMapping("/uploads")
|
||||
// @PostMapping("/uploads")
|
||||
public AjaxResult uploadFiles(List<MultipartFile> files) throws Exception
|
||||
{
|
||||
try
|
||||
|
||||
@ -119,7 +119,7 @@ public class SysProfileController extends BaseController
|
||||
* 头像上传
|
||||
*/
|
||||
@Log(title = "用户头像", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/avatar")
|
||||
// @PostMapping("/avatar")
|
||||
public AjaxResult avatar(@RequestParam("avatarfile") MultipartFile file) throws Exception
|
||||
{
|
||||
if (!file.isEmpty())
|
||||
|
||||
@ -118,8 +118,8 @@ public class PayController extends BaseController {
|
||||
model.setSubject("" + MCHNO + "");
|
||||
model.setBody(orderTitle + "[" + MCHNO + "]");
|
||||
|
||||
model.setNotifyUrl("http://62.234.19.34:8991/wxPay/result/wxRechargeCallback/" + type); //APP端回调地址
|
||||
// model.setNotifyUrl("https://cesuan.doni.link/wxPay/result/wxRechargeCallback/" + type); //微信端回调地址
|
||||
// model.setNotifyUrl("http://62.234.19.34:8991/wxPay/result/wxRechargeCallback/" + type); //APP端回调地址
|
||||
model.setNotifyUrl("https://cesuan.doni.link/wxPay/result/wxRechargeCallback/" + type); //微信端回调地址
|
||||
model.setReturnUrl("");
|
||||
model.setDivisionMode(divisionMode); //分账模式
|
||||
|
||||
@ -127,9 +127,9 @@ public class PayController extends BaseController {
|
||||
JSONObject extParams = new JSONObject();
|
||||
|
||||
// 返回图片二维码url----------解除注释就是不返回支付地址,而是返回支付二维码--APP端支付
|
||||
if (StringUtils.isNotEmpty(payDataType)) {
|
||||
extParams.put("payDataType", payDataType.trim());
|
||||
}
|
||||
// if (StringUtils.isNotEmpty(payDataType)) {
|
||||
// extParams.put("payDataType", payDataType.trim());
|
||||
// }
|
||||
|
||||
if (StringUtils.isNotEmpty(authCode)) {
|
||||
extParams.put("authCode", authCode.trim());
|
||||
|
||||
@ -10,10 +10,10 @@ spring:
|
||||
# url: jdbc:mysql://localhost:3306/xingming?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
|
||||
# 郑老师
|
||||
url: jdbc:mysql://172.17.0.4:3306/xingming?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
|
||||
# url: jdbc:mysql://172.17.0.4:3306/xingming?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
|
||||
#
|
||||
# 测算腾讯云 mysql地址
|
||||
# url: jdbc:mysql://172.17.0.4:3306/xingming?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
|
||||
url: jdbc:mysql://172.17.0.4:3306/xingming?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
|
||||
username: root
|
||||
password: dnxxkj
|
||||
# password: root
|
||||
|
||||
@ -77,9 +77,9 @@ spring:
|
||||
# redis 配置
|
||||
redis:
|
||||
# 地址 郑老师腾讯云姓名学
|
||||
host: 172.17.0.5
|
||||
# host: 172.17.0.5
|
||||
# 测算 腾讯云一年服务器 redis的地址
|
||||
# host: 172.17.0.3
|
||||
host: 172.17.0.3
|
||||
# host: localhost
|
||||
# 端口,默认为6379
|
||||
port: 6379
|
||||
|
||||
Loading…
Reference in New Issue
Block a user