using System.Collections; using System.Collections.Generic; using UnityEngine; /******************************************************************************** ** Company: YC ** auth: CaoTing ** date: 2021\5 ** desc: 手机验证码 *******************************************************************************/ namespace Studio.Scripts.HttpMessage { public class SMSCodeMessage : BaseHttpMessage { public SMSCodeBody body; public SMSCodeMessage() { messageModuleType = MessageModuleType.Common; methodType = HttpMethodType.Get; _path = "v1/smsCode"; //GetHttpGetForm(path, body); headers = new Dictionary(); _wwwForm = null; } public override string path { get { _path = GetHttpGetForm(_path, body); return _path; } } public override WWWForm wwwForm { get { if (_wwwForm == null) { _wwwForm = GetWWWFrom(body); } return _wwwForm; } } public override string ToBodyString() { return Newtonsoft.Json.JsonConvert.SerializeObject(body); } } public struct SMSCodeBody { public string phone; public int type; } }