|
|
|
@@ -50,7 +50,7 @@ public class WxMsgModelServiceImpl implements WxMsgModelService { |
|
|
|
|
|
|
|
//从短信配置中查询密钥 bid 等信息 |
|
|
|
WxMsgConfig wxMsgConfig = new WxMsgConfig(); |
|
|
|
wxMsgConfig.setTenantId(wxMsgModel.getTenantId()); |
|
|
|
wxMsgConfig.updateTenantInfo(wxMsgModel); |
|
|
|
List<WxMsgConfig> wxMsgConfigs = wxMsgConfigMapper.findList(wxMsgConfig); |
|
|
|
if (wxMsgConfigs.size() == 0) |
|
|
|
return new ResultData(ErrorCode.MSG_SERVER_NOT_FIND.getCode(), "您还未接入短信运营商,请联系平台管理员"); |
|
|
|
@@ -82,7 +82,6 @@ public class WxMsgModelServiceImpl implements WxMsgModelService { |
|
|
|
if (wxMsgModel.getId() == null) { |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
wxMsgModel.setId(idWorker.nextId()); |
|
|
|
wxMsgModel.updateTenantInfo(wxMsgModel); |
|
|
|
if(jsonObjectResult.get("data") != null){ |
|
|
|
String data = jsonObjectResult.get("data").toString(); |
|
|
|
wxMsgModel.setModelId(Integer.valueOf(data)); |
|
|
|
@@ -109,7 +108,6 @@ public class WxMsgModelServiceImpl implements WxMsgModelService { |
|
|
|
if (wxMsgModel.getId() == null) { |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
wxMsgModel.setId(idWorker.nextId()); |
|
|
|
wxMsgModel.updateTenantInfo(wxMsgModel); |
|
|
|
wxMsgModel.setCreatetime(new Date()); |
|
|
|
wxMsgModel.setStatus(1); |
|
|
|
wxMsgModelMapper.insert(wxMsgModel); |
|
|
|
|