修复了无法普通模式启动的bug
This commit is contained in:
@ -5,7 +5,9 @@ console.log(process.env['ALIBABA_CLOUD_ACCESS_KEY_SECRET'])
|
||||
|
||||
|
||||
// 注意,此处实例化的client请尽可能重复使用,避免重复建立连接,提升检测性能。
|
||||
let client = new RPCClient({
|
||||
let client;
|
||||
if(process.env['VALIDING']=='True'){
|
||||
client=new RPCClient({
|
||||
/**
|
||||
* 阿里云账号AccessKey拥有所有API的访问权限,建议您使用RAM用户进行API访问或日常运维。
|
||||
* 强烈建议不要把AccessKey ID和AccessKey Secret保存到工程代码里,否则可能导致AccessKey泄露,威胁您账号下所有资源的安全。
|
||||
@ -23,6 +25,7 @@ let client = new RPCClient({
|
||||
// 设置https代理
|
||||
// httpsProxy: "https://username:password@xxx.xxx.xxx.xxx:9999",
|
||||
});
|
||||
}
|
||||
async function IsValid(text) {
|
||||
console.log("IsValid called");
|
||||
console.log("cheching text: "+text);
|
||||
|
Reference in New Issue
Block a user