Commit 6bdb8c42 by 陶光胜

企业微信取消授权回调处理

parent a71e682d
......@@ -235,7 +235,7 @@ public class MessageApiServiceImpl implements MessageApiService {
String[] arr = parentChain.split("_");
int len = arr.length;
int startIndex = len - 2;
if(dataType == GicDataType.STORE.getCode()){
if(dataType == GicDataType.STORE.getCode() || dataType == GicDataType.DEPARTMENT.getCode()){
startIndex = len - 1;
}
for(int i = startIndex; i< len; i--){
......@@ -248,4 +248,8 @@ public class MessageApiServiceImpl implements MessageApiService {
DepartmentDTO departmentDTO = this.departmentService.getRootByEnterpriseId(wxEnterpriseId);
return departmentDTO;
}
public static void main(String[] args){
System.out.println("1_".split("_").length);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment