|
@@ -30,7 +30,9 @@ namespace MySystem
|
|
|
|
|
|
public string Do(string mobile, string code)
|
|
|
{
|
|
|
+ string logString = "";
|
|
|
String querys = "mobile=" + mobile + "¶m=**code**%3A" + code + "%2C**minute**%3A5&smsSignId=8b278cf2bb2a4b3c818cc7a436307a12&templateId=908e94ccf08b4476ba6c876d13f084ad";
|
|
|
+ logString += "\n" + querys;
|
|
|
String bodys = "";
|
|
|
String url = host + path;
|
|
|
HttpWebRequest httpRequest = null;
|
|
@@ -72,6 +74,8 @@ namespace MySystem
|
|
|
Stream st = httpResponse.GetResponseStream();
|
|
|
StreamReader reader = new StreamReader(st, Encoding.GetEncoding("utf-8"));
|
|
|
string result = reader.ReadToEnd();
|
|
|
+ logString += "\n" + result;
|
|
|
+ LogHelper.Instance.WriteLog(logString, "阿里云短信验证码日志", true);
|
|
|
return result;
|
|
|
}
|
|
|
|