|
|
@@ -35,8 +35,12 @@ public class CorpKfAppletController {
|
|
|
@GetMapping("/get")
|
|
|
public Result<String> getCorpKf(Integer scene) throws Exception {
|
|
|
CorpKfAccount corpKfAccount = corpKfAccountMapper.selectOne(Wrappers.lambdaQuery(CorpKfAccount.class).eq(CorpKfAccount::getScene, scene).last("limit 1"));
|
|
|
+ //默认官网
|
|
|
if (corpKfAccount == null) {
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
+ corpKfAccount = corpKfAccountMapper.selectOne(Wrappers.lambdaQuery(CorpKfAccount.class).eq(CorpKfAccount::getScene, 0).last("limit 1"));
|
|
|
+ if (corpKfAccount == null) {
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
+ }
|
|
|
}
|
|
|
String openKfId = corpKfAccount.getOpenKfId();
|
|
|
String key = RedisService.key.CORP_KF_ACCOUNT_URL.getName() + openKfId;
|