/// <summary> /// 请求注册账号 /// FromType:来源的账号体系 AccountFromType /// Account:账号 /// Password:密码 /// </summary> static void OnRequestRegist(QKCommand cmd) { string fromType = (string)cmd.Params["FromType"]; mCurrAccount = (string)cmd.Params["Account"]; mCurrPassword = (string)cmd.Params["Password"]; // 上传的参数 Dictionary <string, string> upParams = new Dictionary <string, string>(); upParams["AppKey"] = SDKConfig.AppKey; upParams["Account"] = mCurrAccount; upParams["Password"] = mCurrPassword; upParams["FromType"] = fromType; upParams["Sign"] = String.Format("AppKey={0}&Account={1}&FromType={2}&{3}", SDKConfig.AppKey, mCurrAccount, fromType, SDKConfig.AppSecret).TryToQKMD5(); NetTask.AutoFinish(new WWW(RegistUrl, upParams.TryToString().TrySecEncode().TryToBytes()), OnUserLoginFinished); }