阿里雲傳送簡訊過程中遇到的坑

2021-09-17 03:52:20 字數 1801 閱讀 6080

記錄裡面的值

,您的驗證碼為$"時,此處的值為,例如

/// 提供給業務方擴充套件字段,最終在簡訊回執訊息中將此值帶回給呼叫者

/// 端點名稱

/// 地區名稱

///

public static resultobject> sendsms( string phonenumber, string templateparam,string   accesskeyid, string accesskeysecret, string signname, string templatecode)

;dictionaryinfo = new dictionary();

try";

var id = guid.newguid();

var outid = id.tostring();

iclientprofile profile = defaultprofile.getprofile(regionid, accesskeyid, accesskeysecret);

defaultprofile.addendpoint(endpointname, regionid, product, domain);

iacsclient acsclient = new defaultacsclient(profile);

//該類為了記錄傳送日誌(可不寫)

sendinformation information = new sendinformation()

;// 組裝請求物件

sendsmsrequest request = new sendsmsrequest

;sendsmsresponse response = null;

tryelse

}catch (serverexception e)

catch (clientexception e)

info.add(information, response);

result.data = info;

}catch (exception e)

return result;}}

該類需要引用

using aliyun.acs.core;

using aliyun.acs.core.exceptions;

using aliyun.acs.core.profile;

using aliyun.acs.dysmsapi.model.v20170525;

dll 檔案獲取方式

1code = "";

var result = sendsms.sendsms(tel, code, accesskeyid, accesskeysecret, signname, templatecode);

使用jquery過程中遇到的坑

最近在使用jquery過程中發現了幾個小問題,不知道有沒有其他人遇到。問題一 假的dom結構,比如input的乙個選中狀態,用jquery中的attr 進行新增和刪除,在google除錯中看到是正常的,但是傳給後台的值是不對的。我找了很久才發現原因,我的dom結構是假的。只是表面上看起來好像刪除掉了...

搭建portainer過程中前端遇到的坑

1.我在網上找了大量的例子 發現大家都是只是介紹了容器怎麼執行,並沒有介紹前端怎麼跑起來。步驟如下 1 git clone git github.com portainer portainer.git 2 nodejs和docker安裝我就不介紹了 前端同學應該都有 3 npm install gr...

同前端聯調過程中遇到的坑

最近在和前端聯調的過程中,發現有個資料他們老是傳不到後台,於是在網上查了一下資料後發現原來是disable屬性在作亂,更改後解決問題,記錄下來備忘。參考 1 2 這兩種寫法都會使顯示出來的文字框不能輸入文字,但disabled會使文字框變灰,而且通過request.getparameter name...