mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update
This commit is contained in:
@@ -263,7 +263,7 @@ public class AgentDevController extends BaseController {
|
||||
* @param authorizerAppid
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/releaseProcedure")
|
||||
@GetMapping("/releaseProcedure/{authorizerAppid}")
|
||||
public RestApiResponse<?> releaseProcedure(@PathVariable("authorizerAppid") String authorizerAppid) {
|
||||
logger.info("发布已通过审核的小程序 params:{}", authorizerAppid);
|
||||
RestApiResponse<?> response = null;
|
||||
|
||||
@@ -417,7 +417,7 @@ public class AgentDevService {
|
||||
return errMsg;
|
||||
}
|
||||
// 获取审核编码并返回
|
||||
long auditId = (long) resultJson.get("auditid");
|
||||
int auditId = resultJson.getInteger("auditid");
|
||||
|
||||
return String.valueOf(auditId);
|
||||
}
|
||||
@@ -519,7 +519,7 @@ public class AgentDevService {
|
||||
+ "&pre_auth_code=" + dto.getPreAuthCode() + "&redirect_uri=" + dto.getRedirectUri() + "&auth_type=" + dto.getAuthType();
|
||||
} else {
|
||||
// 2-H5版链接
|
||||
url = "https://open.weixin.qq.com/wxaopen/safe/bindcomponent?action=bindcomponent&no_scan=1&component_appid=" + dto.getPlatformAppID()
|
||||
url = "https://open.weixin.qq.com/wxaopen/safe/bindcomponent?action=bindcomponent&no_scan=1&component_appid=" + platformAppid
|
||||
+ "&pre_auth_code=" + dto.getPreAuthCode() + "&redirect_uri=" + dto.getRedirectUri() + "&auth_type=" + dto.getAuthType();
|
||||
}
|
||||
return url;
|
||||
@@ -576,6 +576,9 @@ public class AgentDevService {
|
||||
// 有,先删除
|
||||
redisCache.deleteObject(redisKey);
|
||||
}
|
||||
// 删除预缓存码
|
||||
String preAuthCodeKey = CacheConstants.PLATFORM_PRE_AUTH_CODE + authorizerAppid;
|
||||
redisCache.deleteObject(preAuthCodeKey);
|
||||
|
||||
// 将 authCode 存入缓存
|
||||
redisCache.setCacheObject(redisKey, authCode, Integer.parseInt(expiresIn), TimeUnit.SECONDS);
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.jsowell.pile.dto.agentDev;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
* 获取审核状态DTO
|
||||
*
|
||||
* @author Lemon
|
||||
* @Date 2023/8/1 9:33
|
||||
|
||||
Reference in New Issue
Block a user