This commit is contained in:
linfso 2024-08-20 09:59:31 +08:00
parent ca8226d2f4
commit 82530afe39
4 changed files with 150 additions and 14 deletions

View File

@ -630,24 +630,19 @@ public class EmisCommonController extends EmisBaseController
}
@GetMapping("/notifyTraceByKD100")
public AjaxResult notifyTraceByKD100(){
@PostMapping("/notifyTraceByKD100")
public String notifyTraceByKD100(){
String lockKey="notifyTraceByKD100";
log.error("notifyTraceByKD100 start");
String rst="{\n" +
" \"result\":true,\n" +
" \"returnCode\":\"200\",\n" +
" \"message\":\"成功\"\n" +
" }";
// 加锁查询
// redissonService.lock(lockKey,300);
// try{
// }catch(Exception ex){
// ex.printStackTrace();
// log.error("autoDoQueryTransferInfoTrigger exception:"+ex.getMessage());
// }
log.error("notifyTraceByKD100 end");
// redissonService.unlock(lockKey);
return AjaxResult.success("发送成功");
return rst;
}
}

View File

@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.XML;
import com.xdadan.erp.common.utils.AESUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.text.StrSubstitutor;
@ -192,6 +193,14 @@ public class CvtTplToCpcl {
return encCmd;
}
public static String decryTplXmlStr(String encTplBase64Str){
String decStr=AESUtil.decrypt(encTplBase64Str,"203f8ce70aeeba38","ECB");
return null;
}
public static void main(String[] args) {
String tplFile="/Users/alan/Downloads/探路速运-130-0628缅甸特快极快-英文模版(无logo).frx";

File diff suppressed because one or more lines are too long

View File

@ -92,7 +92,7 @@ public class Kd100Helper {
parameters.put("callbackurl", "http://api.emis.tanex56.com/api/bizsvr/emis/common/notifyTraceByKD100");
param.put("parameters", parameters);
param.put("salt", "tanex56");
param.put("phone", "138188161237");
param.put("phone", phone);
param.put("resultv2", "4");
String mgsData = param.toJSONString();