ServiceHelper.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  1. using Newtonsoft.Json;
  2. using Newtonsoft.Json.Linq;
  3. using PDF_Master.Properties;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Management;
  9. using System.Net;
  10. using System.Runtime.InteropServices;
  11. using System.Security.Cryptography;
  12. using System.Text;
  13. using System.Threading.Tasks;
  14. namespace PDF_Master.Helper
  15. {
  16. /// <summary>
  17. /// 注册登陆相关的工具类
  18. /// </summary>
  19. ///
  20. public static class ServiceHelper
  21. {
  22. public static bool IsLogin=false;
  23. public static string ALLPassword = "";
  24. public static string access_token = "";
  25. public static string outemail = "";
  26. public static string outcode = "";
  27. public static string outregister = "";
  28. public static string outlogin = "";
  29. public static string code = "";
  30. public static string okcode = "";
  31. public static string remsg = "";
  32. public static string state = "";
  33. public static string AppCode = "com.brother.pdfreaderprofree.windows";
  34. public static string RequestHost = "http://139.196.160.101:8081";
  35. //验证邮箱
  36. public static string OKemailUrl = "/pdf-office-sso/auth/validUser";
  37. //验证验证码
  38. public static string OKcodeUrl = "/pdf-office-sso/auth/isEmailCodeValid";
  39. //发送验证码
  40. public static string GetcodeUrl = "/pdf-office-sso/auth/getVerifyCode";
  41. //注册邮箱
  42. public static string registerUrl = "/pdf-office-sso/auth/emailRegister";
  43. //登录
  44. public static string LoginUrl = "/pdf-office-sso/auth/emailLogin";
  45. //登出
  46. public static string LogoutUrl = "/pdf-office-sso/user/logout";
  47. //注销
  48. public static string UseroutUrl = "/pdf-office-sso/user/logOffForUser";
  49. //重置密码
  50. public static string RebirthUrl = "/pdf-office-sso/auth/resetPassword";
  51. //获取用户信息
  52. public static string GetUserUrl = "/pdf-office-sso/user/me";
  53. /// <summary>
  54. /// 用于检查网络是否可以连接互联网,true表示连接成功,false表示连接失败
  55. /// </summary>
  56. /// <returns></returns>
  57. [DllImport("wininet.dll")]
  58. private extern static bool InternetGetConnectedState(int Description, int ReservedValue);
  59. public static bool IsConnectInternet()
  60. {
  61. int Description = 0;
  62. return InternetGetConnectedState(Description, 0);
  63. }
  64. private static string computerInfo;
  65. /// <summary>
  66. /// 电脑品牌信息
  67. /// </summary>
  68. public static string ComputerInfo
  69. {
  70. get {
  71. if (computerInfo == null)
  72. {
  73. computerInfo = GetComputerInfo();
  74. }
  75. return computerInfo;
  76. }
  77. set { computerInfo = value; }
  78. }
  79. private static string systemInfo;
  80. /// <summary>
  81. /// 系统信息
  82. /// </summary>
  83. public static string SystemInfo
  84. {
  85. get
  86. {
  87. if (systemInfo == null)
  88. {
  89. systemInfo = GetSystemInfo();
  90. }
  91. return systemInfo;
  92. }
  93. set { systemInfo = value; }
  94. }
  95. private static string GetSystemInfo()
  96. {
  97. try
  98. {
  99. string s = "";
  100. SelectQuery sq = new SelectQuery("Win32_OperatingSystem");
  101. ManagementObjectSearcher mos = new ManagementObjectSearcher(sq);
  102. ManagementObjectCollection moc = mos.Get();
  103. foreach (ManagementObject mo in moc)
  104. {
  105. s = mo.Properties["Version"].Value.ToString();
  106. }
  107. moc.Dispose();
  108. sq = null;
  109. return s;
  110. }
  111. catch { return ""; }
  112. }
  113. private static string GetComputerInfo()
  114. {
  115. try
  116. {
  117. string s = "";
  118. System.Windows.Controls.TextBox text = new System.Windows.Controls.TextBox();
  119. SelectQuery sq = new SelectQuery("Win32_ComputerSystem");
  120. ManagementObjectSearcher mos = new ManagementObjectSearcher(sq);
  121. ManagementObjectCollection moc = mos.Get();
  122. foreach (ManagementObject mo in moc)
  123. {
  124. s = mo.Properties["Manufacturer"].Value + " " + mo.Properties["Model"].Value;
  125. }
  126. moc.Dispose();
  127. sq = null;
  128. return s;
  129. }
  130. catch { return ""; }
  131. }
  132. /// <summary>
  133. /// 操作系统生成的UUID,用于获取虚拟机用户的设备识别码
  134. /// </summary>
  135. /// <returns></returns>
  136. public static string GetUUID()
  137. {
  138. string systemId = null;
  139. using (ManagementObjectSearcher mos = new ManagementObjectSearcher("select * from Win32_ComputerSystemProduct"))
  140. {
  141. foreach (var item in mos.Get())
  142. {
  143. systemId = item["UUID"].ToString();
  144. }
  145. }
  146. return systemId;
  147. }
  148. /// <summary>
  149. /// 主板编号
  150. /// </summary>
  151. /// <returns></returns>
  152. public static string GetBoardId()
  153. {
  154. var st = string.Empty;
  155. var mos = new ManagementObjectSearcher("Select * from Win32_BaseBoard");
  156. foreach (var o in mos.Get())
  157. {
  158. var mo = (ManagementObject)o;
  159. st = mo["SerialNumber"].ToString();
  160. }
  161. return st;
  162. }
  163. /// <summary>
  164. /// 获取设备唯一ID
  165. /// </summary>
  166. /// <returns></returns>
  167. public static string GetDeviceSerialNumber()
  168. {
  169. StringBuilder DeviceBuilder = new StringBuilder();
  170. bool IsVirtual = false;
  171. string boardId = GetBoardId();
  172. string uuid = GetUUID();
  173. //判断是否是虚拟机用户
  174. if (boardId.ToLower() == "" || boardId.ToLower() == "none")
  175. {
  176. if (string.IsNullOrEmpty(uuid) || uuid.ToLower() == "none")
  177. return string.Empty;
  178. else
  179. IsVirtual = true;
  180. }
  181. //真实机器用户 用主板id作为唯一识别码
  182. if (!IsVirtual)
  183. {
  184. DeviceBuilder.Append(boardId);
  185. }
  186. else
  187. {
  188. DeviceBuilder.Append(uuid);
  189. }
  190. MD5 md5 = MD5.Create();
  191. List<byte> charbytes = new List<byte>();
  192. foreach (char code in DeviceBuilder.ToString().ToArray())
  193. {
  194. charbytes.Add((byte)code);
  195. }
  196. byte[] md5Array = md5.ComputeHash(charbytes.ToArray());
  197. DeviceBuilder = new StringBuilder();
  198. foreach (var code in md5Array)
  199. {
  200. DeviceBuilder.Append(code.ToString("X2"));
  201. }
  202. return DeviceBuilder.ToString();
  203. }
  204. //超时同步为20秒
  205. public static String GetUser()
  206. {
  207. HttpWebResponse response = null;
  208. ServicePointManager.DefaultConnectionLimit = 200;
  209. HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestHost + GetUserUrl+"");
  210. request.Method = "Get";
  211. request.Headers.Add("Authorization", $"Bearer {Settings.Default.AppProperties.LoginToken}");
  212. request.ContentType = "text/html;charset=UTF-8";
  213. //request.Accept = "application/vnd.api+json;version=1";
  214. request.UserAgent = "Apifox/1.0.0 (https://www.apifox.cn)";
  215. request.Timeout = 20000;
  216. request.ServicePoint.Expect100Continue = false;
  217. try
  218. {
  219. response = (HttpWebResponse)request.GetResponse();
  220. using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  221. {
  222. string responseData = reader.ReadToEnd();
  223. Console.WriteLine(responseData);
  224. reader.Close();
  225. JObject jobject = (JObject)JsonConvert.DeserializeObject(responseData);
  226. if (response != null)
  227. {
  228. response.Close();
  229. }
  230. if (request != null)
  231. {
  232. request.Abort();
  233. }
  234. Console.WriteLine(responseData);
  235. JToken jToken;
  236. if(jobject.TryGetValue("msg" ,out jToken)==false)
  237. {
  238. App.IsLogin = true;
  239. Settings.Default.UserDate.Email= jobject["email"].ToObject<string>().ToLower();
  240. return "ture";
  241. }
  242. else
  243. {
  244. return "false";
  245. }
  246. }
  247. }
  248. catch
  249. {
  250. if (Settings.Default.AppProperties.LoginToken == "")
  251. return "No Token";
  252. else return "300";
  253. }
  254. }
  255. public static String Ok_email(string intemail,string validType)
  256. {
  257. HttpWebResponse response = null;
  258. ServicePointManager.DefaultConnectionLimit = 200;
  259. HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestHost + OKemailUrl);
  260. request.Method = "Post";
  261. request.ContentType = "application/json";
  262. //request.Accept = "application/vnd.api+json;version=1";
  263. request.UserAgent = "Apifox/1.0.0 (https://www.apifox.cn)";
  264. request.Timeout = 20000;
  265. request.ServicePoint.Expect100Continue = false;
  266. StringWriter sw = new StringWriter();
  267. using (JsonWriter writer = new JsonTextWriter(sw))
  268. {
  269. writer.WriteStartObject();
  270. writer.WritePropertyName("appId");
  271. writer.WriteValue(16);
  272. writer.WritePropertyName("platformType");
  273. writer.WriteValue(0);
  274. writer.WritePropertyName("username");
  275. writer.WriteValue(intemail);
  276. writer.WritePropertyName("validType");
  277. writer.WriteValue(validType);
  278. writer.WriteEndObject();
  279. }
  280. try
  281. {
  282. string postBody = sw.ToString();
  283. using (StreamWriter writer = new StreamWriter(request.GetRequestStream()))
  284. {
  285. writer.Write(postBody);
  286. writer.Close();
  287. }
  288. response = (HttpWebResponse)request.GetResponse();
  289. using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  290. {
  291. string responseData = reader.ReadToEnd();
  292. Console.WriteLine(responseData);
  293. reader.Close();
  294. JObject jobject = (JObject)JsonConvert.DeserializeObject(responseData);
  295. //outemail = jobject["msg"].ToObject<string>().ToLower();
  296. if (response != null)
  297. {
  298. response.Close();
  299. }
  300. if (request != null)
  301. {
  302. request.Abort();
  303. }
  304. return jobject["code"].ToObject<string>().ToLower();
  305. }
  306. }
  307. catch
  308. {
  309. return "300";
  310. }
  311. }
  312. //⑤报错
  313. public static void Get_code(string action, string email)
  314. {
  315. string post = $"?action={action}&appId=16&receiver={email}&type=0";
  316. HttpWebResponse response = null;
  317. ServicePointManager.DefaultConnectionLimit = 200;
  318. HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestHost + GetcodeUrl + post);
  319. request.Method = "Get";
  320. request.ContentType = "text/html;charset=UTF-8";
  321. //request.Accept = "application/vnd.api+json;version=1";
  322. request.UserAgent = "Apifox/1.0.0 (https://www.apifox.cn)";
  323. request.Timeout = 20000;
  324. request.ServicePoint.Expect100Continue = false;
  325. try
  326. {
  327. response = (HttpWebResponse)request.GetResponse();
  328. using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  329. {
  330. string responseData = reader.ReadToEnd();
  331. Console.WriteLine(responseData);
  332. reader.Close();
  333. JObject jobject = (JObject)JsonConvert.DeserializeObject(responseData);
  334. if (response != null)
  335. {
  336. response.Close();
  337. }
  338. if (request != null)
  339. {
  340. request.Abort();
  341. }
  342. }
  343. }
  344. catch
  345. {
  346. }
  347. }
  348. public static String Ok_code(string email, string code, string type)
  349. {
  350. string post = $"?account={email}&code={code}&type={type}&appId=16";
  351. HttpWebResponse response = null;
  352. ServicePointManager.DefaultConnectionLimit = 200;
  353. HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestHost + OKcodeUrl + post);
  354. request.Method = "Get";
  355. request.ContentType = "text/html;charset=UTF-8";
  356. //request.Accept = "application/vnd.api+json;version=1";
  357. request.UserAgent = "Apifox/1.0.0 (https://www.apifox.cn)";
  358. request.Timeout = 20000;
  359. request.ServicePoint.Expect100Continue = false;
  360. try
  361. {
  362. response = (HttpWebResponse)request.GetResponse();
  363. using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  364. {
  365. string responseData = reader.ReadToEnd();
  366. Console.WriteLine(responseData);
  367. reader.Close();
  368. JObject jobject = (JObject)JsonConvert.DeserializeObject(responseData);
  369. if (response != null)
  370. {
  371. response.Close();
  372. }
  373. if (request != null)
  374. {
  375. request.Abort();
  376. }
  377. return jobject["code"].ToObject<string>().ToLower();
  378. }
  379. }
  380. catch
  381. {
  382. return "300";
  383. }
  384. }
  385. public static String Register_email(string intemail, string intpassword, string intcode, string uuid)
  386. {
  387. HttpWebResponse response = null;
  388. ServicePointManager.DefaultConnectionLimit = 200;
  389. HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestHost + registerUrl);
  390. request.Method = "Post";
  391. request.ContentType = "application/json";
  392. //request.Accept = "application/vnd.api+json;version=1";
  393. request.UserAgent = "Apifox/1.0.0 (https://www.apifox.cn)";
  394. request.Timeout = 20000;
  395. request.ServicePoint.Expect100Continue = false;
  396. StringWriter sw = new StringWriter();
  397. using (JsonWriter writer = new JsonTextWriter(sw))
  398. {
  399. writer.WriteStartObject();
  400. writer.WritePropertyName("appId");
  401. writer.WriteValue(16);
  402. writer.WritePropertyName("deviceSign");
  403. writer.WriteValue(uuid);
  404. writer.WritePropertyName("password");
  405. writer.WriteValue(intpassword);
  406. writer.WritePropertyName("platformType");
  407. writer.WriteValue(0);
  408. writer.WritePropertyName("username");
  409. writer.WriteValue(intemail);
  410. writer.WritePropertyName("verifyCode");
  411. writer.WriteValue(intcode);
  412. writer.WriteEndObject();
  413. }
  414. try
  415. {
  416. string postBody = sw.ToString();
  417. using (StreamWriter writer = new StreamWriter(request.GetRequestStream()))
  418. {
  419. writer.Write(postBody);
  420. writer.Close();
  421. }
  422. response = (HttpWebResponse)request.GetResponse();
  423. using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  424. {
  425. string responseData = reader.ReadToEnd();
  426. Console.WriteLine(responseData);
  427. reader.Close();
  428. JObject jobject = (JObject)JsonConvert.DeserializeObject(responseData);
  429. if (response != null)
  430. {
  431. response.Close();
  432. }
  433. if (request != null)
  434. {
  435. request.Abort();
  436. }
  437. if (jobject["code"].ToObject<string>().ToLower() == "200")
  438. {
  439. App.IsLogin =true;
  440. access_token = jobject["result"]["access_token"].ToObject<string>().ToLower();
  441. Settings.Default.AppProperties.LoginToken = jobject["result"]["access_token"].ToObject<string>().ToLower();
  442. Settings.Default.Save();
  443. }
  444. return jobject["code"].ToObject<string>().ToLower();
  445. }
  446. }
  447. catch
  448. {
  449. return "300";
  450. }
  451. }
  452. public static String Login(string intemail, string intpassword, string uuid)
  453. {
  454. string postBody = $"?appId=16&deviceSign={uuid}&email={intemail}&password={intpassword}&platformType=0";
  455. HttpWebResponse response = null;
  456. ServicePointManager.DefaultConnectionLimit = 200;
  457. HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestHost + LoginUrl + postBody);
  458. request.Method = "Post";
  459. request.ContentType = "application/x-www-form-urlencoded";
  460. //request.Accept = "application/vnd.api+json;version=1";
  461. request.UserAgent = "Apifox/1.0.0 (https://www.apifox.cn)";
  462. request.Timeout = 20000;
  463. request.ServicePoint.Expect100Continue = false;
  464. try
  465. {
  466. response = (HttpWebResponse)request.GetResponse();
  467. using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  468. {
  469. string responseData = reader.ReadToEnd();
  470. Console.WriteLine(responseData);
  471. reader.Close();
  472. JObject jobject = (JObject)JsonConvert.DeserializeObject(responseData);
  473. if (response != null)
  474. {
  475. response.Close();
  476. }
  477. if (request != null)
  478. {
  479. request.Abort();
  480. }
  481. if (jobject["code"].ToObject<string>().ToLower() == "200")
  482. {
  483. App.IsLogin = true;
  484. access_token = jobject["result"]["access_token"].ToObject<string>().ToLower();
  485. Settings.Default.AppProperties.LoginToken = jobject["result"]["access_token"].ToObject<string>().ToLower();
  486. Settings.Default.Save();
  487. }
  488. return jobject["code"].ToObject<string>().ToLower();
  489. }
  490. }
  491. catch
  492. {
  493. return "300";
  494. }
  495. }
  496. //⑤报错
  497. public static void Logout(string uuid)
  498. {
  499. string postBody = $"?deviceSign={uuid}&appId=16";
  500. HttpWebResponse response = null;
  501. ServicePointManager.DefaultConnectionLimit = 200;
  502. HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestHost + LogoutUrl + postBody);
  503. request.Method = "Post";
  504. request.Headers.Add("Authorization", $"Bearer {Settings.Default.AppProperties.LoginToken}");
  505. request.ContentType = "application/x-www-form-urlencoded";
  506. //request.Accept = "application/vnd.api+json;version=1";
  507. request.UserAgent = "Apifox/1.0.0 (https://www.apifox.cn)";
  508. request.Timeout = 20000;
  509. request.ServicePoint.Expect100Continue = false;
  510. try
  511. {
  512. response = (HttpWebResponse)request.GetResponse();
  513. using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  514. {
  515. string responseData = reader.ReadToEnd();
  516. Console.WriteLine(responseData);
  517. reader.Close();
  518. JObject jobject = (JObject)JsonConvert.DeserializeObject(responseData);
  519. App.IsLogin = false;
  520. if (response != null)
  521. {
  522. response.Close();
  523. }
  524. if (request != null)
  525. {
  526. request.Abort();
  527. }
  528. }
  529. }
  530. catch
  531. {
  532. }
  533. }
  534. public static String Usergout(string code)
  535. {
  536. string postBody = $"?code={code}";
  537. HttpWebResponse response = null;
  538. ServicePointManager.DefaultConnectionLimit = 200;
  539. HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestHost + UseroutUrl + postBody);
  540. request.Method = "Post";
  541. request.Headers.Add("Authorization", $"Bearer {Settings.Default.AppProperties.LoginToken}");
  542. request.ContentType = "application/x-www-form-urlencoded";
  543. //request.Accept = "application/vnd.api+json;version=1";
  544. request.UserAgent = "Apifox/1.0.0 (https://www.apifox.cn)";
  545. request.Timeout = 20000;
  546. request.ServicePoint.Expect100Continue = false;
  547. try
  548. {
  549. response = (HttpWebResponse)request.GetResponse();
  550. using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  551. {
  552. string responseData = reader.ReadToEnd();
  553. Console.WriteLine(responseData);
  554. reader.Close();
  555. JObject jobject = (JObject)JsonConvert.DeserializeObject(responseData);
  556. if (response != null)
  557. {
  558. response.Close();
  559. }
  560. if (request != null)
  561. {
  562. request.Abort();
  563. }
  564. return jobject["code"].ToObject<string>().ToLower();
  565. }
  566. }
  567. catch
  568. {
  569. return "300";
  570. }
  571. }
  572. public static String Rebirth(string intemail, string firstpassword, string secondPassword, string intcode)
  573. {
  574. HttpWebResponse response = null;
  575. ServicePointManager.DefaultConnectionLimit = 200;
  576. HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestHost + RebirthUrl);
  577. request.Method = "Post";
  578. request.ContentType = "application/json";
  579. //request.Accept = "application/vnd.api+json;version=1";
  580. request.UserAgent = "Apifox/1.0.0 (https://www.apifox.cn)";
  581. request.Timeout = 20000;
  582. request.ServicePoint.Expect100Continue = false;
  583. StringWriter sw = new StringWriter();
  584. using (JsonWriter writer = new JsonTextWriter(sw))
  585. {
  586. writer.WriteStartObject();
  587. writer.WritePropertyName("account");
  588. writer.WriteValue(intemail);
  589. writer.WritePropertyName("appId");
  590. writer.WriteValue(16);
  591. writer.WritePropertyName("firstPassword");
  592. writer.WriteValue(firstpassword);
  593. writer.WritePropertyName("platformType");
  594. writer.WriteValue(0);
  595. writer.WritePropertyName("secondPassword");
  596. writer.WriteValue(secondPassword);
  597. writer.WritePropertyName("verifyCode");
  598. writer.WriteValue(intcode);
  599. writer.WriteEndObject();
  600. }
  601. try
  602. {
  603. string postBody = sw.ToString();
  604. using (StreamWriter writer = new StreamWriter(request.GetRequestStream()))
  605. {
  606. writer.Write(postBody);
  607. writer.Close();
  608. }
  609. response = (HttpWebResponse)request.GetResponse();
  610. using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  611. {
  612. string responseData = reader.ReadToEnd();
  613. Console.WriteLine(responseData);
  614. reader.Close();
  615. JObject jobject = (JObject)JsonConvert.DeserializeObject(responseData);
  616. if (response != null)
  617. {
  618. response.Close();
  619. }
  620. if (request != null)
  621. {
  622. request.Abort();
  623. }
  624. return jobject["code"].ToObject<string>().ToLower();
  625. }
  626. }
  627. catch
  628. {
  629. return "300";
  630. }
  631. }
  632. }
  633. }