1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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<SMSCodeBody>(path, body);
- headers = new Dictionary<string, string>();
- _wwwForm = null;
- }
- public override string path
- {
- get
- {
- _path = GetHttpGetForm<SMSCodeBody>(_path, body);
- return _path;
- }
- }
- public override WWWForm wwwForm
- {
- get
- {
- if (_wwwForm == null)
- {
- _wwwForm = GetWWWFrom<SMSCodeBody>(body);
- }
- return _wwwForm;
- }
- }
- public override string ToBodyString()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(body);
- }
- }
- public struct SMSCodeBody
- {
- public string phone;
- public int type;
- }
- }
|