|
@@ -14,6 +14,7 @@ import com.tianhu.system.common.IMessageUtilsService;
|
|
|
import com.tianhu.system.common.ValidateCodeService;
|
|
|
import com.tianhu.system.domain.PubVerifyCode;
|
|
|
import com.tianhu.system.service.IPubVerifyCodeService;
|
|
|
+import com.tianhu.system.service.ISysDictDataService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -62,7 +63,6 @@ public class MessageController extends BaseController
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
- @Log(title = "发送短信", businessType = BusinessType.INSERT)
|
|
|
@Transactional(rollbackFor=Exception.class)
|
|
|
@PostMapping("/sendShortMessage")
|
|
|
public AjaxResult sendShortMessage(@RequestBody Map<String, String> requestBody) throws Exception {
|
|
@@ -109,8 +109,9 @@ public class MessageController extends BaseController
|
|
|
Map<String, String> param = new HashMap<>();
|
|
|
param.put("code", random);
|
|
|
// 获取注册模板ID
|
|
|
- String templateCode = RedisUtils.getDictValue("aliyun_message_code", "zhuce");
|
|
|
- iMessageUtilsService.sendMessageCode(requestBody.get("phone"), templateCode, param, random);
|
|
|
+// String templateCode = RedisUtils.getDictValue("aliyun_message_code", "zhuce");
|
|
|
+// String templateCode = dictDataService.selectDictValue("aliyun_message_code", "zhuce");
|
|
|
+ iMessageUtilsService.sendMessageCode(requestBody.get("phone"), "zhuce", param, random);
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
}
|