Przeglądaj źródła

解决boot版 员工认证bug

java110 3 lat temu
rodzic
commit
197387aedf

+ 5 - 1
service-job/src/main/java/com/java110/job/cmd/export/ExportDataCmd.java

@@ -6,6 +6,7 @@ import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
 import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
 
 import java.text.ParseException;
 
@@ -16,11 +17,14 @@ import java.text.ParseException;
 public class ExportDataCmd extends Cmd {
     @Override
     public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException {
-
+        Assert.hasKeyAndValue(reqJson, "communityId", "请求中未包含小区");
+        Assert.hasKeyAndValue(reqJson, "pagePath", "请求中未包含页面");
     }
 
     @Override
     public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException {
 
+
+
     }
 }

+ 9 - 0
springboot/src/main/java/com/java110/boot/smo/staff/impl/StaffAuthSMOImpl.java

@@ -109,6 +109,15 @@ public class StaffAuthSMOImpl extends DefaultAbstractComponentSMO implements ISt
         ResponseEntity<String> responseEntity = this.callCenterService(restTemplate, pd, paramAuth.toJSONString(),
                 "/staff/updateStaffAppAuth", HttpMethod.POST);
         url = MappingCache.getValue("OWNER_WECHAT_URL");
+        if(url.contains("/#/")){
+            if(url.contains("?")){
+                url += ("&wAppId="+smallWeChatDto.getAppId());
+            }else{
+                url += ("?wAppId="+smallWeChatDto.getAppId());
+            }
+        }else{
+            url += ("/#/?wAppId="+smallWeChatDto.getAppId());
+        }
         return ResultVo.redirectPage(url);
 
     }