|
...
|
...
|
@@ -12,12 +12,12 @@ import java.util.concurrent.CompletableFuture; |
|
|
|
import java.util.concurrent.ExecutionException;
|
|
|
|
|
|
|
|
public class AlibabacloudUtil {
|
|
|
|
private static String appKey = "23389543";
|
|
|
|
private static String appSecret ="5e376702d50d4b575d03309966207a83";
|
|
|
|
private static String appKey = "LTAI4GCBdtG2yynzneLiGFdH";
|
|
|
|
private static String appSecret ="UQSSRgQYBSQPDFFETq4inFWsF8LO5Z";
|
|
|
|
public static SendSmsResponse sendPhoneSMS(String phone,String code) throws ExecutionException, InterruptedException {
|
|
|
|
StaticCredentialProvider provider = StaticCredentialProvider.create(Credential.builder()
|
|
|
|
.accessKeyId(System.getenv("ACCESS_KEY_ID"))
|
|
|
|
.accessKeySecret(System.getenv("ACCESS_KEY_SECRET"))
|
|
|
|
.accessKeyId(appKey)
|
|
|
|
.accessKeySecret(appSecret)
|
|
|
|
.build());
|
|
|
|
// Configure the Client
|
|
|
|
AsyncClient client = AsyncClient.builder()
|
...
|
...
|
|