@@ -4,4 +4,9 @@ ADD UNIQUE INDEX `email_UNIQUE`(`email`) USING BTREE; | |||||
ALTER TABLE `wx_c_user_basic_info` | ALTER TABLE `wx_c_user_basic_info` | ||||
MODIFY COLUMN `phone` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '微信用户绑定的手机号' AFTER `final_tenant_id`, | MODIFY COLUMN `phone` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '微信用户绑定的手机号' AFTER `final_tenant_id`, | ||||
MODIFY COLUMN `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '邮箱' AFTER `id_card`; | |||||
MODIFY COLUMN `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '邮箱' AFTER `id_card`; | |||||
INSERT INTO `wx_msg_validationcode_model`(`id`, `tenant_id`, `parent_tenant_id`, `type`, `name`, `signature`, `content`, `createtime`, `status`, `minutes`, `model_id`, `email_bg_img`, `open`, `msg_type`, `role_type`, `model_code`) VALUES (66, '0', NULL, 66, '激活邮件', 'metavatar', '<a href=\"https://photo.metavatar.cc?ticket={ticket}\" target=\"_blank\">点击激活</a>', '2023-05-22 13:43:41', 1, NULL, NULL, NULL, 0, 2, 0, NULL); | |||||
INSERT INTO `wx_msg_validationcode_model`(`id`, `tenant_id`, `parent_tenant_id`, `type`, `name`, `signature`, `content`, `createtime`, `status`, `minutes`, `model_id`, `email_bg_img`, `open`, `msg_type`, `role_type`, `model_code`) VALUES (67, '0', NULL, 67, '修改密码邮件', 'metavatar', '<a href=\"https://photo.metavatar.cc?ticket={ticket}\" target=\"_blank\">点击激活</a>', '2023-05-22 13:48:54', 1, NULL, NULL, NULL, 0, 2, 0, NULL); |
@@ -1,6 +1,7 @@ | |||||
package com.iformall.controller; | package com.iformall.controller; | ||||
import com.github.pagehelper.PageInfo; | import com.github.pagehelper.PageInfo; | ||||
import com.iformall.annotation.AuthIgnore; | |||||
import com.iformall.common.ErrorCode; | import com.iformall.common.ErrorCode; | ||||
import com.iformall.common.ResultData; | import com.iformall.common.ResultData; | ||||
import com.iformall.domain.po.base.BaseEntity; | import com.iformall.domain.po.base.BaseEntity; | ||||
@@ -24,6 +25,7 @@ import org.slf4j.LoggerFactory; | |||||
import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
import org.springframework.web.bind.annotation.*; | import org.springframework.web.bind.annotation.*; | ||||
import java.util.HashMap; | |||||
import java.util.List; | import java.util.List; | ||||
@@ -42,6 +44,18 @@ public class VoiceMouldController extends BaseController { | |||||
@Autowired | @Autowired | ||||
private MouldPatchSignService mouldPatchSignService; | private MouldPatchSignService mouldPatchSignService; | ||||
@AuthIgnore | |||||
@ApiOperation("获取语种") | |||||
@GetMapping("getLanguages") | |||||
@ApiImplicitParams({}) | |||||
public ResultData getLanguages() { | |||||
logger.debug("[" + getIpAddr() + "] VoiceMouldController::getLanguages"); | |||||
List<HashMap<String, Object>> allLanguages = EnumLanguages.getAllLanguages(); | |||||
return new ResultData(allLanguages); | |||||
} | |||||
@AuthIgnore | |||||
@ApiOperation("分页列表接口") | @ApiOperation("分页列表接口") | ||||
@GetMapping("list") | @GetMapping("list") | ||||
@ApiImplicitParams({ | @ApiImplicitParams({ | ||||
@@ -57,6 +71,7 @@ public class VoiceMouldController extends BaseController { | |||||
return new ResultData(page); | return new ResultData(page); | ||||
} | } | ||||
@AuthIgnore | |||||
@ApiOperation("根据id查询接口") | @ApiOperation("根据id查询接口") | ||||
@GetMapping("/findById") | @GetMapping("/findById") | ||||
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) | @ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) | ||||
@@ -1,5 +1,10 @@ | |||||
package com.iformall.enums; | package com.iformall.enums; | ||||
import java.util.ArrayList; | |||||
import java.util.EnumSet; | |||||
import java.util.HashMap; | |||||
import java.util.List; | |||||
/** | /** | ||||
* 语种 | * 语种 | ||||
*/ | */ | ||||
@@ -46,6 +51,17 @@ public enum EnumLanguages { | |||||
return null; | return null; | ||||
} | } | ||||
public static List<HashMap<String, Object>> getAllLanguages() { | |||||
List<HashMap<String, Object>> list = new ArrayList<>(); | |||||
for (EnumLanguages languages : EnumSet.allOf(EnumLanguages.class)) { | |||||
HashMap<String, Object> map = new HashMap<>(); | |||||
map.put("code", languages.code); | |||||
map.put("name", languages.message); | |||||
list.add(map); | |||||
} | |||||
return list; | |||||
} | |||||
public String getLanguages() { | public String getLanguages() { | ||||
@@ -928,7 +928,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService,IExc | |||||
String msg = wxMsgValidationcodeModel.getContent(); | String msg = wxMsgValidationcodeModel.getContent(); | ||||
msg = msg.replace("{ticket}", ticket);// | msg = msg.replace("{ticket}", ticket);// | ||||
msg = msg.replace("{bg}", wxMsgValidationcodeModel.getEmailBgImg()); | |||||
// msg = msg.replace("{bg}", wxMsgValidationcodeModel.getEmailBgImg()); | |||||
try{ | try{ | ||||
MimeMessage message = sender.createMimeMessage(); | MimeMessage message = sender.createMimeMessage(); | ||||