/// <summary> /// 申请client帐号 /// </summary> /// <exception cref="clientType">0 开发者计费;1 云平台计费</exception> /// <exception cref="charge">充值金额(开发者计费即ClientType为0时,为可选参数)</exception> /// <exception cref="mobile">绑定的手机号码。同一个应用内唯一。</exception> /// <returns>包体内容</returns> public static UcsUser TryCreateClient(int clientType = 0, int charge = 0, string mobile = null) { try { return(UcsApi.CreateClient(clientType, charge, mobile)); } catch (Exception) { return(default(UcsUser)); } }
/// <summary> /// 发送手机注册验证码 /// </summary> /// <param name="mobile">手机</param> /// <param name="code">验证码</param> /// <returns></returns> public static bool TrySendRegByMobileMsg(string mobile, string code) { return(UcsApi.TrySendMsg(mobile, "18723", code)); }