Procházet zdrojové kódy

企微任务 小程序相关的都是指定的 不采用随机小程序 修复代码

lqc před 4 roky
rodič
revize
da50e55bed

+ 5 - 6
src/main/java/com/mokamrp/privates/service/pangu/impl/FosterwxCashScheduleTaskListServiceImpl.java

@@ -120,7 +120,7 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
 
         String ghid = "";
         Integer groupId = editList.get(0).getGroupId();
-        FosterwxCashOasBox fosterwxCashOasBox = fosterwxCashOasBoxService.getRandOas(editList.get(0).getGroupId(),editList.get(0).getType());
+        FosterwxCashOasBox fosterwxCashOasBox = fosterwxCashOasBoxService.getRandOas(editList.get(0).getGroupId(), editList.get(0).getType());
         if (null != fosterwxCashOasBox) {
             ghid = fosterwxCashOasBox.getGhId();
         }
@@ -132,7 +132,7 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
 
                 taskRedis.createUrlByTyper(JSON.toJSONString(tempList));
                 tempList.clear();
-                fosterwxCashOasBox = fosterwxCashOasBoxService.getRandOas(editList.get(0).getGroupId(),editList.get(0).getType());
+                fosterwxCashOasBox = fosterwxCashOasBoxService.getRandOas(editList.get(0).getGroupId(), editList.get(0).getType());
                 if (null != fosterwxCashOasBox) {
                     ghid = fosterwxCashOasBox.getGhId();
                 }
@@ -201,7 +201,7 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
      */
     @Override
     public void editBoxUrl(FosterwxCashScheduleTaskList fosterwxCashScheduleTaskList, FosterwxCashTaskList fosterwxCashTaskList) {
-        FosterwxCashOasBox fosterwxCashOasBox = fosterwxCashOasBoxService.getRandBox(fosterwxCashScheduleTaskList.getGroupId(),fosterwxCashScheduleTaskList.getType());
+        FosterwxCashOasBox fosterwxCashOasBox = fosterwxCashOasBoxService.getRandBox(fosterwxCashScheduleTaskList.getGroupId(), fosterwxCashScheduleTaskList.getType());
         if (null == fosterwxCashOasBox) {
             // 状态
             fosterwxCashScheduleTaskList.setStatus(3);
@@ -255,7 +255,6 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
             fosterwxCashScheduleTaskListMapper.updateById(fosterwxCashScheduleTaskList);
             return;
         }
-        FosterwxCashOasBox fosterwxCashOasBox = fosterwxCashOasBoxService.getRandBox(fosterwxCashScheduleTaskList.getGroupId(),fosterwxCashScheduleTaskList.getType());
 
         // FosterwxCashOasBox fosterwxCashOasBox = fosterwxCashOasBoxService.getRandBox(fosterwxCashScheduleTaskList.getGroupId());
         // if (null == fosterwxCashOasBox) {
@@ -278,9 +277,9 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
         fosterwxCashScheduleTaskList.setErrInfo("");
         // 分配的公众号
         if (3 == fosterwxCashWorkwxTaskList.getTaskType()) {
-            fosterwxCashScheduleTaskList.setGhId(fosterwxCashOasBox.getGhId());
+            fosterwxCashScheduleTaskList.setGhId(fosterwxCashWorkwxTaskList.getBoxGhId());
         }
-        fosterwxCashScheduleTaskList.setBoxGhid(fosterwxCashOasBox.getGhId());
+        fosterwxCashScheduleTaskList.setBoxGhid(fosterwxCashWorkwxTaskList.getBoxGhId());
 
         // 小程序链接
         String sendUrl = "";