From 704e120303eec54f6e165b9e4fd58f9a8b2931c6 Mon Sep 17 00:00:00 2001
From: gao <gaoleox@163>
Date: Wed, 01 Jul 2020 12:02:14 +0800
Subject: [PATCH] 快捷卖出接口修改

---
 src/main/java/com/xcong/excoin/common/system/controller/CommonController.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/common/system/controller/CommonController.java b/src/main/java/com/xcong/excoin/common/system/controller/CommonController.java
index eb3cc94..7ba14a0 100644
--- a/src/main/java/com/xcong/excoin/common/system/controller/CommonController.java
+++ b/src/main/java/com/xcong/excoin/common/system/controller/CommonController.java
@@ -10,6 +10,7 @@
 import com.xcong.excoin.utils.OssUtils;
 import com.xcong.excoin.utils.RedisUtils;
 import com.xcong.excoin.utils.SmsUtils;
+import com.xcong.excoin.utils.mail.SmsSend;
 import com.xcong.excoin.utils.mail.SubMailSend;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -58,8 +59,8 @@
 
         // 发送手机验证码
         if (AppContants.ACCOUNT_TYPE_MOBILE.equals(type)) {
-            Map<String, Object> result = SmsUtils.sendVerifyCode(account, code);
-            if (SUCCESS.equals(result.get("returnstatus"))) {
+            boolean result = SmsSend.sendVerifyCode(account, code.toString(), 2);
+            if (result) {
                 Map<String, Object> map = new HashMap<>();
                 boolean flag = redisUtils.set(AppContants.VERIFY_CODE_PREFIX + account, code, 120);
                 map.put("code", flag);

--
Gitblit v1.9.1