|
@@ -13,6 +13,7 @@ import com.xjrsoft.common.sms.SmsSender;
|
|
|
import com.xjrsoft.common.utils.LocalDateTimeUtil;
|
|
|
import com.xjrsoft.common.utils.RedisUtil;
|
|
|
import com.xjrsoft.common.utils.WeChatUtil;
|
|
|
+import com.xjrsoft.config.CommonPropertiesConfig;
|
|
|
import com.xjrsoft.module.oa.entity.Message;
|
|
|
import com.xjrsoft.module.oa.service.IMessageService;
|
|
|
import com.xjrsoft.module.organization.entity.User;
|
|
@@ -71,6 +72,8 @@ public class SendMessageUtil {
|
|
|
|
|
|
WeChatUtil weChatUtil = SpringUtil.getBean(WeChatUtil.class);
|
|
|
|
|
|
+ CommonPropertiesConfig cpConfig = SpringUtil.getBean(CommonPropertiesConfig.class);
|
|
|
+
|
|
|
//获取用户相关信息
|
|
|
List<User> userList = redisUtil.get(GlobalConstant.USER_CACHE_KEY, new TypeReference<List<User>>() {
|
|
|
});
|
|
@@ -112,7 +115,7 @@ public class SendMessageUtil {
|
|
|
object.put("template_id", "sHsmz7LRj7HLd7GSTS3r2jCLvK-4Wp19iGzEvYK8n_I");
|
|
|
object.put("miniprogram", new JSONObject() {{
|
|
|
put("appid", weChatUtil.getAppletAppKey());
|
|
|
- put("pagepath", StrUtil.format("/xjrsoft/pages/workflow/approval?taskId={}&processId={}&type=todo", param.getTaskId(), param.getProcessId()));
|
|
|
+ put("pagepath", StrUtil.format("{}/xjrsoft/pages/workflow/approval?taskId={}&processId={}&type=todo",cpConfig.getDomainApp(), param.getTaskId(), param.getProcessId()));
|
|
|
}});
|
|
|
object.put("client_msg_id", param.getTaskId());
|
|
|
object.put("data", data);
|